8 Using the Data Record Interface
122
IE/AS−INTERFACE LINK PN IO as of hardware version 1, as of firmware version V2.0
Release 08/2018
C79000−G8976−C216−03
Job parameters
Set the parameters for the “read data record” and “write data record” jobs as
described above. Access is controlled by the following parameters:
S ”Index”
Specifies the data record number.
S ”Length”
Specifies the length of the input/output data area; the specified length must be
adapted to the data record being used.
− The length of the data sent (with write data record) is specified depending on
the call.
Make sure that you select an adequately large buffer. The buffer may be
larger than the number of bytes used.
S “Data”
Defines the address of the send / receive buffer in the user program.
Return value
The return values of the AS-i LINK can be evaluated by the user program in
SIMATIC S7 with the system function block SFB52 or SFB53. SFB52 or SFB53
returns a double word in which the output parameter “STATUS” contains the error
information:
For information on SFB52/53, refer to the block helps of STEP 7.
S STATUS[1] Read: “DE”
H
Write: “DF”
H
S STATUS[2]: “80”
H
S STATUS[3] Read: “A0”
H
Write: “A1”
H
S STATUS[4]: see Table 8-3.