9: PROGRAMMING
21. Home, change coordinate system data (G10) or set
offsets (G92, G94)
22. Perform motion (G00 to G03, G12, G13, G80 to G89 as
modified by G53)
23. Stop (M00, M01, M02, M30, M60)
Modal Groups
G- and M-codes are, generally speaking, modal — they cause
the machining system to change from one mode to another.
The mode stays active until another command changes it
implicitly or explicitly.
E X A M P L E
If coolant is turned on (M07 or M08), it stays on until it is
explicitly turned off in the program (M09).
A few G-codes and M-codes are non-modal (like Dwell (G04)).
These codes have effect only on the lines on which they occur.
Modal commands are arranged in sets, called modal groups.
Only one member of a modal group may be in force at any
given time. In general, a modal group contains commands for
which it is logically impossible for two members to be in effect
at the same time (like inch units (G20) vs. millimeter units
(G21)).
A machining system may be in many modes at the same time,
with one mode from each modal group being in effect.
For all G-code modal groups, when a machining system is
ready to accept commands, one member of the modal group
must be in effect. There are default settings for these modal
groups. When the machining system is turned on or re-
initialized, default values are automatically in effect.
Modal groups for G-codes are detailed in the following table.
Group Commands Group Description
Group
1
{G00, G01,
G02, G03,
G33, G38.x,
G73, G76,
G80, G81,
G82, G84,
G85, G86,
G88, G89}
Motion (one always in effect)
Group Commands Group Description
Group
2
{G17, G18,
G19, G17.1,
G17.2, G17.3}
Plane selection
Group
3
{G90, G91} Distance mode
Group
4
{G90.1,
G91.1}
Arc distance mode
Group
5
{G93, G94} Feed rate mode
Group
6
{G20, G21} Length units
Group
7
{G40, G41,
G42, G41.1,
G42.1}
Cutter compensation
Group
8
{G43, G43.1,
G49}
Tool length offset
Group
10
{G98, G99} Return mode in canned cycles
Group
12
{G54, G55,
G56, G57,
G58, G59,
G59.1, G59.2,
G59.3}
Select work offset coordinate
system
Group
13
{G61, G61.1,
G64}
Path control mode
Group
14
{G96, G97} Spindle control mode
Group
15
{G07, G08} Lathe diameter mode
Modal groups for M-codes are detailed in the following table.
Group Commands Group Description
Group
4
{M00, M01,
M02, M30,
M60}
Program stop and program end
Group
7
{M03, M04,
M05}
Spindle control
©Tormach® 2024
Specifications subject to change without notice.
Page 175 UM10811: 1500MX Operator's Manual (Version 0424A)
For the most recent version, see tormach.com/support