|
发表于 2024-11-2 18:58:06
|
显示全部楼层
师傅我现在弄的新变量做比较,但是检测不到粗车里面的半精转速变化求指导,
我是这么写的
fmt "M" 4 first_gear #新变量档位范围 111111
fmt "M" 4 next_gear #新变量档位范围 111111
ltlchg$ #车床#刀具更换
first_gear= frange(one, c1_ss) #111111
next_gear= frange(one, n1_ss) #111111
ltlchg0$ ##调用NCI零刀具更换,车床
#111111 #判断同一把刀加工不同策略时候师傅输出M05 G04 X4.0
[
if use_gear=1 & first_gear <>next_gear,
[
pbld, n$, *sm05,"(888888888888888888)",e$ #111111
pbld, n$,*sg04,*dwelld,p_stop,e$ #111111
]
]
ptoolend$ #从缓冲区1读取PRV、当前和下一个工具信息
first_gear= frange(one, c1_ss) #111111
next_gear= frange(one, n1_ss) #111111
pl_retract #Retract tool based on next tool gcode, lathe (see ptoolend)#根据下一个刀具gcode(车床)收回刀具(见ptoolend)
#111111 每次换刀的时候判断是否输出M05 G04 X4.0
[
if use_gear=1 & first_gear <>next_gear& n1_gcode <> 1003,
[
pbld, n$, *sm05,"(888888888888888888)",e$ #111111
pbld, n$,*sg04,*dwelld,p_stop,e$ #111111
]
]
prpmnull #Output for RPM at NULL tlchg (don't force spindle 'M' code)
#111111 #判断粗车的时候开启半精是否输出M05 G04
[
if use_gear=1 & first_gear <>next_gear,
[
if tool_op$=60 & banjing<>0,
[
pbld, n$, *sm05,"(99999999999999)",e$ #111111
pbld, n$,*sg04,*dwelld,p_stop,e$ #111111
]
]
] |
|