G-Codes simpIe definition

G00 Rapid traverse
G01 Linear interpolation with feedrate
G02 Circular interpolation (clockwise)
G03 Circular interpolation (counter clockwise)
G2/G3 Helical interpolation
G04 Dwell time in milliseconds
G05 Spline definition
G06 Spline interpolation
G07 Tangential circular interpolation / Helix interpolation / Polygon interpolation / Feedrate
interpolation
G08 Ramping function at block transition / Look ahead "off"
G09 No ramping function at block transition / Look ahead "on"
G10 Stop dynamic block preprocessing
G11 Stop interpolation during block preprocessing
G12 Circular interpolation (cw) with radius
G13 Circular interpolation (ccw) with radius
G14 Polar coordinate programming, absolute
G15 Polar coordinate programming, relative
G16 Definition of the pole point of the polar coordinate system
G17 Selection of the X, Y plane
G18 Selection of the Z, X plane
G19 Selection of the Y, Z plane
G20 Selection of a freely definable plane
G21 Parallel axes "on"
G22 Parallel axes "off"
G24 Safe zone programming; lower limit values
G25 Safe zone programming; upper limit values
G26 Safe zone programming "off"
G27 Safe zone programming "on"
G33 Thread cutting with constant pitch
G34 Thread cutting with dynamic pitch
G35 Oscillation configuration
G38 Mirror imaging "on"
G39 Mirror imaging "off"
G40 Path compensations "off"
G41 Path compensation left of the work piece contour
G42 Path compensation right of the work piece contour
G43 Path compensation left of the work piece contour with altered approach
G44 Path compensation right of the work piece contour with altered approach
G50 Scaling
G51 Part rotation; programming in degrees
G52 Part rotation; programming in radians
G53 Zero offset off
G54 Zero offset #1
G55 Zero offset #2
G56 Zero offset #3
G57 Zero offset #4
G58 Zero offset #5
G59 Zero offset #6
G63 Feed / spindle override not active
G66 Feed / spindle override active
G70 Ìnch format active
G71 Metric format active
G72 Ìnterpolation with precision stop "off"
G73 Ìnterpolation with precision stop "on"
G74 Move to home position
G75 Curvature function activation
G76 Curvature acceleration limit
G78 Normalcy function "on" (rotational axis orientation)
G79 Normalcy function "off"
G80 - G89 for milling applications:
G80 Canned cycle "off"
G81 Drilling to final depth canned cycle
G82 Spot facing with dwell time canned cycle
G83 Deep hole drilling canned cycle
G84 Tapping or Thread cutting with balanced chuck canned cycle
G85 Reaming canned cycle
G86 Boring canned cycle
G87 Reaming with measuring stop canned cycle
G88 Boring with spindle stop canned cycle
G89 Boring with intermediate stop canned cycle
G81 - G88 for cylindrical grinding applications:
G81 Reciprocation without plunge
G82 Ìncremental face grinding
G83 Ìncremental plunge grinding
G84 Multi-pass face grinding
G85 Multi-pass diameter grinding
G86 Shoulder grinding
G87 Shoulder grinding with face plunge
G88 Shoulder grinding with diameter plunge
G90 Absolute programming
G91 Ìncremental programming
G92 Position preset
G93 Constant tool circumference velocity "on" (grinding wheel)
G94 Feed in mm / min (or inch / min)
G95 Feed per revolution (mm / rev or inch / rev)
G96 Constant cutting speed "on"
G97 Constant cutting speed "off"
G98 Positioning axis signal to PLC
G99 Axis offset
G100 Polar transformation "off"
G101 Polar transformation "on"
G102 Cylinder barrel transformation "on"; cartesian coordinate system
G103 Cylinder barrel transformation "on," with real-time-radius compensation (RRC)
G104 Cylinder barrel transformation with center line migration (CLM) and RRC
G105 Polar transformation "on" with polar axis selections
G106 Cylinder barrel transformation "on" polar-/cylinder-coordinates
G107 Cylinder barrel transformation "on" polar-/cylinder-coordinates with RRC
G108 Cylinder barrel transformation polar-/cylinder-coordinates with CLM and RRC
G109 Axis transformation programming of the tool depth
G110 Power control axis selection/channel 1
G111 Power control pre-selection V1, F1, T1/channel 1 (Voltage, Frequency, Time)
G112 Power control pre-selection V2, F2, T2/channel 1
G113 Power control pre-selection V3, F3, T3/channel 1
G114 Power control pre-selection T4/channel 1
G115 Power control pre-selection T5/channel 1
G116 Power control pre-selection T6/pulsing output
G117 Power control pre-selection T7/pulsing output
G120 Axis transformation; orientation changing of the linear interpolation rotary axis
G121 Axis transformation; orientation change in a plane
G125 Electronic gear box; plain teeth
G126 Electronic gear box; helical gearing, axial
G127 Electronic gear box; helical gearing, tangential
G128 Electronic gear box; helical gearing, diagonal
G130 Axis transformation; programming of the type of the orientation change
G131 Axis transformation; programming of the type of the orientation change
G132 Axis transformation; programming of the type of the orientation change
G133 Zero lag thread cutting "on"
G134 Zero lag thread cutting "off"
G140 Axis transformation; orientation designation work piece fixed coordinates
G141 Axis transformation; orientation designation active coordinates
G160 ART activation
G161 ART learning function for velocity factors "on"
G162 ART learning function deactivation
G163 ART learning function for acceleration factors
G164 ART learning function for acceleration changing
G165 Command filter "on"
G166 Command filter "off"
G170 Digital measuring signals; block transfer with hard stop
G171 Digital measuring signals; block transfer without hard stop
G172 Digital measuring signals; block transfer with smooth stop
G175 SERCOS-identification number "write"
G176 SERCOS-identification number "read"
G180 Axis transformation "off"
G181 Axis transformation "on" with not rotated coordinate system
G182 Axis transformation "on" with rotated / displaced coordinate system
G183 Axis transformation; definition of the coordinate system
G184 Axis transformation; programming tool dimensions
G186 Look ahead; corner acceleration; circle tolerance
G188 Activation of the positioning axes
G190 Diameter programming deactivation
G191 Diameter programming "on" and display of the contact point
G192 Diameter programming; only display contact point diameter
G193 Diameter programming; only display contact point actual axes center point
G200 Corner smoothing "off"
G201 Corner smoothing "on" with defined radius
G202 Corner smoothing "on" with defined corner tolerance
G203 Corner smoothing with defined radius up to maximum tolerance
G210 Power control axis selection/Channel 2
G211 Power control pre-selection V1, F1, T1/Channel 2
G212 Power control pre-selection V2, F2, T2/Channel 2
G213 Power control pre-selection V3, F3, T3/Channel 2
G214 Power control pre-selection T4/Channel 2
G215 Power control pre-selection T5/Channel 2
G216 Power control pre-selection T6/pulsing output/Channel 2
G217 Power control pre-selection T7/pulsing output/Channel 2
G220 Angled wheel transformation "off"
G221 Angled wheel transformation "on"
G222 Angled wheel transformation "on" but angled wheel moves before others
G223 Angled wheel transformation "on" but angled wheel moves after others
G265 Distance regulation ÷ axis selection
G270 Turning finishing cycle
G271 Stock removal in turning
G272 Stock removal in facing
G274 Peck finishing cycle
G275 Outer diameter / internal diameter turning cycle
G276 Multiple pass threading cycle
G310 Power control axes selection /channel 3
G311 Power control pre-selection V1, F1, T1/channel 3
G312 Power control pre-selection V2, F2, T2/channel 3
G313 Power control pre-selection V3, F3, T3/channel 3
G314 Power control pre-selection T4/channel 3
G315 Power control pre-selection T5/channel 3
G316 Power control pre-selection T6/pulsing output/Channel 3
G317 Power control pre-selection T7/pulsing output/Channel 3
Note that some of the above G-codes are not standard. Specific control features, such as laser
power control, enable those optional codes.

