数控如何调用子程序加工中心

2024-12-24 17:21:02
推荐回答(4个)
回答1:

我是一名数控爱好者,希望我的视频能给大家带来快乐和正能量,感谢大家一直的关注和支持。

回答2:

子程序调用代码为
G65为可带参数调用子程序
G66为子程序调用循环,必须由G67代码结束循环
M98为普通子程序调用
子程序名称由字母O指定,子程序末必须加结束码
宏维系统子程序结束码为M17,子程序写在主程序结码后面
宝元系统子程序结束码为M99,子程序单独写,保存在主程序同一个文件夹

回答3:

有M98P1001,P1001是一个重复运用的程序例如:%
O1635
G40G49G80
G91G28Z0
(TOOL: ZXZ )
M06T1
G90G54G00X0Y0A0.
M08G90G00Z100.G43H1
T2
M98P1
G90G54A180.
M98P1
G80Z100.
M09
M05
G91G28Z0
G49
M01
M06T2
(TOOL: Z2.6 )
G90G54G00X0Y0A180.
M08G90G00Z100.G43H2
T3
M98P2
G90G54A0.
M98P2
G80Z100.
M09
M05
G91G28Z0
G49
M00
M06T3
(TOOL: M3*0.5 )
G90G54G00X0Y0A0.
G90G00Z100.G43H3
T4
M03S100
M98P3
G90G54A180.
M98P3
G80Z100.
M09
M05
M30
%

O01
G40G49G80
G91G28Z0
(TOOL: ZXZ )
M06T1
G90G54G00X0Y0
G90G00Z100.G43H1
M03S2000
G98G81X8.Y0.0Z-1.6R1.F100M08
G80Z100.
M09
M05
G91G28Z0
G49
M01
M06T2
(TOOL: Z2.5 )
G90G54G00X0Y0
G90G00Z100.G43H2
M03S1000
G98G83X8.Y0.0Z-7.R1.Q0.7F100M08
G80Z100.
M09
M05
G91G28Z0
G49
M01
M06T52
(TOOL: M3*0.5 )
G90G54G00X0Y0
G90G00Z100.G43H52
M03S100
G00X8.Y0.0
G98G84X8.Y0.0Z-4.R1.F50M08
G80Z100.
G98G84X8.Y0.0Z-8.R1.F50M08
G80Z100.
M09
M05
G91G00G28Z0
G49
G90
M99
%

还有一种是内部子程序M97 P101的格式!

回答4:

M98 调用子程序
M99 子程序结束
P1000 O1000或者N1000
L3 3次 L1 1次