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

L-force | PLC Designer
Visualization
182
DMS 4.1 EN 03/2011 TD29
Restrictions
Expressions, Monitoring:
The diagnosis visualization mode only supports expressions which can be handled by
the monitoring mechanism of the programming system. These are:
• normal variable accesses like PLC_PRG.myPou.nCounter
• complex accesses as listed in the following; note that for those a runtime system
V3.3 SP2 or newer is required!:
• access on an array of scalar data types with one variable used as index ( a[i] )
• access on an array of complex data types (structures, function blocks, arrays) with
one variable used as index ( a[i].x )
• access on a multidimensional array of all sorts of data types with one or several
variable indices ( a[i, 1, j].x )
• access on an array with constant index [ a[3] )
• accesses like listed above, in which simple operators are used for calculations
within the index brackets ( a[i+3] )
• nested combinations of the complex expressions listed above ( a[i + 4 * j].aInner[j *
3].x )
• operators supported in index calculations: +, -, *, /, MOD
• pointer monitoring like p^.x
• not supported are methods or function calls except the following: all standard
string functions, all type conversion functions like INT_TO_DWORD, all operators
like SEL, MIN, ...
Inputs:
Within the input action "Execute ST-Code" only a list of assignments is supported.
Example:
PLC_PRG.n := 20 * PLC_PRG.m;
// not allowed
IF PLC_PRG.n < MAX_COUNT THEN
PLC_PRG.n := PLC_PRG.n + 1;
END_IF
//use the following statement instead:
PLC_PRG.n := MIN(MAX_COUNT, PLC_PRG.n + 1);
Note: If a list of assignments is used, the value on the left side will not get assigned
before the next cycle. A direct subsequent processing in the successive line is not
possible.