Creating a CNC Program
Select an application in the device tree.
Click
.Specify a name in the Add CNC program dialog and select an Implementation from the list box:
DIN 66025: To create your program in the text editor
Table: To create your program in the tabular editor
Select a Compile mode to determine behavior when compiling:
SMC_OutQueue: An SMC_OutQueue data structure is generated on compile. You are granted global access by means of
g_CNCQueueManager
(SMC_OutQueue).SMC_CNC_REF: Program variables are generated on compile. You are granted global access by means of
g_CNCProgManager
(SMC-CNC_REF) in an IEC program.FILE: A file generated by G code is downloaded and updated at each login. The PLC can download this file by means of function blocks.
Tip
You can change the Implementation and Compile mode later in the Properties dialog (CNC tab of the CNC program).
Click Add.
The CNC object is inserted into the device tree and opened in the editor.