CNC REFERENCE · Fanuc

FANUC Series 0i-MODEL D
FANUC Series 0i Mate-MODEL D

G-codes for CNC

Additional Info

For Machining Center System
Users manual
p. 15-17

CodeGroupInitial G codesFunction
G0001+Positioning (rapid traverse)
G0101+Linear interpolation (cutting feed)
G0201—Circular interpolation CW or helical interpolation CW
G0301—Circular interpolation CCW or helical interpolation CCW
G0400—Dwell, Exact stop
G05.100—AI advanced preview control / AI contour control
G05.400—HRV3 on/off
G07.100—Cylindrical interpolation
G0900—Exact stop
G1000—Programmable data input
G1100—Programmable data input mode cancel
G1500+Polar coordinates command cancel
G1617—Polar coordinates command
G16000+In-feed control cancel (for grinding machine)
G16120—In-feed control (for grinding machine)
G1702+XpYp plane selection
G1802+ZpXp plane selection
G1902+YpZp plane selection
G2006—Input in inch
G2106—Input in mm
G2204+Stored stroke check function on
G2304—Stored stroke check function off
G2700—Reference position return check
G2800—Automatic return to reference position
G2900—Movement from reference position
G3000—2nd, 3rd and 4th reference position return
G3100—Skip function
G3301—Threading
G3700—Automatic tool length measurement
G3900—Cutter compensation : corner circular interpolation
G4007—Cutter compensation : cancel
G40.119—Normal direction control cancel mode
G4107—Cutter compensation : left
G41.119—Normal direction control on : left
G4207—Cutter compensation : right
G42.119—Normal direction control on : right
G4308—Tool length compensation positive
G4408—Tool length compensation negative
G4500—Tool offset : increase
G4600—Tool offset : decrease
G4700—Tool offset : double increase
G4800—Tool offset : double decrease
G4908+Tool length compensation cancel
G5011+Scaling cancel
G50.122+Programmable mirror image cancel
G5111—Scaling
G51.122—Programmable mirror image
G5200—Local coordinate system setting
G5300—Machine coordinate system setting
G5414+Workpiece coordinate system 1 selection
G54.114—Additional workpiece coordinate system selection
G5514—Workpiece coordinate system 2 selection
G5614—Workpiece coordinate system 3 selection
G5714—Workpiece coordinate system 4 selection
G5814—Workpiece coordinate system 5 selection
G5914—Workpiece coordinate system 6 selection
G6000—Single direction positioning
G6100—Exact stop mode
G6200—Automatic corner override
G6300—Tapping mode
G6415+Cutting mode
G6500—Macro call
G6600—Macro modal call
G6712+Macro modal call cancel
G6800—Coordinate system rotation mode on
G6916+Coordinate system rotation mode off
G7300—Peck drilling cycle
G7409—Left-handed tapping cycle
G7501—Plunge grinding cycle (for grinding machine)
G7609—Fine boring cycle
G7700—Plunge direct sizing/grinding cycle (for grinding machine)
G7800—Continuous-feed surface grinding cycle (for grinding machine)
G7901—Intermittent-feed surface grinding cycle (for grinding machine)
G8009+Canned cycle cancel / Electronic gear box: synchronization cancellation
G80.409+Electronic gear box: synchronization cancellation
G8109+Drilling cycle or spot boring cycle / Electronic gear box: synchronization start
G81.434—Electronic gear box: synchronization start
G8209—Drilling cycle or counter boring cycle
G8309—Peck drilling cycle
G8409—Tapping cycle
G84.209—Rigid tapping cycle (FS10/11 format)
G84.309—Left-handed rigid tapping cycle (FS10/11 format)
G8509—Boring cycle
G8609—Boring cycle
G8709—Back boring cycle
G8809—Boring cycle
G8909—Boring cycle
G9003+Absolute programming
G9103+Incremental programming
G91.103—Checking the maximum incremental amount specified
G9200—Setting for workpiece coordinate system or clamp at maximum spindle speed
G92.100—Workpiece coordinate system preset
G9300—Inverse time feed
G9405+Feed per minute
G9505—Feed per revolution
G9613—Constant surface speed control
G9713+Constant surface speed control cancel
G9810+Canned cycle : return to initial level
G9910—Canned cycle : return to R point level
TRASA3 · CNC REFERENCE

Terms of use

Please review and accept these terms before using the reference.

1. About this reference

The TRASA3 CNC Reference is an independent educational and informational resource for studying CNC instructions and developing and testing post-processors. Processed code descriptions and examples are intended for educational review, not as certified production instructions. NCPlayer is developed and maintained under the TRASA3 brand.

2. Manufacturers, copyright and trademarks

Company names, trademarks, controller names, series and model designations identify their respective manufacturers and equipment. Copyright and other intellectual property rights remain with their respective rights holders. References are not advertising and do not imply endorsement, affiliation or official representation by TRASA3. No licence to reproduce protected manufacturer materials is granted.

3. Manufacturer manuals

This reference does not offer, distribute or host complete manufacturer manuals. Complete manuals are not stored as part of this reference service. Obtain the current official documentation for your specific machine, controller, software version and installed options directly from the manufacturer or an authorised supplier. Reference descriptions cannot replace that documentation.

4. Reference use of trademarks

Where applicable, Article 14(1)(c) and Article 14(2) of Regulation (EU) 2017/1001 and Article 156 of the Polish Industrial Property Law provide for certain reference uses of trademarks, subject to honest industrial or commercial practices. These provisions do not constitute a general permission to copy copyrighted manuals.

5. Accuracy and safety

The reference is provided “as is”, without guarantees of accuracy, completeness, currency, compatibility or fitness for a particular machine. Codes, translations and examples may contain errors or omissions. Actual controller behaviour depends on the model, configuration, parameters and software version. NCPlayer parsing and simulation may contain bugs or incomplete implementations and may differ from a real controller.

6. Verification before use

Treat every code, edited program and post-processor output as unverified. You use this reference at your own risk and are responsible for checking it against current manufacturer documentation and the actual controller. Before machining, obtain qualified professional verification, use appropriate professional CAM verification or certified simulation tools, and perform a controlled dry run with all required machine safety measures. Never rely on this reference or a toolpath preview alone to establish that a program is safe.

7. Limitation of liability

To the maximum extent permitted by applicable law, TRASA3 disclaims liability for damage or losses arising from reliance on this reference or its examples, including equipment damage, production errors, downtime, material waste, accidents, injuries and other direct or indirect losses. Nothing in these terms excludes liability that cannot lawfully be excluded or restricts mandatory consumer rights or other mandatory legal protections.

8. Errors and rights enquiries

If you find an error or believe that material affects your rights, email info@trasa3.com. Include the page URL, identify the content concerned and explain the correction or review you request.

9. Acceptance and updates

By selecting “I agree and continue”, you confirm acceptance of the displayed version of these terms. If you do not agree, leave the reference. Updated terms will be published here; material changes require renewed confirmation. Your confirmation is remembered in this browser using localStorage. Clearing browser storage or using another browser requires confirmation again.

10. Privacy and cookies

The terms confirmation stores only the accepted version in localStorage. Cookie consent uses the same cookies_accepted preference as NCPlayer. See the linked privacy and cookie policies for information about site data processing.

EU Regulation — Article 14 · Polish Industrial Property Law — Article 156 · info@trasa3.com

Privacy policy · Cookie policy