|
发表于 2023-8-14 21:56:51
|
显示全部楼层
本帖最后由 snowa* 于 2023-8-14 22:02 编辑
用坐标轴判断已经可以实现了
global mom_tool_axis
global mom_operation_name
set 4th [ format "%0.6f" $mom_tool_axis(0) ]
set 5th [ format "%0.6f" $mom_tool_axis(1) ]
set 6th [ format "%0.6f" $mom_tool_axis(2) ]
if { $4th !=0 || $5th !=0 || $6th !=1 } {
MOM_output_to_listing_device "程序名称:$mom_operation_name,非三轴刀路"
MOM_output_to_listing_device "请检查刀轴或者坐标系"
set msg [MOM_display_message 程序名称:$mom_operation_name,非三轴刀路 后处理消息: I 中止后处理]
switch $msg {
1 {
MOM_abort 中止
}
}
}
|
|