本帖最后由 lqlkmqj2 于 2020-2-22 14:14 编辑
程序名称: global mom_operation_name
MOM_output_literal " (NANE:$mom_operation_name)"
创建时间: global mom_date
MOM_output_literal "(CREATE DATE: format $mom_date)"
刀具名称: global mom_tool_name
MOM_output_literal ";(TOOL NAME: format $mom_tool_name)"
加工时间:
global mom_machine_time
MOM_output_literal ";(time:[format "%.2f" $mom_machine_time] H )"
刀具信息
global mom_tool_name mom_tool_type
global mom_tool_diameter mom_tool_corner1_radius mom_tool_flute_length
global mom_tool_length
MOM_output_literal "(ToolName=$mom_tool_name)"
MOM_output_literal "(D=[format "%.2f" $mom_tool_diameter] R=[format "%.2f" $mom_tool_corner1_radius] F=[format "%.2f" $mom_tool_flute_length] L=[format "%.2f" $mom_tool_length])"
进给速度为250时报警: global mom_feed_cut_value global mom_operation_name
if { $mom_feed_cut_value == 250 } { set errmes " WARNING:$mom_operation_name F=250 PLEASE CHECK" MOM_abort " \n\n\n S=0 \n\n Yang Bao Feng提示:\n\n操作: $mom_operation_name 的进给速度未设定,请设定\n\n\n "
}
主轴转速为0时报警: global mom_spindle_speed global mom_operation_name
if { $mom_spindle_speed == 0 } { set errmes " WARNING:$mom_operation_name S=0 PLEASE CHECK" MOM_abort " \n\n\n S=0 \n\n Yang Bao Feng提示:\n\n操作: $mom_operation_name 的主轴转速未设定,请设定\n\n\n " }
|