Controller reference
Siemens SINUMERIK G-Code List and Fanuc Equivalents
26 G-codes and 11 M-codes explained for Siemens SINUMERIK controls.
SINUMERIK controls (808, 828, 840D sl, ONE) use standard G0–G3 motion and work offsets, but many functions are written differently from Fanuc: inch/metric with G70/G71, drilling as CYCLE81–CYCLE89, subprograms called by name, and arc radius with CR=. The controls also offer an ISO dialect mode (G291) that accepts much Fanuc code; G290 returns to Siemens mode.
Siemens SINUMERIK G-codes (26)
| Code | Function | Machine |
|---|---|---|
G00 | Rapid Positioning | Both |
G01 | Linear Interpolation (Feed Move) | Both |
G02 | Circular Interpolation Clockwise | Both |
G03 | Circular Interpolation Counter-Clockwise | Both |
G04 | Dwell | Both |
G09 | Exact Stop (one block) | Both |
G17 | XY Plane Selection | Mill |
G18 | XZ Plane Selection | Both |
G19 | YZ Plane Selection | Mill |
G40 | Cutter Radius Compensation Cancel | Both |
G41 | Cutter Radius Compensation Left | Both |
G42 | Cutter Radius Compensation Right | Both |
G53 | Machine Coordinate System (One Block) | Both |
G54 | Work Coordinate System 1 | Both |
G55 | Work Coordinate System 2 | Both |
G56 | Work Coordinate System 3 | Both |
G57 | Work Coordinate System 4 | Both |
G60 | Single Direction Positioning | Mill |
G64 | Cutting Mode (Continuous Path) | Both |
G90 | Absolute Programming (Mill) / OD Turning Cycle (Lathe) | Both |
G91 | Incremental Programming | Mill |
G93 | Inverse Time Feed | Mill |
G94 | Feed per Minute (Mill) / Facing Cycle (Lathe) | Both |
G95 | Feed per Revolution (Mill) | Mill |
G96 | Constant Surface Speed (CSS) | Lathe |
G97 | Constant RPM (CSS Cancel) | Lathe |
Siemens SINUMERIK M-codes (11)
Fanuc → Siemens SINUMERIK equivalents
| Fanuc / ISO | Siemens SINUMERIK |
|---|---|
| G20 / G21 (inch / mm) | G70 / G71 (also G700 / G710 incl. feeds) |
| G02/G03 R_ (radius) | G2/G3 CR=_ |
| G43 H_ (length offset) | T_ D_ — length and radius come from the tool edge D |
| G81 / G82 drilling | CYCLE81 / CYCLE82 |
| G83 peck drilling | CYCLE83 |
| G84 rigid tapping | CYCLE84 |
| G85–G89 boring | CYCLE85 – CYCLE89 |
| G71 / G70 lathe roughing | CYCLE95 (or CYCLE952 stock removal) |
| G76 lathe threading | CYCLE97 / CYCLE99 |
| G52 local shift | TRANS / ATRANS |
| G68 rotation | ROT / AROT |
| G51 scaling | SCALE / ASCALE |
| G51.1 mirror | MIRROR / AMIRROR |
| G68.2 tilted plane | CYCLE800 |
| G43.4 TCPC | TRAORI |
| G05.1 Q1 look-ahead | CYCLE832 (high-speed settings) |
| G28 reference return | G74 (reference point approach) |
| G50 S_ max spindle speed (lathe) | LIMS=_ |
| M98 P_ subprogram call | program name, e.g. POCKET1 or CALL "POCKET1" |
| M99 subprogram end | M17 or RET |
| G65 macro / #variables | R parameters, user variables (DEF REAL …), IF / WHILE / GOTOF |
| G10 L2 set work offset | $P_UIFR[1] = CTRANS(X,…) in the program |
Options, machine builders and software versions change which codes are available. Always confirm in the programming manual for your exact machine.