Addressing Example
(Original Document)
Comparing the 3 Addressing Modes
The following example compares the 3 possible addressing modes. An 8-channel thermocouple 140 ATI 030  00 module with the following configuration data is used:
To access the I/O data from the module you can use the following syntax:
Module data
Flat Addressing
Topological Addressing
IODDT Addressing
Concept Addressing
Channel 3
temperature
%IW203
%IW1.5.3
My_Temp.VALUE
300203
Channel 3
out of range
%IW209.5
%I1.5.3.1
My_Temp.ERROR
300209
Bit 5 to be extracted by user logic
Channel 3
range warning
%IW209.13
%I1.5.3.2
My_Temp.WARNING
300209
Bit 13 to be extracted by user logic
Module internal
temperature
%IW210
%IW1.5.10
not accessible through IODDT
300210
NOTE: For the IODDT the data type T_ANA_IN_VWE is used and the variable My_Temp with the address %CH1.5.10 was defined.
For comparison, the register addressing as used with Concept is added in the last column. As Concept does not support direct addressing of a bit in a word, the bit extraction has to be performed in the user program.