7 
 
08/2005  G Code Program
7.2 Executin
 a G-code 
ro
ram
 
7
 
♥ Siemens AG, 2005. All rights reserved 
SINUMERIK 840D sl Operation/Programming ShopTurn (BAT) – 08/2005 Edition  7-347 
7.2  Executing a G-code program 
    During execution of a program, the workpiece is machined in 
accordance with the programming on the machine.   
After the program is started in automatic mode, workpiece machining 
is performed automatically. You can, however, stop the program at 
any time and then resume execution later.  
      Execution of the program can be simulated graphically on the screen 
to enable you to check the programming result without moving the 
machine axes. 
For more information about simulation, see Sec. "Simulation". 
 
    The following prerequisites must be met before executing a program: 
   The measuring system of the controller is synchronized with the 
machine. 
   A program created in G code is available. 
   The necessary tool offsets and work offsets have been entered. 
   The necessary safety interlocks implemented by the machine 
manufacturer are activated. 
      When executing a G code program, the same functions are available 
as for executing a sequential control program (see Sec. "Machining a 
workpiece"). 
 
 
G code program: 
Simulating 
 
 
 -or-   
  Press the softkey or the "Program" key. 
  Position the cursor on the desired G code program. 
 
 -or-   
  Press the "Input" or "Cursor right" key. 
The program is opened in the G code editor. 
 
 
  Press the "Simulation" softkey. 
Execution of the program will be displayed in full on the screen in 
graphical form. 
 
Edit
 
Select the "Edit" softkey if you want to return directly to the G code 
editor from the simulation screen.