Drive plc developer studio – Lenze DDS v2.3 User Manual

Page 143

Advertising
background image

Drive PLC Developer Studio

Editors

7-21

l

DDS EN 2.3

If the organization unit is given read and write access, the following pragma allows variable a to be
exported with write access only and variable b not at all.

VAR

a:INT {flag noread};
b:INT {flag noread,nowrite};

END_VAR

VAR

{flag noread on}
a:INT;
{flag noread,nowrite on}
b:INT;
{flag off}

END_VAR

Variables a and b are not exported into the icon 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 is inherited by the subordinate variable declarations.

a:afb;
.
.
.
FUNKTION_BLOCK afB
VAR

b:bfb{flag nowrite};
c:INT;

END_VAR
.
.
.
FUNKTION_BLOCK bfB
VAR

d:INT{flag noread};
e:INT{flag nowrite};

END_VAR

a.b.d is not exported.
a.b.e is exported with read access only.
a.c is exported with read and write access.

Show/Hide Bookmarks

Advertising