# MS Tech CNC G-Code Lists

MS-Tech’s G-Codes are Fanuc G-code compatible and thus there is no need to have a special post. Our control includes built-in G-Code lists with every purchase that not only indicates format and structure of said G-Codes, but also function, description, and usage only a mouse-click away.

Code | Description | Group No. |
---|---|---|

G00* | Rapid positioning | 01 |

G01 | Linear interpolation | 01 |

G02 | Circular interpolation CW | 01 |

G03 | Circular interpolation CCW | 01 |

G04 | Dwell, Exact stop | 00 |

G09 | Exact stop | 00 |

G10 | Programmable data input | 00 |

G11* | Programmable data input cancel | 00 |

G17* | XY plane selection | 02 |

G18 | ZX plane selection | 02 |

G19 | YZ plane selection | 02 |

G20 | Select inch unit | 06 |

G21 | Select metric unit in mm | 06 |

G27 | Reference point return check | 00 |

G28 | Return to reference point | 00 |

G29 | Return from reference point | 00 |

G30 | Return to 2 nd reference point | 00 |

G33 | Thread Cutting | 01 |

G40* | Cutter compensation cancel | 07 |

G41 | Cutter compensation left | 07 |

G42 | Cutter compensation right | 07 |

G43 | Tool length compensation in +Z | 08 |

G44 | Tool length compensation in -Z | 08 |

G49* | Tool length compensation cancel | 08 |

G50.1 | Mirror image cancel | 18 |

G51.1 | Mirror image on | 18 |

G52 | Local coordinate system setting | 00 |

G53 | Positioning in machine coordinate | 00 |

G54* | Work coordinate system 1 select | 14 |

G55 | Work coordinate system 2 select | 14 |

G56 | Work coordinate system 3 select | 14 |

G57 | Work coordinate system 4 select | 14 |

G58 | Work coordinate system 5 select | 14 |

G59 | Work coordinate system 6 select | 14 |

G61 | Exact stop mode | 15 |

G64* | Cutting mode | 15 |

G65 | Macro call | 00 |

G66 | Macro modal call | 12 |

G67 | Macro modal call cancel | 12 |

G73 | High speed peck drilling cycle | 09 |

G74 | Counter tapping cycle | 09 |

G76 | Fine boring cycle | 09 |

G80* | Canned cycle cancel | 09 |

G81 | Drilling cycle, spot boring | 09 |

G82 | Drilling cycle, counter boring | 09 |

G83 | Peck drilling cycle | 09 |

G84 | Tapping cycle | 09 |

G84.2 | Rigid tapping cycle | 09 |

G85 | Boring cycle | 09 |

G86 | Boring cycle | 09 |

G87 | Back boring cycle | 09 |

G88 | Boring cycle | 09 |

G89 | Boring cycle | 09 |

G90* | Select absolute command | 03 |

G91 | Select incremental command | 03 |

G92 | Programming of absolute zero point | 00 |

G93 | Inverse time feed | 05 |

G94* | Per minute feed | 05 |

G95 | Per revolution feed | 05 |

G96 | Constant surface speed control | 13 |

G97* | Constant surface speed control cancel | 13 |

G98* | Return to initial point in canned cycle | 10 |

G99 | Return to R point in canned cycle | 10 |

Notes:

1. For all milling type machines, G17 is default.

2. For detailed descriptions, please refer to G-Code Usage Description.

Set-A | Set-B | Set-C | Description | Group No. |
---|---|---|---|---|

G00* | G00* | G00* | Rapid positioning | 01 |

G01 | G01 | G01 | Linear interpolation | 01 |

G02 | G02 | G02 | Circular interpolation CW | 01 |

G03 | G03 | G03 | Circular interpolation CCW | 01 |

G04 | G04 | G04 | Dwell, Exact stop | 00 |

G09 | G09 | G09 | Exact stop | 00 |

G10 | G10* | G10* | Programmable data input | 00 |

G11* | G11* | G11* | Programmable data input cancel | 00 |

G17 | G17 | G17 | XY plane selection if applicable | 02 |

G18* | G18* | G18* | ZX plane selection | 02 |

G19 | G19 | G19 | YZ plane selection if applicable | 02 |

G20 | G20 | G70 | Select inch unit | 06 |

G21 | G21 | G71 | Select metric unit in mm | 06 |

G27 | G27 | G27 | Reference point return check | 00 |

G28 | G28 | G28 | Return to reference point | 00 |

G29 | G29 | G29 | Return from reference point | 00 |

G30 | G30 | G30 | Return to 2 nd reference point | 00 |

G32 | G33 | G33 | Thread Cutting | 01 |

G40* | G40* | G40* | Cutter compensation cancel | 07 |

G41 | G41 | G41 | Cutter compensation left | 07 |

G42 | G42 | G42 | Cutter compensation right | 07 |

G50.1 | G50.1 | G50.1 | Mirror image cancel | 18 |

G51.1 | G51.1 | G51.1 | Mirror image on | 18 |

G52 | G52 | G52 | Local coordinate system setting | 00 |

G53 | G53 | G53 | Positioning in machine coordinate | 00 |

G54* | G54* | G54* | Work coordinate system 1 select | 14 |

G55 | G55 | G55 | Work coordinate system 2 select | 14 |

G56 | G56 | G56 | Work coordinate system 3 select | 14 |

G57 | G57 | G57 | Work coordinate system 4 select | 14 |

G58 | G58 | G58 | Work coordinate system 5 select | 14 |

G59 | G59 | G59 | Work coordinate system 6 select | 14 |

G61 | G61 | G61 | Exact stop mode | 15 |

G64* | G64* | G64* | Cutting mode | 15 |

G65 | G65 | G65 | Macro call | 00 |

G66 | G66 | G66 | Macro modal call | 12 |

