03_UG后处理培训_definition_file

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

• FORMAT zero_coord “0_01.0_”
ADDRESS X {
ZERO_FORMAT zero_coord FORMAT Coordinate MAX 9999.9999 MIN -9999.9999 FORCE off
}
Page 7
行号 (Sequence)
SEQUENCE seqn 1 1 3 N001 .. .. N002
Page 6
数字0 格式(Zero Format)
This option allows users to control how zero is output. Zero_format only controls the output when the value to be output is exactly zero.

WORD_SEPARATOR “string“ END_OF_LINE “string“
• string between each address

• string at the end of each line

SEQUENCE name start increment frequency
• name = block template for line number • start = start value
- G1 Z... X.... Y.… 直线移动Z输出顺序前置.
Page 15
练习 5
-
G1直线移动 输出为 G11
快速移动G0 输出为 Rapid
Page 16
练习 6
- 限定F值范围,如果F大于1000,输出错误报警
Page 17
练习 7
- 强制输出X,X变为非模态输出
PaΒιβλιοθήκη Baidue 18
练习 8
Page 11
练习 1
- NC代码 字和字直接间隔符为“,” - NC-code 字和字取消间隔符
Page 12
练习 2
- 输出如下行号(10,..,20,...30) N10 G1 X10 N20 Y20 N30 Y40 -输出如下行号(5,..,15,...25) N5 G1 X10 Y20 N15 Y40
Page 13
练习 3
- 输出行号 (10,20,30,40) 其中行号前导0不输出 - 输出行号(0010,0020,0030,0040) 其中行号前导0输出
- 坐标输出4位整数,4位小数,输出前导0和尾随0,小 数点不输出
Page 14
练习 4
- G1 Y... X.... Z.… 直线移动 Y X 字顺序互换.
UGPOST 定义文件
2015/05/06-08
Smarter decisions, better products.
定义文件
Def文件用于定义后置处理输出格式以及输出块的内容
Structure •Format •Address •Block Template •Include

Page 2
基本定义
Page 4
格式 format

FORMAT name &abcdef • a = + or _ “+” means output the plus sign, “_” means suppress the plus sign(输出或不输出+号). • b = 0 or _ “0” means output leading zeros, “_” means suppress leading zeros(输出或不输出前面的0). • c = {0,1,…,9} Maximum number of digits to left of decimal (小数点左边最大位数). • d = . or _ “.” means output the decimal, “_” means don’t output the decimal(输出或不输出小数点) • e = {0,1,…,9} Maximum number of digits to right of decimal(小数点右边最大位数). • f = 0 or _ , “0” means output trailing zeros, “_” means suppress trail(输出或不输出后面的0 )
SEQUENCE seqn 1 1 1 N001 N002 N003
Page 8
地址 (Address)
ADDRESS X { FORMAT name FORCE <Always | Once | Off> MAX number <Abort | Warning | Truncate> MIN number <Abort | Warning | Truncate> ZERO_FORMAT coordinate LEADERstring TRAILER string }
Page 9
地址 (Address)
ADDRESS motion_g { FORMAT FORCE MIN MAX 99 LEADER TRAILER } Socket Never 0 Abort Abort “G“ “ “
Page 10
块模版(BLOCK_TEMPLATE)
BLOCK_TEMPLATE motion_g X Y Z R F } cycle_drill { [$mom_sys_cycle_drill_code] [$mom_cycle_fedto_pos(0)] [$mom_cycle_fedto_pos(1)] [$mom_ cycle_fedto_pos(2)] [$mom_ cycle_rapto_pos(2)] [$mom_feed_rate]
-改变圆弧移动 IJK含义,更改IJK为圆弧中心坐标值
Page 19
Q & A
Page 20
20XX-XX-XX
Page 5
实例
FORMAT Coordinate “&__3.4_”
This format will output a number with no plus sign, no leading or trailing zeros, 3 digits to left of the decimal and 4 to right with a decimal point. Example: X12.34
• increment frequency = increment value
• frequency = every value • SEQUENCE NUMBER 1 1 1
Page 3
基本概念
Block • G01 X54.11 Y-28.059 Z55. B0.0 Address (Word) • X54.11 Format • X54.11
相关文档
最新文档