codes simpIe definition
M00 Unconditional stop
M01 Conditional stop
M02 End of program
M03 Spindle clockwise
M04 Spindle counterclockwise
M05 Spindle stop
M06 Tool change (see Note below)
M19 Spindle orientation
M20 Start oscillation (configured by G35)
M21 End oscillation
M30 End of program
M40 Automatic spindle gear range selection
M41 Spindle gear transmission step 1
M42 Spindle gear transmission step 2
M43 Spindle gear transmission step 3
M44 Spindle gear transmission step 4
M45 Spindle gear transmission step 5
M46 Spindle gear transmission step 6
M70 Spline definition, beginning and end curve 0
M71 Spline definition, beginning tangential, end curve 0
M72 Spline definition, beginning curve 0, end tangential
M73 Spline definition, beginning and end tangential
M80 Delete rest of distance using probe function, from axis measuring input
M81 Drive On application block (resynchronize axis position via PLC signal during the block)
M101-M108 Turn off fast output byte bit 1 (to 8)
M109 Turn off all (8) bits in the fast output byte
M111-M118 Turn on fast output byte bit 1 (to 8)
M121-M128 Pulsate (on/off) fast output byte bit 1 (to 8)
M140 Distance regulation "on¨ (configured by G265)
M141 Distance regulation "off¨
M150 Delete rest of distance using probe function, for a probe input (one of 16, M151-M168)
M151-M158 Digital input byte 1 bit 1 (to bit 8) is the active probe input
M159 PLC cannot define the bit mask for the probe inputs
M160 PLC can define the bit mask for the probe inputs (up to 16)
M161-M168 Digital input byte 2 bit 1 (to bit 8) is the active probe input
M170 Continue the block processing look ahead of the part program (cancel the M171)
M171 Stop the block processing look ahead of the probe input part program segment (like a
G10)
M200 Activate the handwheel operation in the automatic mode (to introduce an offset in the
program)
M201-M208 Select the axis (by number from 1 to 8) for the handwheel operation
M209 Activate the handwheel operation in the automatic mode, with PLC control of the axis
selection
M210 Deactivate the handwheel input while in the automatic mode
M211 Deactivate this handwheel feature and also remove the handwheel offset (if any)
M213 Spindle 2 clockwise
M214 Spindle 2 counterclockwise
M215 Spindle 2 stop
M280 Switchable spindle/rotary axis, rotary axis on, first combination
M281 Switchable spindle/rotary axis, rotary axis on, second combination
M290 Switchable spindle/rotary axis, spindle enabled, first combination
M291 Switchable spindle/rotary axis, spindle enabled, second combination

