8 Using the Data Record Interface
145
IE/AS
−
INTERFACE LINK PN IO
as of hardware version 1, as of firmware version V2.0
Release 08/2018
C79000
−
G8976
−
C216
−
03
8.2.1.12 Read_AIDI
Meaning
This call reads the process image of the analog input data of the AS-i line of an
AS-i master.
Structure of the RecordDataRead service − Index 25
Byte
Meaning
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
Version_hi = 0x00
1
Version_lo = 0x00
2
3
Slave 1, channel 1 or slave 1A, channel 1
4
5
Slave 1, channel 2 or slave 1A, channel 2
6
7
Slave 1, channel 3 or slave 1B, channel 3
8
9
Slave 1, channel 4 or slave 1B, channel 4
...
...
242
243
Slave 31, channel 1 or slave 31A, channel 1
244
245
Slave 31, channel 2 or slave 31A, channel 2
246
247
Slave 31, channel 3 or slave 31B, channel 3
248
249
Slave 31, channel 4 or slave 31B, channel 4
Mapping of the analog values in the data record when accessing the entire line
You can use analog value access with the entire AS-i line to save I/O address
space in the S7 station.
An 8-byte area is used for each slave address to manage 4 analog channels. Table
8-7 below shows which address area in the data record the analog values of which
AS-i slave are transferred to.
The table can be used equally for the analog
input
area and the analog
output
area.