Mazak G-codes: reference table

Mazak EIA/ISO G-codes for Mazatrol machining centers and Integrex machines: everyday commands, full list with modal groups, and T/M series differences.

This reference lists the G-codes used in EIA/ISO programs on Mazatrol controls (Fusion 640M, Matrix, Matrix 2, SmoothG). Conversational Mazatrol programs do not use them. The available set depends on the control generation and the installed options. A G-code the control does not know, or one whose option is missing, stops the program with alarm 808.

The fixed cycles are described in detail on the page Fixed cycles.

Modal groups

Codes in group 00 act only in the block in which they are written. All other groups are modal. G-codes from different groups can share a block, and the control processes them in ascending group order. If two codes from the same group appear in one block, the last one is valid.

The “Default” column marks two cases. “Power-on” means the code is active after switching on or after a reset that initializes the modal states. “Parameter” means the initial state is selected by a parameter. A change between inch and metric input only takes effect after switching the control off and on again.

Essential G-codes

CodeGroupDescription
G0001Positioning (rapid traverse)
G0101Linear interpolation
G0201Circular interpolation clockwise
G0301Circular interpolation counterclockwise
G0400Dwell
G1702XY plane selection
G2800Reference point return
G4007Tool radius compensation off
G4107Tool radius compensation left
G4207Tool radius compensation right
G4308Tool length offset (+)
G4908Tool length offset off
G5412Workpiece coordinate system 1
G8009Fixed cycle off
G8109Spot drilling cycle
G8309Deep-hole drilling cycle
G8409Tapping cycle
G9003Absolute data input
G9103Incremental data input
G9405Feed per minute
G9505Feed per revolution

Full reference

CodeGroupDescriptionDefault
G0001Positioning (rapid traverse)Parameter
G0101Linear interpolationParameter
G01.101Thread cutting with C-axis interpolation
G0201Circular interpolation clockwise
G0301Circular interpolation counterclockwise
G02.101Spiral interpolation clockwise
G03.101Spiral interpolation counterclockwise
G02.201Involute interpolation clockwise
G03.201Involute interpolation counterclockwise
G0400Dwell
G0500High-speed machining mode
G06.101Fine spline interpolation
G06.201NURBS interpolation
G0700Virtual-axis interpolation
G07.100Cylindrical interpolation
G0900Exact stop check
G1000Programmed data setting on
G10.100Command address off
G10.9Selection between diameter and radius data input
G1100Programmed data setting off
G12.126Polar coordinate interpolation on
G13.126Polar coordinate interpolation offPower-on
G1518Polar coordinate input off
G1618Polar coordinate input on
G1702XY plane selectionParameter
G1802ZX plane selectionParameter
G1902YZ plane selectionParameter
G2006Inch data inputParameter
G2106Metric data inputParameter
G2204Pre-move stroke check on
G2304Pre-move stroke check offPower-on
G2700Reference point check
G2800Reference point return
G2900Return from reference point
G3000Return to 2nd, 3rd or 4th reference point
G30.100Return to floating reference point
G3100Skip function
G31.100Multi-step skip 1
G31.200Multi-step skip 2
G31.300Multi-step skip 3
G3301Thread cutting (straight, taper)
G3401Thread cutting with variable lead
G34.100Hole pattern: holes on a circle
G3500Hole pattern: holes on a line
G3600Hole pattern: holes on an arc
G3700Automatic tool length measurement
G37.100Hole pattern: holes on a grid
G3800Vector selection for tool radius compensation
G3900Corner arc for tool radius compensation
G4007Tool radius / nose radius compensation offPower-on
G4107Tool radius / nose radius compensation left
G4207Tool radius / nose radius compensation right
G41.2073D or 5-axis tool radius compensation left
G42.2073D or 5-axis tool radius compensation right
G41.4, G41.5075-axis tool radius compensation left (variants)
G42.4, G42.5075-axis tool radius compensation right (variants)
G40.115Shaping off
G41.115Shaping left
G42.115Shaping right
G4308Tool length offset (+)
G4408Tool length offset (−)
G43.408Tool tip point control type 1 on
G43.508Tool tip point control type 2 on
G4500Tool position offset, extension
G4600Tool position offset, reduction
G4700Tool position offset, double extension
G4800Tool position offset, double reduction
G4908Tool length offset offPower-on
G5011Scaling offPower-on
G5111Scaling on
G50.119Mirror image offPower-on
G51.119Mirror image on
G50.223Polygonal machining offPower-on
G51.223Polygonal machining on
G5200Local coordinate system setting
G5300Machine coordinate system selection
G53.100Tool axis direction control
G5412Workpiece coordinate system 1Power-on
G5512Workpiece coordinate system 2
G5612Workpiece coordinate system 3
G5712Workpiece coordinate system 4
G5812Workpiece coordinate system 5
G5912Workpiece coordinate system 6
G54.112Additional workpiece coordinate systems
G54.223Fixture offset (dynamic offsetting)
G54.427Workpiece setup error correction
G6000One-way positioning
G6113Exact stop mode
G61.113High-accuracy mode (geometry compensation)
G61.213Modal spline interpolation
G6213Automatic corner override
G6313Tapping mode
G6413Cutting modePower-on
G6500User macro, single call
G6614User macro, modal call A
G66.114User macro, modal call B
G6714User macro, modal call offPower-on
G6816Programmed coordinate rotation on, or 3D coordinate conversion on
G6916Coordinate rotation, 3D conversion or inclined-plane machining offPower-on
G68.216Inclined-plane machining on
G68.316Inclined-plane machining on, defined by tool axis direction
G68.416Incremental coordinate system for inclined-plane machining
G71.109Fixed cycle: chamfering cutter, clockwise
G72.109Fixed cycle: chamfering cutter, counterclockwise
G7309Fixed cycle: high-speed deep-hole drilling
G7409Fixed cycle: reverse tapping
G7509Fixed cycle: boring 1
G7609Fixed cycle: boring 2
G7709Fixed cycle: back spot facing
G7809Fixed cycle: boring 3
G7909Fixed cycle: boring 4
G8009Fixed cycle offPower-on
G8109Fixed cycle: spot drilling
G81.100Chopping
G8209Fixed cycle: drilling with dwell
G82.209Fixed cycle: automatic pecking
G8309Fixed cycle: deep-hole drilling
G8409Fixed cycle: tapping
G84.209Fixed cycle: synchronous tapping
G84.309Fixed cycle: synchronous reverse tapping
G8509Fixed cycle: reaming
G8609Fixed cycle: boring 5
G8709Fixed cycle: back boring
G8809Fixed cycle: boring 6
G8909Fixed cycle: boring 7
G9003Absolute data inputParameter
G9103Incremental data inputParameter
G9200Coordinate system setting / spindle speed limit
G92.500Workpiece coordinate system rotation
G9305Inverse time feed
G9405Feed per minute (asynchronous)Parameter
G9505Feed per revolution (synchronous)Parameter
G9617Constant surface speed control onParameter
G9717Constant surface speed control offParameter
G9810Fixed cycle: return to initial point levelPower-on
G9910Fixed cycle: return to R-point level
G10900Single program multi-system control
G11020Cross machining control on
G11120Cross machining control off
G11200M, S, T, B output to the opposite system
G11323Hob milling mode off
G114.323Hob milling mode on
G130Tornado tapping (macro call)
G136Measurement macro (workpiece and coordinate measurement)
G137Compensation macro

