custom command set M8, if no M7 set
custom command set M8, if no M7 set
(OP)
I'd like to add a custom command to the post which looks at the start event's in each path, and if there is no thru coolant on (M7) set, will output an M8 instead.
Can someone show me how to do this, thanks....
Can someone show me how to do this, thanks....





RE: custom command set M8, if no M7 set
And when you want thru (M07), just turn it on instead?
Jay
RE: custom command set M8, if no M7 set
RE: custom command set M8, if no M7 set
jelmerra
www.rouwe-analysis.info
RE: custom command set M8, if no M7 set
i want a custom command which will output M8, if a start event of M7 (thru coolant) hasn't been specified , is this possible?
RE: custom command set M8, if no M7 set
e.g.
global mom_coolant_status
if [info exists mom_coolant_status] {
switch -- $mom_coolant_status {
"NONE" {
set mom_coolant_status "FLOOD"
MOM_force once M_coolant
}
default {
MOM_force once M_coolant
}
}
} else {
set mom_coolant_status "FLOOD"
MOM_force once M_coolant
}
You could put the above code in a first move or an initial move depending upon where you intend to output the M code.
RE: custom command set M8, if no M7 set
global mom_coolant_status
if { $mom_coolant_status != "THRU" } {
set mom_coolant_status ON
}
#MOM_output_literal "---------$mom_coolant_status"