Siemens Sinumerik G-code practice
What carries over from any control
Motion, arcs, plane selection, absolute and incremental mode, feed and spindle speed, the G54 to G57 work offsets and cutter compensation with G41 and G42 read the same on a Sinumerik as on the common G-codes page. A Sinumerik writes G0 and G1 where Fanuc programs often write G00 and G01; both mean the same.
What you meet on a Sinumerik
Native Siemens programming (the 840D and 828D families). Availability depends on version and options.
| Code or word | What it does |
|---|---|
G70 / G71 | Inch / metric input. G700 and G710 also switch feed units. The same numbers are lathe cycles on Fanuc. |
CYCLE81 … CYCLE89 | Drilling, boring and tapping cycles called by name with parameters in brackets, instead of G81 to G89. |
CYCLE95 | Stock removal (rough turning) from a contour: the job of G71 on a Fanuc lathe. |
CYCLE800 | Swivel: tilts the working plane on 5-axis machines. |
R1=25 | R-parameters: numbered variables used in calculations and as cycle inputs. |
GOTOF / GOTOB | Jump forward or back to a label: program flow without Macro B. |
TRANS / ROT / MIRROR / SCALE | Programmable frames: shift, rotate, mirror or scale the coordinate system. |
G500 | Cancels the settable work offset (the G54 family). |
AC() / IC() | Absolute or incremental for one coordinate only, inside a line: X=IC(5). |
DIAMON / DIAMOF | Lathe X in diameter or radius. |
Traps when you cross from Fanuc
- G70 and G71. On a Sinumerik they choose inch or metric. A Fanuc-trained reader sees a finishing or roughing cycle. Check the control before you read the program.
- Main and subprograms are files. Main programs end in .MPF and subprograms in .SPF; a subprogram is called by its name, not with M98 P.
- Tools by name. T="DRILL_8" with D1 for the offset is common; there may be no tool number at all.
- ISO mode exists. Many Sinumeriks can switch to an ISO dialect for Fanuc-style programs. Know which mode a program was written for.
Habits that help
- Read the cycle screen, not just the line. A CYCLE81 call has many positional parameters; the control's cycle form shows each one with its name.
- Use ShopMill or ShopTurn for one-offs. The step-by-step conversational screens are often faster at the machine; G-code is for programs from CAM.
- Simulate before the first part. The built-in simulation catches a wrong frame or offset before the tool moves.
Quiz: the codes Sinumerik shares with every control
Mill: what does this code do?
G19
Codes and options vary by control version and machine builder. Check the manual for your machine before running a program.
Frequently asked questions
- Is Siemens G-code the same as Fanuc?
- The core motion codes are the same. Units, cycles, variables and subprogram calls are different: G70/G71 select units, cycles are named CYCLE calls, logic uses R-parameters, and subprograms are separate files called by name.
- What does G71 mean on a Siemens control?
- Metric input (millimetres). G70 is inch. On a Fanuc lathe the same numbers are the roughing and finishing cycles, which is the most common misreading between the two.
- What is the Siemens equivalent of G81?
- CYCLE81, a drilling cycle called by name with its parameters (return plane, safety distance, depth and so on) in brackets. Many Sinumerik controls also accept G81 in ISO mode.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.