admin管理员组

文章数量:1530987

2024年4月23日发(作者:)

PowerMILL后处理制作教程

define word TN

address letter = "TOOL TYPE:- "

address width = 13

field width = 25

end define

具体解释:

define word TN —————————————— 定义字段;

address letter = "TOOL TYPE:- " ————— 定义字段的返回值,比如在后处理文件里有

“MS =C ; TN ToolType ; EM =C”,而在写程式的时候选用的是端铣刀,那么在CNC程式里

就会有(TOOL TYPE:- ENDMILL);

address width = 13 ——————————— 定义字符宽度,如上"TOOL TYPE:- ",从T

开始算起一共13位,包括空格;

field width = 25 ——————————— 定义返回字的宽度,如上"ENDMILL",如果field

width = 2,那"TOOL TYPE:- "就返回EN;如果field width = 25,那"TOOL TYPE:- "就返

回ENDMILL。

end define

========================== 第二段是定义字符的格式

=============================

define format ( / G6 S T M1 M2 L P D E H O )

address width = 1

field width = 2

exponent width = 0

scale factor = 1

scale divisor = 1

tape position = 0

print position = 1

sign = none

not permanent

not modal

metric formats

leading zeros = false

trailing zeros = true

decimal point = false 控制公制尺寸的前导零、后导零,小数点

decimal places = 0

imperial formats

leading zeros = false

trailing zeros = true

decimal point = false 控制英制尺寸的前导零、后导零,小数点

decimal places = 0

end define

word order = ( OP N G1 G2 G3 G4 G5 )

word order = ( + G6 G7 X Y Z B C )

word order = ( + I J K R D S T )

word order = ( + H M1 M2 MS msg EM Q ) 注册字符

word order = ( + Q1 Z2 R2 ID F )

word order = ( + TN TD TR DY MT YR PM )

========================== 第三

===================================

define keys

blocknumber = N —————— 定义程序段号

preparatory function = G1 ——————— 定义准备功能指令

aux function = M1 —————— 定义辅助功能指令

x feedrate not used ————— 定义X进给率指令

y feedrate not used ————— 定义Y进给率指令

z feedrate not used ————— 定义Z进给率指令

circle angle not used ————— 圆周角度

x coordinate = X —————— 定义X坐标轴

y coordinate = Y —————— 定义Y坐标轴

z coordinate = Z —————— 定义Z坐标轴

key i = I —————— 定义X轴矢量I键

key j = J —————— 定义Y轴矢量J键

key k = K —————— 定义Z轴矢量K键

feedrate = F —————— 定义进给率指令

feedrate per revolution = F ——————— 定义每转进给率指令

spindle = S —————— 定义主轴指令

tool number = T —————— 定义刀具指令

cycle dwell not used

dwell = X ————— 定义暂停时间键值

tool length = H —————— 定义刀具长度补偿指令

tool radius = D —————— 定义刀具半径补偿指令

drill peck depth = Q1 —————— 钻孔的啄钻深度

drill hole depth = Z2 —————— 定义钻孔深度

clearplane = R2 ————— 定义安全平面高度

message start = MS ————— 定义注释的开始符

message end = EM ———— 定义注释的结束符

opskip = OP ———— 定义跳段符号

radius = R ————— 定义半径R键

program id = ID ————— 定义程序号

azimuth axis = B ————— 在多轴加工中,定义方位轴

elevation axis = C ————— 在多轴加工中,定义仰角轴

3rd rotation axis = null ————— 在多轴加工中,定义第三旋转轴

leader not used

x vector not used

y vector not used

z vector not used

error not used

段是定义键值

本文标签: 定义指令后处理前导刀具