|
|
楼主 |
发表于 2026-1-27 21:36:24
|
显示全部楼层
终于解决了,IKE后处理中在ptlchg0$块下方大概这个位置加上一个输出zabs即可,这样每次轴旋转前Z轴就会提前先输出下一个安全平面的高度,这样在3+2或者四轴桥板摆角度就不怕碰撞啦,后面再简单加一下判断旋转角度,如超多90度回下零。想了好几个星期,终于解决好了,官方的5x后处理默认就会先移动至下一个安全平面在执行旋转。我找了好久,ike并没有这个功能,只有旋转前回零,每次旋转回零太浪费时间了。
ptlchg0$ #Call from NCI null tool change (tool number repeats)
toolchng0_flg = 1
if (op_id$ <> last_op_id) | (xform_op_id$ <> op_id$ & xform_op_id$ <> last_xform_op_id), new_op_flg = 1
else, new_op_flg = 0
if gcode$ = 1 & xform_op_id$ = op_id$ & not(new_op_flg), toolchng0_lin_flg = 1
if tilt_bias & new_op_flg & link_flg <> 154 & link_flg <> 155 & last_link_flg <> 154 & last_link_flg <> 155, tilt_sol = tilt_bias - 1
pset_mach
if agg_flg <> last_agg_flg,
[
toolchng0_flg = 0
ptlchg$
]
else,
[
#Recall final point for linking
if last_link_flg = 154 | last_link_flg = 155,
[
feed = prv_feed
gcode$ = prv_gcode$
pcom_moveb
if gcode$ = 1, plinout
else, prapidout
]
pcuttype
pcom_moveb
phsm_set
pwcs_set
pdshift_set
ptlng_set
if new_op_flg, pret_decision_str
else, pret_decision_mid
prot_tilt_label_set
*zabs #大概这个位置
|
|