---------------
Needs G95 (IPR) to be suppressed with G96 (CSS) but still needs G94 (IPM) with
G97 (direct RPM spindle).
Solution
The custom command below at the 'linear' and 'circular' event will allow G94 to
output and suppress G95 (as long as G94/G95 is not a block in these events).
global mom_spindle_rpm
global mom_spindle_mode
if { [ info exists mom_spindle_rpm ] && $mom_spindle_mode=="RPM" } {
MOM_output_literal "G94"
}
Notes