|
楼主 |
发表于 2025-1-5 10:46:39
|
显示全部楼层
global mom_tool_axis
if {$mom_tool_axis(0) && $mom_spindle_speed > 2000} {
if {![info exists mom_parent_group_name] || ![info exists mom_group_name]} {
MOM_output_to_listing_device "**************************************************************
TISI:
CEXI : S≤2000,!
**************************************************************"
set msg [MOM_display_message "工序:($mom_operation_name)转速S=[format %.0f $mom_spindle_speed]是否过高? 后处理消息: I 继续后处理 中止后处理"]
switch $msg {
1 {
set offset_flag 1
}
2 {
MOM_abort "中止"
}
}
} else {
MOM_output_to_listing_device "**************************************************************
TISI::
($mom_parent_group_name--->$mom_group_name--->$mom_operation_name)S=[format %.0f $mom_spindle_speed],GAO!
: S≤2000,!
**************************************************************"
set msg [MOM_display_message "工序:($mom_parent_group_name--->$mom_group_name--->$mom_operation_name)转速S=[format %.0f $mom_spindle_speed]是否过高? 后处理消息: I 继续后处理 中止后处理"]
switch $msg {
1 {
set offset_flag 1
}
2 {
MOM_abort "中止"
}
}
}
}
if {$mom_tool_axis(1) && $mom_spindle_speed > 2000} {
if {![info exists mom_parent_group_name] || ![info exists mom_group_name]} {
MOM_output_to_listing_device "**************************************************************
提示您:
工序($mom_operation_name)的主轴转速S=[format %.0f $mom_spindle_speed],设置过高!
主轴转速过高易引起主轴故障,故对主轴最高转速设限 : S≤2000,请重新检查设置!
**************************************************************"
set msg [MOM_display_message "工序:($mom_operation_name)转速S=[format %.0f $mom_spindle_speed]是否过高? 后处理消息: I 继续后处理 中止后处理"]
switch $msg {
1 {
set offset_flag 1
}
2 {
MOM_abort "中止"
}
}
} else {
MOM_output_to_listing_device "**************************************************************
提示您:
该工序($mom_parent_group_name--->$mom_group_name--->$mom_operation_name)的主轴转速S=[format %.0f $mom_spindle_speed],设置过高!
主轴转速过高易引起主轴故障,故对主轴最高转速设限 : S≤2000,请重新检查设置!
**************************************************************"
set msg [MOM_display_message "工序:($mom_parent_group_name--->$mom_group_name--->$mom_operation_name)转速S=[format %.0f $mom_spindle_speed]是否过高? 后处理消息: I 继续后处理 中止后处理"]
switch $msg {
1 {
set offset_flag 1
}
2 {
MOM_abort "中止"
}
}
}
}
有时侧铣限速失效,请高手帮忙改,谢谢
|
|