G code groups are typically numbered from 0 to 25. G codes from the same group automatically replace codes from the same group except in the case of codes from group 0 which is known as the "non-modal" group.
The groups are typically as follows;
NON-MODAL
Group 0: G04, G09, G10, G11, G27, G28, G29, G30, G31, G37, G45, G46, G47, G48, G51, G52, G53, G60, G65, G92.
MOTION COMMANDS
Group 1: G00, G01, G02, G03.
PLANE SELECTION
Group 2: G17, G18, G19.
DIMENSIONING MODE
Group 3: G90, G91.
STORED STROKES
Group 4: G22, G23.
UNITS OF INPUT
Group 6: G20, G21.
CUTTER RADIUS OFFSET
Group 7: G40, G41, G42.
TOOL LENGTH OFFSET
Group 8: G43, G44, G49.
CYCLES
Group 9: G73, G74, G76, G80-G89.
RETURN MODE
Group 10: G98, G99.
SCALING CANCEL
Group 11: G50.
COORDINATE SYSTEM
Group 12: G54-G59.
CUTTING MODES
Group 13: G61-G64.
MACRO MODE
Group 14: G66, G67.
COORDINATE ROTATION
Group 16: G68, G69.
POLAR INPUT
Group 18: G15, G16.
SPINDLE SPEED FLUCTUATION
Group 24: G25, G26.
Group 1 is not affected by commands from group 9 but group 1 commands immediately cancel group 9 commands. In all other cases groups do not cancel each other.
(post is archived)