On machines with a turning function, such as Integrex multitasking machines, the milling-style program (series M) also accepts the turning cycles G270 to G276, G283 to G289, G290, G292 and G294. They are listed in the next section.

G-code series T and M on multitasking machines

Integrex multitasking machines can be run with two G-code series. Series M uses the milling assignment from the table above. Series T follows the assignment known from lathes, so several codes move to other numbers. Which series is active is set on the machine. The table lists the functions whose code differs between the two series.

FunctionSeries MSeries T
Thread cutting (straight, taper)G33G32
Hole pattern on a circleG34.1G234.1
Hole pattern on a lineG35G235
Hole pattern on an arcG36G236
Hole pattern on a gridG37.1G237.1
Coordinate system setting / spindle speed limitG92G50
3D coordinate conversion onG68G68.5
3D coordinate conversion offG69G69.5
Finishing cycleG270G70
Longitudinal roughing cycleG271G71
Transverse roughing cycleG272G72
Contour-parallel roughing cycleG273G73
Longitudinal cut-off cycleG274G74
Transverse cut-off cycleG275G75
Compound threading cycleG276G76
Face drilling cycleG283G83
Face tapping cycleG284G84
Face synchronous tapping cycleG284.2G84.2
Face boring cycleG285G85
Outside drilling cycleG287G87
Outside tapping cycleG288G88
Outside synchronous tapping cycleG288.2G88.2
Outside boring cycleG289G89
Longitudinal turning cycle (fixed cycle A)G290G90
Threading cycleG292G92
Transverse turning cycle (fixed cycle B)G294G94
Feed per minuteG94G98
Feed per revolutionG95G99
Polar coordinate input onG16G122
Polar coordinate input offG15G123

Series T has no codes for the milling fixed cycles G71.1 to G89, for tool length offset G43 to G49, for scaling and mirror image (G50, G51, G50.1, G51.1), for programmed coordinate rotation, for G90/G91 and for the return levels G98/G99 in milling cycles. It adds G122.1 and G123.1 for switching the X-axis radius command on and off, plus G52.5 and G53.5 for cancelling and selecting the Mazatrol coordinate system.