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

Page 632

Advertising
background image

L-force | PLC Designer

General Editors

630

DMS 4.1 EN 03/2011 TD29

Example:
The following example will set the global variable g_i to 5:

N1000 G36 O$g_i$ D5


The following example effects that the lines 1010 and 1020 will be proceeded five
times:

N1000 G36 O$g_i$ D5
N1010 G1 X100 F100 E100 E-100
N1020 G1 X0
N1030 G37 O$g_i$ D-1
N1040 G20 L1010 K$g_i$


Regard that this mechanism only will work, if the path is online-processed, because
only then variables can be used! So the mechanism will not work in the CNC editor!
Instead you can process in the following way:
If by O no variable is specified, an implicit decoder variable (type: INT) will be used. This
mechanism also works in offline mode in the editor. However regard that only one
variable will be available and no nested jumps and loops can be programmed.

Preprocessor
General
In DIN66025 some preprocessors (SMC_SmoothPath, SMC_RoundPath,
SMC_AvoidLoop, SMC_ToolCorr , selectable in 'CNC settings') need to be activated with
G commands. Then the enclosed path segment is corrected and with enabled 'Show
preprocessed path' option in the CNC menu the correction is visible in the graphic
editor.

Abb. 334 CNC path with slur path

Advertising