Addresses, Memory location, Addresses 9 – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 1101: L-force | plc designer
L-force | PLC Designer
Programming Reference
DMS 4.1 EN 03/2011 TD29
1099
Declaration in POU:
VAR
x:stru1;
END_VAR
Bitaccess:
x.wvar.enable:=true;
This will set TRUE the 42. bit in variable x. Since bvar has 8 bits and rvar has 32 bits, the
bitaccess will be done on the second bit of variable wvar, which as a result will get
value 4.
16.4.3
Addresses
Note: Online Change might change the contents on addresses. Please notice this
when using pointers on addresses.
Memory location
You can use any supported size to access the memory location.
For example, the address %MD48 would address bytes numbers 192, 193, 194, and
195 in the memory location area (48 * 4 = 192). The number of the first byte is 0. The
table below shows the corresponding memory location dependent on the size (X: bit,
B: byte, W: word, D: dword) for IEC addressing.
Example:
%MX
96.0 - 96.7
96.8 - 192.15
97.0 - 97.7
97.8 - 97.15
%MB
192
193
194
195
%MW
96
97
%MD
48
You can access words, bytes and even bits in the same way: the address %MX96.0
allows you to access the first bit in the 96th word. (Bits are generally saved wordwise).
See Address for further information on addressing.
Note: Online Change might change the contents on addresses. Please notice this
when using pointers on addresses.