L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 953

Advertising
background image

L-force | PLC Designer

Device Editors

DMS 4.1 EN 03/2011 TD29

951

CNC Example2: Decoding online with use of variables
See the corresponding sample project CNConline.project!

1. Creating the CNC program in the CNC-Editor:
Like in the previous example we create a CNC program, but now we use two global
variables g_x and g_y.
Example:

VAR_GLOBAL
g_x: REAL:=100;
g_y:REAL:=50;
END_VAR

Abb. 532 Example object

We choose compilation mode SMC_CNC_REF because we are using variables in our
CNC program.

2. Drive Interface, PLC configuration:
The drive structure is the same as described in the previous example.

Advertising