Mazak G Code List (M Series)

Mazak G code list for cnc machinists who work on MAZAK machining centers.


Mazak G Code List

G CodeFunction
G01Linear interpolation
G01.1Threading with C-axis interpolation
G02Circular interpolation (CW)
G03Circular interpolation (CCW)
G02.1Spiral interpolation (CW)
G03.1Spiral interpolation (CCW)
G05High-speed machining mode
G06.1Fine spline interpolation
G06.2NURBS interpolation
G07Virtual-axis interpolation
G07.1Cylindrical interpolation
G09Exact-stop check
G10Data setting mode ON
G10.1Command address OFF
G11Data setting mode OFF
G12.1Polar coordinate interpolation ON
G13.1Polar coordinate interpolation OFF
G17X-Y plane selection
G18Z-X plane selection
G19Y-Z plane selection
G20Inch command
G21Metric command
G22Pre-move stroke check ON
G23Pre-move stroke check OFF
G27Reference point check
G28Reference point return
G29Return from reference point
G30Return to 2nd, 3rd and 4th reference points
G31Skip function
G31.1Multi-step skip 1
G31.2Multi-step skip 2
G31.3Multi-step skip 3
G33Thread cutting (straight, taper)
G34Variable lead thread cutting
G34.1Hole machining pattern cycle (on a circle)
G35Hole machining pattern cycle (on a line)
G36Hole machining pattern cycle (on an arc)
G37.1Hole machining pattern cycle (on a grid)
—G37Automatic tool length measurement
—G38Vector selection for tool radius compensation
G39Corner arc for tool radius compensation
G40Nose R/Tool radius compensation OFF
G41Nose R/Tool radius compensation (left)
G41.23-D tool radius compensation (left)
G42Nose R/Tool radius compensation (right)
G42.23-D tool radius compensation (right)
—G43Tool length offset (+)
G43.4Tool tip point control (Type 1) ON
G43.5Tool tip point control (Type 2) ON
—G44Tool length offset (–)
—G45Tool position offset, extension
—G46Tool position offset, reduction
—G47Tool position offset, double extension
—G48Tool position offset, double reduction
—G49Tool position offset OFF
G92Coordinate system setting/Spindle clamp speed setting
—G50Scaling OFF
—G51Scaling ON
—G50.1Mirror image OFF
—G51.1Mirror image ON
G50.2Polygonal machining mode OFF
G51.2Polygonal machining mode ON
G52Local coordinate system setting
G53Machine coordinate system selection
G54Selection of workpiece coordinate system 1
G55Selection of workpiece coordinate system 2
G56Selection of workpiece coordinate system 3
G57Selection of workpiece coordinate system 4
G58Selection of workpiece coordinate system 5
G59Selection of workpiece coordinate system 6
G54.1Additional workpiece coordinate systems
—G54.2Selection of fixture offset
G60One-way positioning
G61Exact stop mode
G61.1High-accuracy mode (Geometry compensation)
G62Automatic corner override
G63Tapping mode
G64Cutting mode
G65User macro single call
G66User macro modal call A
G66.1User macro modal call B
G67User macro modal call OFF
—G68Programmed coordinate rotation ON
—G69Programmed coordinate rotation OFF
G683-D coordinate conversion ON
G693-D coordinate conversion OFF
G270Finishing cycle
G271Longitudinal roughing cycle
G272Transverse roughing cycle
G273Contour-parallel roughing cycle
G274Longitudinal cut-off cycle
G275Transverse cut-off cycle
G276Compound thread-cutting cycle
G80Fixed cycle OFF
G283Front driling cycle
G284Front tapping cycle
G284.2Front synchronous tapping cycle
G285Front boring cycle
G287Outside driling cycle
G288Outside tapping cycle
G288.2Outside synchronous tapping cycle
G289Outside boring cycle
G290Fixed cycle A (Longitudinal turning cycle)
G292Threading cycle
G294Fixed cycle B (Transverse turning cycle)
—G71.1Fixed cycle (Chamfering cutter 1, CW)
—G72.1Fixed cycle (Chamfering cutter 2, CCW)
—G73Fixed cycle (High-speed deep-hole drilling)
—G74Fixed cycle (Reverse tapping)
—G75Fixed cycle (Boring 1)
—G76Fixed cycle (Boring 2)
—G77Fixed cycle (Back spot facing)
—G78Fixed cycle (Boring 3)
—G79Fixed cycle (Boring 4)
—G81Fixed cycle (Spot drilling)
—G82Fixed cycle (Drilling)
—G83Fixed cycle (Deep-hole drilling)
—G84Fixed cycle (Tapping)
—G84.2Fixed cycle (Synchronous tapping)
—G84.3Fixed cycle (Synchronous reverse tapping)
—G85Fixed cycle (Reaming)
—G86Fixed cycle (Boring 5)
—G87Fixed cycle (Back boring)
—G88Fixed cycle (Boring 6)
—G89Fixed cycle (Boring 7)
—G90Absolute data input
—G91Incremental data input
—G92.5Workpiece coordinate system rotation
G93Inverse time feed
G96Constant peripheral speed control ON
G97Constant peripheral speed control OFF
G94Feed per minute (asynchronous)
G95Feed per revolution (synchronous)
—G98Initial point level return in fixed cycles
—G99R-point level return in fixed cycles
G109Single program multi-system control
G110Cross machining control ON
G111Cross machining control OFF
G112M, S, T, B output to opposite system
G113Hob milling mode OFF
G114.3Hob milling mode ON
G16Polar coordinate input ON
G15Polar coordinate input OFF
G10.9Selection between diameter and radius data input
G130Tornado cycle
G136Measurement macro, workpiece/coordinate measurement
G137Compensation macro