State
Standard Word: SpindleState
Variable: Spindle.State
Type: Enum
There are 3 different spindle states according to the rotation direction of the spindle. These are as follows: CW(M03), CCW(M04) and STOP(M05).
These different states are defined in the “Spindle.State” variable. Spindle speed state information is obtained from the line “SPINDL/RPM,6000,CLW” (or similar expressions in different CAMs) in the APT/CL file and then the active state is transferred to this variable.
This variable can be used in any script. When used in a script, the “Spindle.State” variable returns the string “CW”, “CCW” or Stop.. In addition, the word “SpindleState” is created from this variable. M03,M04,M05 codes for each spindle state can be defined in the “Edit” page of this variable. This word is then used in the Format Spindle Speed. command and prints the relevant M code to the NC program.