G67* | G67* | G67* | Macro modal call cancel | 12 |

G68 | G68 | G68 | Turret image on | 04 |

G69* | G69* | G69* | Turret image off | 04 |

G70 | G70 | G72 | Finishing cutting cycles | 00 |

G71 | G71 | G73 | Stock removal in turning | 00 |

G72 | G72 | G74 | Stock removal in facing | 00 |

G73 | G73 | G75 | Pattern repeating cycle | 00 |

G74 | G74 | G76 | End face peck drilling | 00 |

G75 | G75 | G77 | Outer/Internal diameter drilling | 00 |

G76 | G76 | G78 | Multiple threading cycle | 00 |

G90 | G77 | G20 | Internal/External cutting cycle | 01 |

G92 | G78 | G21 | Thread cutting cycle | 01 |

G94 | G79 | G24 | Face cutting cycle | 01 |

G80* | G80* | G80* | Canned cycle cancel | 09 |

G83 | G83 | G83 | Face drilling cycle | 09 |

G84 | G84 | G84 | Face tapping cycle | 09 |

G85 | G85 | G85 | Face boring cycle | 09 |

G87 | G87 | G87 | Side drilling cycle | 09 |

G88 | G88 | G88 | Side tapping cycle | 09 |

G89 | G89 | G89 | Side boring cycle | 09 |

--- | G90* | G90* | Select absolute command | 03 |

--- | G91 | G91 | Select incremental command | 03 |

G50 | G92 | G92 | Programming of absolute zero point | 00 |

G98 | G94 | G94 | Per minute feed | 05 |

G99 | G95* | G95* | Per revolution feed | 05 |

G96 | G96 G96 | G96 | Constant surface speed control on | 13 |

G97* | G97* | G97* | Constant surface speed control off | 13 |

--- | G98* | G98* | Return to initial point in canned cycle | 10 |

--- | G99 | G99 | Return to R point in canned cycle | 10 |

Notes:

1. Three G-code sets for turning type machines are available, and to be set by system integrators. Default setting is G-code set B, but your machine may be set differently.

2. G-code descriptions for turning type machines in this manual are based on set B. Please use the table as a cross reference. For example, for description on G70 in set C, one should read the description on G20 of set B.

3. For all turning type machines, G18 is default.

4. For G20 and G21, the G-code before turning power off remains.

5. For detailed description on each G code, please refer to G-Code Usage Description.

Code | Description | Group No. |
---|---|---|

G00* | Rapid positioning | 01 |

G01 | Linear interpolation | 01 |

G02 | Circular interpolation CW | 01 |

G03 | Circular interpolation CCW | 01 |

G04 | Dwell, Exact stop | 00 |

G09 | Exact stop | 00 |

G10 | Programmable data input | 00 |

G11* | Programmable data input cancel | 00 |

G17* | XY plane selection | 02 |

G18 | ZX plane selection | 02 |

G19 | YZ plane selection | 02 |

G20 | Select inch unit | 06 |

G21 | Select metric unit in mm | 06 |

G27 | Reference point return check | 00 |

G28 | Return to reference point | 00 |

G29 | Return from reference point | 00 |

G30 | Return to 2 nd reference point | 00 |

G33 | Thread Cutting | 01 |

G40* | Cutter compensation cancel | 07 |

G41 | Cutter compensation left | 07 |

G42 | Cutter compensation right | 07 |

G43 | Tool length compensation in +Z | 08 |

G43.1 | Tool length compensation for 5-axis pivot point control NC programs (re: page 59) | 08 |

G43.4 | Tool length compensation for 5-axis tool tip point control NC programs (re: page 60) | 08 |

G44 | Tool length compensation in -Z | 08 |

G49* | Tool length compensation cancel | 08 |

G50.1 | Mirror image cancel | 22 |

G51.1 | Mirror image on | 22 |

G52 | Local coordinate system setting | 00 |

G53 | Positioning in machine coordinate | 00 |

G54* | Work coordinate system 1 select | 14 |

G55 | Work coordinate system 2 select | 14 |

G56 | Work coordinate system 3 select | 14 |

G57 | Work coordinate system 4 select | 14 |

G58 | Work coordinate system 5 select | 14 |

G59 | Work coordinate system 6 select | 14 |

G61 | Exact stop mode | 15 |

G64* | Cutting mode | 15 |

G65 | Macro call | 00 |

G66 | Macro modal call | 12 |

G67* | Macro modal call cancel | 12 |

G68 | Coordinate rotation/three–dimensional coordinate conversion | 16 |

G69* | Coordinate rotation/conversion cancel | 16 |

G73 | Peck drilling cycle | 09 |

G74 | Counter tapping cycle | 09 |

G76 | Fine boring cycle | 09 |

G80* | Canned cycle cancel | 09 |

G81 | Drilling cycle, spot boring | 09 |

G82 | Drilling cycle, counter boring | 09 |

G83 | Peck drilling cycle | 09 |

G84 | Tapping cycle | 09 |

G85 | Boring cycle | 09 |

G86 | Boring cycle | 09 |

G87 | Back boring cycle | 09 |

G88 | Boring cycle | 09 |

G89 | Boring cycle | 09 |

G90* | Select absolute command | 03 |

G91 | Select incremental command | 03 |

G92 | Programming of absolute zero point | 00 |

G93 | Inverse time feed | 05 |

G94* | Per minute feed | 05 |

G95 | Per revolution feed | 05 |

G96 | Constant surface speed control | 13 |

G97* | Constant surface speed control cancel | 13 |

G98* | Return to initial point in canned cycle | 10 |

G99 | Return to R point in canned cycle | 10 |

Notes:

1. For all milling type machines, G17 is default.

2. For detailed descriptions, please refer to G-Code Usage Description.