Check the inserts for wear. Interval chosen is 5 minutes. How can this be done in Post Configurator?
SolutionThe sample code below sets the variable "i" to the integer of 5 at the start of program. In before motion, the cutting time checks to see if the variable "i" has reached the threshold of 5 minutes. The NC output can be placed in the proc tool_time .
LIB_GE_command_buffer_edit_insert MOM_start_of_program_LIB PROGRAMSTART init_var _START_PRG_INIT after @START_OF_PROGRAM
#------------------------------------------------------------
proc init_var {} {
#------------------------------------------------------------
global i
set i "5"
}
LIB_GE_command_buffer_edit_insert MOM_before_motion MOM_before_motion_ENTRY_end tool_time _TOOLTEST after @DEFAULT_ENTRY
#------------------------------------------------------------
proc tool_time {} {
#------------------------------------------------------------
global mom_cutting_time i
if {$mom_cutting_time >= $i} {
MOM_output_literal "\NEWLINE"
MOM_output_text "$mom_cutting_time Minute Interval Go Home - Change Insert\n"
MOM_output_literal "\NEWLINE"
incr i 5
}
}