943.:.7.3039.943  09203280.943  %..43/8  $530/013943  $530390754.0.7390754.390754..

0390754.943.

!443390754.943.

38943.90 390754.943.9-4.00/7.943  #.2531:3.97.

44.2531:3.0.9-4./411  47.38943.943.97.

-4.30 $00.79749.905747.570574.44.9070/.9088902 $00.9434190 5./.7.0883 $945390754.0.-84:90 !4.943 .943.79749.4394:79.447/3.0 01394341905405439419054.943/:73-4.0..9437941904750.431:7.2233/07008 !.104305747.425038.22337.943 .223 .343 77472.:9939.104305747.7.0.9437941904750.943 77472.:.9.:9939/3.104305747./.30  $00.223411 $.2.447/3..4389.425038.7.4394:7 !.9438411 !...22343 %70.447/3.0883 7./.9.0843 !.-05. !. %70.0.94341.9.5574.425038.4394:79..0.223:550729.  8.9435747.  $.7390754.:.94301941904750.905747. 97.22340729..0.3959.4394:7 !.:08 $.425038.9./:8 7.9.7.223 70. 97../:8 !4.:08 $.94301941904750.1700/013.3 !.9070/.30 !.425038.2.08411 $.7.3411  !.38 074411809411 074411809 074411809 074411809 074411809 074411809 074411809 00/.9434190 5.9.0.570574.5574.9434190 5.104305747.59.30 $00.7390754.9435747./43  $945/3.

