L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 272
Advertising
L-force | PLC Designer
Editors in PLC Designer
270
DMS 3.2 EN 02/2011 TD29
Neither variable a nor b will be exported to the symbol file:
{ flag noread, nowrite on }
VAR
a : INT;
b : INT;
END_VAR
{flag off}
VAR
{ flag noread, nowrite on}
a : INT;
b : INT;
{flag off}
END_VAR
The pragma operates additively on all subsequent variable declarations.
Example: (all POUs in use will be exported with read and write permission)
a : afb;
...
FUNCTION_BLOCK afB
VAR
b : bfb {flag nowrite};
c : INT;
END_VAR
...
FUNCTION_BLOCK bfB
VAR
d : INT {flag noread};
e : INT {flag nowrite};
END_VAR
„a.b.d": Will not be exported
„a.b.e": Will be exported only with read permission
„a.c": Will be exported with read and write permission.
Advertising