Usage of variables, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 644

L-force | PLC Designer
General Editors
642
DMS 4.1 EN 03/2011 TD29
Usage of Variables
In DIN66025 there can be defined a variable or a term embraced by two $ signs. It can
be set by using the CNC command Set variables or in the properties window of the
CNC object.
Example:
One item of a global array of a structure:
$CNC[1].X$.
Regard in this context, that the usage of variables only will work, if the program is
compiled as program variable (SMC_CNC_REF) and is online processed by the decoder
module. The variables will be replaced at that time at which the decoder is processing
the corresponding line.
If the CNC program however is compiled as SMC_OutQueue, the variable mechanism
will not work because in this case the path is offline created and passed as
unmodifiable data structure to the application. In this case – as also for an offline
display – the editor will replace variables by their initial values.
The usage of variable in online read G-code programs needs additional preparations.