853/04.0 .9.077/0349..

00/.

3/7.0 #0.908945.0 4739853/08945..2090773/3 $4:/0773/3 $4:/0773/391.943.0 473..05:30 $4:/0773/39/.943.0 %.23..39944.1472.0 #0.094420548943 :7.077/0..330/..0 390754.881.3.0 $5491...330/.9:70.943  472.1472.943 :7.843894543 4.574...39/0920...0 097.55347%70..8438945411 390754.9..073/3 :9 5...23920.330/.702039.9.1.5:3073/3 :9 5..209075:30  -84:905747..943411   14723.94329 472..9438  .847039..9:701:3.330/..330/.0 4739390720/.:210703.94343 749....073/3 3..330/.9439570...:..5747.0  147...330/.9..88/.9439570.1:3.0 00540/73../059.007.7.9.223 3.0  3.9438 #0.:9939-..0.9.8:738945.0411 739413.853/04.9.330/.73/3.702039./..0/......702039.1:3..55.94394:95:30 3.55..04.330/.943 73/300  00/322.330/.223 !48943570809 4389..

23 473..

23  00/50770.4:943 22.

70..473.

381472.381472.3/##  !4.797.:9938500/411 !489433.77097.3.77097./:8.381472.77097..381472.425038.9434354.447/3.797.039073027.381472.39.381472.943411  !4.797.7 .7.943  .94! 8411809  !4.:9938500/43 4389.39.94343.94343  3/07-.883.8800.7908.943 ##   3/07-.9439.94343954.  4389.381472.94343 970. 920 7.9088902  3/07-.77097.9438  3/07-.70.

.7 .908  3/07-.381472.3/07 .447/3.77097.9434354.

447/3.7 ..381472.77097.3/07 .94354.9089##  3/07-.

3/07 .3/##  897..943.9435747.43974.9089.381472.447/3.8800.2234190944/059  !407.

330 ...

!407.943'  %.43974570 800.

43974570 800.330 '49.943'  %.. %20  !407..0 706:03.

.43974570 800.943'  %.330 !407..

43974570 800.330 !407..943%..

943%..43974570 800.330 !407..

.43974570 800.943%..330 !407.

43974570 800.943%.5:834:95:9 !407.

20.303..73 .7331:3.381079.8-4.0.0.381472.9743.97.943.9431.9.73 /.90/.0.33 422.7/8945 9.8:7383.943147.381472.943.943.381472.9434750.3039.30 0.8 897.381472.943/0.3/190743 422.20.94347039.943..94347039.0.30 897.7331:3.9478 #%0..943 #%0.9..3810794:9.91.39009 0..94347039.8-4.943439349749.9433:2-0770.2234190950419047039.943.7-40.943.381472..:99343 074.20.943439749.94347039.2234190950419047039.9433:2-07790 $# $ /0391. 0.:993411  897.381079824498945 $# $ /0391.7390754.7-40.381472.9435747../  897. 0.43.947843 #%0.90/.9743.943.97.447/3.9435747.7.447/3.381472.0.9743.0.7/8945 9.7-40.381472.943 #%0./..970.3/1907411  9.943147...970..8-4.9088902 897.30 074..007.0..7331:3.381472..7331:3.9435747.8:7383.  897..943411 897.381472..0.943/083.943147..447/3.007.04.33419030.2234190950419047039.010/.30 897..943/083..908  #%..7-45..8:7383.73 9...5:834:95:9  897.5.908 897.9743.943749./.97.9.

