Preparatory Codes (G)

Fanuc

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

Manual ID: B-64304EN-2/01
Additional Info:
For Machining Center System
Users manual p.: 15-17

← Back

Code Group Initial G codes Function
G00 01 + Positioning (rapid traverse)
G01 01 + Linear interpolation (cutting feed)
G02 01 Circular interpolation CW or helical interpolation CW
G03 01 Circular interpolation CCW or helical interpolation CCW
G04 00 Dwell, Exact stop
G05.1 00 AI advanced preview control / AI contour control
G05.4 00 HRV3 on/off
G07.1 00 Cylindrical interpolation
G09 00 Exact stop
G10 00 Programmable data input
G11 00 Programmable data input mode cancel
G15 00 + Polar coordinates command cancel
G16 17 Polar coordinates command
G160 00 + In-feed control cancel (for grinding machine)
G161 20 In-feed control (for grinding machine)
G17 02 + XpYp plane selection
G18 02 + ZpXp plane selection
G19 02 + YpZp plane selection
G20 06 Input in inch
G21 06 Input in mm
G22 04 + Stored stroke check function on
G23 04 Stored stroke check function off
G27 00 Reference position return check
G28 00 Automatic return to reference position
G29 00 Movement from reference position
G30 00 2nd, 3rd and 4th reference position return
G31 00 Skip function
G33 01 Threading
G37 00 Automatic tool length measurement
G39 00 Cutter compensation : corner circular interpolation
G40 07 Cutter compensation : cancel
G40.1 19 Normal direction control cancel mode
G41 07 Cutter compensation : left
G41.1 19 Normal direction control on : left
G42 07 Cutter compensation : right
G42.1 19 Normal direction control on : right
G43 08 Tool length compensation positive
G44 08 Tool length compensation negative
G45 00 Tool offset : increase
G46 00 Tool offset : decrease
G47 00 Tool offset : double increase
G48 00 Tool offset : double decrease
G49 08 + Tool length compensation cancel
G50 11 + Scaling cancel
G50.1 22 + Programmable mirror image cancel
G51 11 Scaling
G51.1 22 Programmable mirror image
G52 00 Local coordinate system setting
G53 00 Machine coordinate system setting
G54 14 + Workpiece coordinate system 1 selection
G54.1 14 Additional workpiece coordinate system selection
G55 14 Workpiece coordinate system 2 selection
G56 14 Workpiece coordinate system 3 selection
G57 14 Workpiece coordinate system 4 selection
G58 14 Workpiece coordinate system 5 selection
G59 14 Workpiece coordinate system 6 selection
G60 00 Single direction positioning
G61 00 Exact stop mode
G62 00 Automatic corner override
G63 00 Tapping mode
G64 15 + Cutting mode
G65 00 Macro call
G66 00 Macro modal call
G67 12 + Macro modal call cancel
G68 00 Coordinate system rotation mode on
G69 16 + Coordinate system rotation mode off
G73 00 Peck drilling cycle
G74 09 Left-handed tapping cycle
G75 01 Plunge grinding cycle (for grinding machine)
G76 09 Fine boring cycle
G77 00 Plunge direct sizing/grinding cycle (for grinding machine)
G78 00 Continuous-feed surface grinding cycle (for grinding machine)
G79 01 Intermittent-feed surface grinding cycle (for grinding machine)
G80 09 + Canned cycle cancel / Electronic gear box: synchronization cancellation
G80.4 09 + Electronic gear box: synchronization cancellation
G81 09 + Drilling cycle or spot boring cycle / Electronic gear box: synchronization start
G81.4 34 Electronic gear box: synchronization start
G82 09 Drilling cycle or counter boring cycle
G83 09 Peck drilling cycle
G84 09 Tapping cycle
G84.2 09 Rigid tapping cycle (FS10/11 format)
G84.3 09 Left-handed rigid tapping cycle (FS10/11 format)
G85 09 Boring cycle
G86 09 Boring cycle
G87 09 Back boring cycle
G88 09 Boring cycle
G89 09 Boring cycle
G90 03 + Absolute programming
G91 03 + Incremental programming
G91.1 03 Checking the maximum incremental amount specified
G92 00 Setting for workpiece coordinate system or clamp at maximum spindle speed
G92.1 00 Workpiece coordinate system preset
G93 00 Inverse time feed
G94 05 + Feed per minute
G95 05 Feed per revolution
G96 13 Constant surface speed control
G97 13 + Constant surface speed control cancel
G98 10 + Canned cycle : return to initial level
G99 10 Canned cycle : return to R point level