Modal State
The modal state of the system changes the meaning and behavior of the system.
Preserved Across Reboots
- Active G-Codes by logical group, e.g.:
- Units mode: (G20/G21)
- Absolute/Relative: (G90/G91)
- Active plane (G17/G18/G19)
- Coordinate transforms
- Active Work coordinate offsets (G54-G59)
- Configuration
- Controller and servo configuration
- State of Compass parameters
Reset During Controller Reboot
- Cutter radius Compensation - Off ( G40 /G41/G42)
- Scaling - Off ( G50 /G51)
- Tool Length Offset - Off (G43/G44/ G49 )
- Canned Cycle - Off ( G80 )
- Feed State - units/min (G93/ G94 )
- Non Modal State - None
- Motion State - Rapid ( G0 , G1, G2, G3)
- Canned Cycle - None
- Exact Stop - None (Off) - (G61, G64 )
- Macro Program Modal State - None
- Spindle Speed State - None
- Coordinate Rotation State - None (OFF) - (G68, G69 )
- Modal Non-Rapid Feedrate - 0.0
- Modal Rapid Feedrate - 0.0
See Also
For managing the NC modal state across subprogram and macro calls, a Push and Pop of the NC state is provided. See:
G-Code Macro $ System Functions.
Push and Pop commands are expected by the system to be balanced. For example...if a subprogram call has a Push at the top of a file it should be matched with a Pop at the end so the net state is preserved to the outer program.