...94341905489433.95439/.439.223/0.95439.7./85.447/3.22343.007.0  !407.0.209075747..039075439  47307824493411  47307824493439/0130/7..3//85.47307.8800..381472.22343/85.43974.2:29407..439.08  ..22343/85..3.9088902 897.943.08..439.209075747.9.9435747.20907 ./.95439 ./:8:5942.0/.9:.381472..209075747.3.0 .3..9.943 .9088902 897./:8  47307824493439/0130/.447/3.4190.09407.473079407.943/0139434190.0  473078244939/0130/7.943..209075747.223944/2038438 44.

.43974570 800.943'  %.330 !407.

.943'  %.330 !407.43974570 800.

.330 !407.43974570 800.943'  %.

330 ..

!407.43974570 800.943%.

43974570 800.943%..330 !407.

43974570 800.330 !407..943%.

5:834:95:9.

330 !407.943%..43974570 800.

5:834:95:9.

943 .190749078 89.381472.30/0024.0 $94.1383.943  %:7331383..08.7024..94343-:9.381472...3 !0.330  30/0097.30/0024.381472.08-0147049078 30/0097.0  :907/.8800.31.381472..39:733 $94.94343-:9..7024.20907.94343 30/0097.3.070:.943411 30/0097.

/3.43974.88970.08800.943.0 :9505.209079:733.39073../.0  !407..

330 !407.943'  %...43974570 800.

43974570 800.943'  %...330 !407.

330 !407.43974570 800..943'  %..

.330 !407.943%.43974570 800..

943%..330 !407..43974570 800.

.330 !407..943%.43974570 800.

5:834:95:9.

.330 !407.943%.43974570 800.

5:834:95:9.

38288438905 $53/00.4/08   .9:708 8:.3039.30 800490-04  $53/047039.8945  43/943.43974 03.943 .797.4..2  $53/0.38288438905 $53/00.797.797.:7.-0948045943..80  $53/08945  %44.984204190.4/088250/013943  &3. 03/.9.943  3/415747.797.1.943  $9.3/03/.8945  3/415747..38288438905  $530/013943 -0333.7034989.4:3907.7948.30800.4.38288438905 $53/00..:7.853/00.0 ..38288438905 $53/00.80  $53/0.797.0  $530/013943 -0333.4397410.3039.:7.77.0 03/9.943 $53/00.38288438905 $53/00.43/943.2  :942.431:70/-  3/48.3/.4/08.8. .330 4909.7/ $50...-4.807 5407.797.0  $530/013943 -03339.

 7083.  0090708941/89..3.55.820.894:95:9-90  %:73431.3039.0:83574-01:3.943 1742.!83.0 3./:7390-4.943-4.3/03/9.894:95:9-90-9 94   !:8.     %:734111..$530/013943 -0333.7430.  -983901.8:7335:9 7.8548943.894:95:9-90-9 94   %:73411.90 43.

.80 $53/08945  $9.3/004507..088344.795747.35:9-90-9 94-9 890.795747.9090.943390..3/0010.070:..814790574-035:98  !.439744190.0:83574-01:3.9:70.9.943 43  .9.:942.814790574-035:98 :594   9.3.088344.9.411 1.:942.3/.431:70/-  89.9090.2 .9090..943390.090  $94590-4.9.9.2     $00.4:3907...35:9-90-9 94-9 890.3411809390 5747.574.943 411   0090708941/89..3  $53/0.3/00411809 1.990.8 -3:2-07174294 14790.070:.80 $53/0.3/013090-92.0.3/0035:90390.3/004507.9.-0853/0..4.574-035:9 43041     9.3.0.9.    .574../4190574-035:95.894:95:9-90-9 94   89.24/0 943974/:.0./41905.9..3.3/004507.3349/013090-92..24/0 9!.:942.0574-035:9 !.090.9.0574-035:9  4393:090-4.4.943  0.3.8 800.2802039 0.9098.943 147.943  .847024.24/0 0.

-0853/0.7..42-3.8 749.843 1789.943 $9.749.7.

749.7.43/.8 749.843 80.943  $9.42-3.-0853/0.7..

-0853/0.42-3.943 $9.7.749.8 853/003..-0/ 1789.

-0/ 80.43/.42-3.943   .8 853/003.7.749.