word bore 5 not used coolant on tap not used
rigid tap not used ====== 刚性攻丝 helical drill not used helical retract drill not used end define
================================ 定义变量 ======================================
print header = \=== 定义打印标题
machine name = \== 机器名
point = \小数点
zero = \零
tape headers = 1 ============================== 纸带标题
(integer 6 、integer 7):定义coolant output(冷却液输出)
integer 6 = 2 ============== 定义冷却液开(M07、M08)的输出方式,
此变量共有三个选项——0:在后处理时遇到相关指令时输出;1:在下一段中单独输出;2、在下一段中和坐标移动一起输出。
integer 7 = 1 ============== 定义冷却液关(M09)的输出方式,此变量共有三个选项——0:在后处理时遇到相关指令时输出;1:在下一段中单独输出;2、在下一段中和坐标移动一起输出。
(integer 10、integer 11、integer 12、integer 13):定义spindle output(主轴输出)
integer 10 = 2 ============== 定义主轴开(M03、M04)的输出方式,
此变量共有三个选项——0:在后处理时遇到主轴开指令时输出;1:在下一段中单独输出;2、在下一段中和坐标移动一起输出。
integer 11 = 1 ============= 定义主轴关(M05)的输出方式,此变量共有二个选项——0:在遇到主轴关指令时不输出S;1:在遇到主轴关指令时输出S0。
integer 12 = 1 ============= 定义M代码的输出方式,此变量共有二个选项——0:在遇到主轴相关指令时不输出M;1:在遇到主轴相关指令时输出M。
tool reset coordinates = 2 =============== 定义刀具复位后(M06后)的坐标处理方式,有1、2、3、4四个选项,请注意这四个选项的刀
具补偿的区别:
1、 2、
3、 4、
cycle output = 1 ================ 定义循环指令
(G80~G89)的输出方式,此变量共有两个选项——0:不输出循环移动指令;1、输出循环指令(默认值为G81)。
(integer 20、integer 26、full circle):定义circle output(圆弧输出) integer 20 = 1 ============= 定义圆弧(M02、M03)的输出坐标,此变量共有两个选项——0:不输出圆弧的X、Y坐标;1:输出圆弧的X、Y坐标。
block start = 1 =============== 定义程序段的开始段号
block increment = 1 =============== 定义程序段号的增量
split move = 0
integer 26 = 1 ============== 定义圆弧(M02、M03)的输出,此变量共有两个选项——0:不输出圆弧指令;1、输出圆弧指令,如果选择0,那么在后处理时遇到有圆弧的地方,系统将这个圆弧打断成若干条直线段输出。
program id start = 100 =============== 定义程序起始号 integer 34 = 3 integer 35 = 1 integer 36 = 1 integer 37 = 2
rapid feed code = 0 =============== 共有两个选项
——0:在快速移动时不输出进给率;1:在快速移动时输出进给率(需要在快速移动中定义F)。
maximum block number = 0 maximum tape blocks = 0 minimum tape blocks = 0 segment type = 0 counter start = 0 counter increment = 0 tape split retract distance = -999
multiaxis coordinate transform = true ====== 定义机床是否支持多轴联动,true:支持;false:不支持
message output = false block order = true
tlo output = true ======== 是否正常输出刀具长度(半径)补偿,true:输出;false:不输出。 tape split on tool change = false
full circle = true ========= true:整圆输出;false:不做整圆输出。
incremental centre = true go home output = false
use partid = true ======== 是否使用自定义partid,true:使用;false:不使用
use progid = true ======== 是否使用自定义progid,true:使用;false:不使用
spindle x motion = false ======== 定义主轴运动方向,true:X方向;false:NOX方向。
spindle y motion = false ======== 定义主轴运动方向,true:Y方向;false:NOY方向。
spindle z motion = true ======== 定义主轴运动方向,true:Z方向;false:NOZ方向。
spindle w motion = false ======== 定义主轴运动方向,true:W方向;false:NOW方向。
spindle azimuth rotation = false ========== 定义方位轴方式,true:为主轴头式;false:为工作台式。
spindle elevation rotation = false ========== 定义仰角轴方式,true:为主轴头式;false:为工作台式。
linearise multiaxis moves = true ========== 定义机床是否支持线性多轴联动,true:支持;false:不支持。 use hole top in cycles = false retract at angular limit = false unwind at tool change = false suppress xy arc = false suppress xz arc = false
suppress yz arc = false transform workplane origin = false previous multax rapid style = false knot vector type = none
units = input ======= 定义单位,input=ouput;metric;imperial
coordinates = absolute ====== 定义坐标单位,absolute ;incremental
azimuth axis units = degrees ======= 定义方位轴单位 azimuth axis direction = positive ======= 定义方位轴用法,相对还是绝对
elevation axis units = degrees ======== 定义仰角轴单位
elevation axis direction = positive ======== 定义仰角轴用法,相对还是绝对
spline type = none workplane angles = none option file units = none
maximum feedrate = 9999.0000 minimum feedrate = 1.0000 rapid feedrate = 9999.0000 maximum tape length = 0.0000 plunge threshold angle = 0.0000 maximum segment = 0.0000 diameter = 1.0000 withdrawal amount = 50.0000 arc radius limit = 10000.0000 retraction threshhold angle = 360.0000 arc minimum radius = 0.0000
azimuth axis parameters = ( 0 0 0 0 0 0 ) ========= 定义方位轴参数,前三个零为分别定义每个轴的旋转中心;后三个零为定义方位轴的坐标,依次为X、Y、Z。
azimuth centre = ( 0 0 0 ) ========================== 定义方位轴圆心参数
elevation axis parameters = ( 0 0 0 0 0 0 ) ========== 定义仰角轴参数,前三个零为分别定义每个轴的旋转中心;后三个零为定义仰角轴的坐标,依次为X、Y、Z。
elevation centre = ( 0 0 0 ) =========================== 定义仰角轴圆心参数
pcs origin = ( 0 0 0 0 0 0 ) ======== 定义旋转轴圆心
linear axis limits = ( -99999 999999 -99999 999999 -99999 999999 ) ============== 定义线性轴范围
rotary axis limits = ( -99999 999999 -99999 999999 999
1 ) ============ 定义旋转轴范围,前两个零为定义方位轴的旋转范围;中间两个零为定义仰角轴的旋转范围;第五个零定义公差;第六个零定义分辨率。 move safe angles = ( 0 0 0 0 ) ==================== 定义起始角度
define block tape start \
#ID ProgID
N ; G2 91 ; G6 28 ; Z 0 ; Z =C N ; MS =C ; PM JobName ; EM =C
N ; MS =C ; MT Month ; DY Day ; YR Year ; EM =C N ; MS =C ; TN ToolType ; EM =C
N ; MS =C ; TD ToolRadius[ToolNum] ; EM =C N ; MS =C ; TR ToolRadius[ToolNum] ; EM =C
N ; compensation off ; G6 49 ; xy plane ; G4 80 ; G3 54
#N ; G2 91 ; G6 28 ; X 0 ; Y 0 ; X =C ; Y =C
end define
define block tape end
N ; G5 91 ; G6 28 ; Z Zcoord ; Z =C N ; H 0 ; G6 49
#N ; G6 28 ; X 0 ; Y 0 ; X =C ; Y =C N ; M1 30 end define
define block go home preamble end define
define block tool change first
#N ; OP ; change tool ; T ToolNum
G3 54 ; G5 90 ; G3 =C ; G5 =C ; #T NextTool ; end define
define block tool change
N ; G5 91 ; G6 28 ; Z 0 ; Z =C N ; H 0 ; G6 49
N ; G6 28 ; X 0 ; Y 0 ; X =C ; Y =C N ; T ToolNumber ; change tool
G5 90 ; G3 54 ; G5 =C ; G3 =C ; #T NextTool ; end define
define block tool change clear end define