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)

CodeFunctionMachine
G00Rapid PositioningBoth
G01Linear Interpolation (Feed Move)Both
G02Circular Interpolation ClockwiseBoth
G03Circular Interpolation Counter-ClockwiseBoth
G04DwellBoth
G09Exact Stop (one block)Both
G17XY Plane SelectionMill
G18XZ Plane SelectionBoth
G19YZ Plane SelectionMill
G40Cutter Radius Compensation CancelBoth
G41Cutter Radius Compensation LeftBoth
G42Cutter Radius Compensation RightBoth
G53Machine Coordinate System (One Block)Both
G54Work Coordinate System 1Both
G55Work Coordinate System 2Both
G56Work Coordinate System 3Both
G57Work Coordinate System 4Both
G60Single Direction PositioningMill
G64Cutting Mode (Continuous Path)Both
G90Absolute Programming (Mill) / OD Turning Cycle (Lathe)Both
G91Incremental ProgrammingMill
G93Inverse Time FeedMill
G94Feed per Minute (Mill) / Facing Cycle (Lathe)Both
G95Feed per Revolution (Mill)Mill
G96Constant Surface Speed (CSS)Lathe
G97Constant RPM (CSS Cancel)Lathe

Siemens SINUMERIK M-codes (11)

CodeFunctionMachine
M00Program StopBoth
M01Optional StopBoth
M02End of ProgramBoth
M03Spindle On ClockwiseBoth
M04Spindle On Counter-ClockwiseBoth
M05Spindle StopBoth
M06Tool ChangeMill
M08Flood Coolant OnBoth
M09Coolant OffBoth
M19Spindle OrientationBoth
M30Program End and RewindBoth

Fanuc → Siemens SINUMERIK equivalents

Fanuc / ISOSiemens 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 drillingCYCLE81 / CYCLE82
G83 peck drillingCYCLE83
G84 rigid tappingCYCLE84
G85–G89 boringCYCLE85 – CYCLE89
G71 / G70 lathe roughingCYCLE95 (or CYCLE952 stock removal)
G76 lathe threadingCYCLE97 / CYCLE99
G52 local shiftTRANS / ATRANS
G68 rotationROT / AROT
G51 scalingSCALE / ASCALE
G51.1 mirrorMIRROR / AMIRROR
G68.2 tilted planeCYCLE800
G43.4 TCPCTRAORI
G05.1 Q1 look-aheadCYCLE832 (high-speed settings)
G28 reference returnG74 (reference point approach)
G50 S_ max spindle speed (lathe)LIMS=_
M98 P_ subprogram callprogram name, e.g. POCKET1 or CALL "POCKET1"
M99 subprogram endM17 or RET
G65 macro / #variablesR 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.

Other controls