Text editor, Cnc text editor, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 605

Advertising
background image

L-force | PLC Designer

General Editors

DMS 4.1 EN 03/2011 TD29

603

Compilation of the CNC
During compilation structure variables of type SMC_OutQueue, SMC_CNC_REF (set
with the drop-down list Compile mode) are created independent of using the text
editor or the table view for generating code. These structures are part of the library
SM3_CNC.The data structures are listed in a global variable and allow an easy access.
See CNC data structures.
A further option is to create a file including the programed CNC path during
compilation and load it on the PLC while doing a login. For this use the option File in
the compile mode list must be selected.
For a further description see 'compile mode'.

Open an existing project file
To open an existing project file a standard dialog opens. A further description can be
found in 'Open Project...'. If it is a »PLC Designer« V2.3 project, an appropriate converter
is available.
The following tasks are taken from the converter, if a SoftMotion capable device is
available:
• The converter transforms every CNC program into CNC objects with same name

and implementation type DIN 66025. There the compile mode, the queue size and
the start position of the converting program are stored just as the status of step
suppression.

• If in a CNC program in a »PLC Designer« V2.3 project the option Exclude from build

is activated, the appropriate flag Exclude from build in »PLC Designer« V3 is also
set.

• The previously used values epsilon and angle leeway are ignored.
• A 'CNC Settings' object is automatically generated.
• All CNC objects and the CNC settings object are sorted below an application which

is capable of doing »PLC Designer« SoftMotion.

• If the device is not capable to SoftMotion, no CNC program is transformed and an

error message is generated.

13.3.1

Text Editor

CNC Text Editor
The text editor is in the upper part of the 'CNC' window. Here you can enter and modify
a CNC program according to DIN66025. The syntax and supported path elements of
Din66025 are displayed accordingly in the graphic editor and can be modified there. In
this case the text part will be updated vice versa.

Advertising