8 Using the Data Record Interface
121
IE/AS
−
INTERFACE LINK PN IO
as of hardware version 1, as of firmware version V2.0
Release 08/2018
C79000
−
G8976
−
C216
−
03
Calls
The following blocks are used for read or write data record:
Table 8-1
Call
With SIMATIC S7
With IO-Base
programming interface
Read data record
(RecordDataRead)
SFB52
pnio_rec_read_rec()
Write data record
(RecordDataWrite)
SFB53
pnio_rec_write_rec()
Call Parameters
Certain parameters must have values assigned to specify the job. The name of this
parameter and type of parameter assignment can vary depending on the type of
PROFINET IO controller (user program for S7-CPU or for PG/PC).
Table 8-2
Parameters for Read/Write Data Records
SIMATIC S7 (SFB 52/53)
For PC: IO-Base programming interface
(pnio_*_read/write)
ID:
I/O address or diagnostic address of the
required slot of the IE/AS-i LINK.
S
Call to an AS-i line:
Here, you specify the I/O address or the
diagnostic address of the required line
(slot 0 or 100) as a HEX value.
S
Call to an AS-slave:
Here, you specify the I/O address or
diagnostic address of the required
AS-i slave (slot 1...63 or 101...163) as a
HEX value.
pAddr:
Address of the required slot of the IE/AS-i LINK.
S
Call to an AS-i line:
Here, you specify the address of the required line (slot 0 or
100) as a HEX value.
S
Call to an AS-slave:
Here, you specify the address of the required AS-i slave
(slot 1...63 or 101...163) as a HEX value.
Index:
Data record number, data format: INT
RecordIndex
MLEN: length for “read data record”
LEN: length for “write data record”
Length
RECORD:
Destination area for the data record,
referenced by ANY pointer
Return over callback event