What
TCL code can be used to check to see if the
Preset Spindle RPM is set in
Post Builder and if so to output it?
Solution
The following
Custom Command can be added to both the
Initial Move and the
First Move in
Post Builder to output this value.
###
global mom_spindle_preset_rpm
global mom_spindle_preset_rpm_toggle
if { [info exists mom_spindle_preset_rpm_toggle] && $mom_spindle_preset_rpm_toggle == 1 } {
MOM_output_literal "G97 S$mom_spindle_preset_rpm"
} else {
set mom_spindle_preset_rpm 0
}
###
Notes and References
Please be aware that any code provided by GTAC is intended to be used for sample purposes only. It is the user's responsibility to determine whether the code is suitable for the purpose.
Hardware/Software Configuration
Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: CAM
Version: V1903
Function: POSTBUILDER
Ref: 001-9679719