DP/ASi Link to S7
Table 6-1
Parameters for SFC 59 "RD_REC", continued
Parameter
Declaration
Data Type
BUSY
OUTPUT
RECORD
OUTPUT
SFC 58 "WR_REC"
You use the SFC 58 to transfer a data record to the DP/ASi link. The parame-
ters are described in the table below:
Table 6-2
Parameters for SFC 58 "WR_REC"
Parameter
Declaration
Data Type
REC
INPUT
IOID
INPUT
LADDR
INPUT
RECNUM
INPUT
RECORD
INPUT
RET_VAL
OUTPUT
BUSY
OUTPUT
Further reading
You will find a detailed description of SFC 58 and SFC 59 in the System and
Standard Functions reference manual.
In this chapter
In Section
6-2
Memory Area
BOOL
I, O, M, D, L
ANY
I, O, M, D, L
Memory Area
BOOL
I, O, M, D, L, Const.
BYTE
I, O, M, D, L, Const.
WORD
I, O, M, D, L, Const.
BYTE
I, O, M, D, L, Const.
ANY
I, O, M, D, L
INT
I, O, M, D, L
BOOL
I, O, M, D, L
6.1
Reading Data Records with SFC 59 "RD_REC"
6.2
Writing Data Records with SFC 58 "WR_REC"
6.3
Example of Re-assigning Parameters to the DP/ASi Link
with S7
Description
BUSY = 1: Read operation still being processed
Destination area for data record read
Example: Data record 140 (22 bytes long) is to
be stored in bit memory address area from MB
50 onward, RECORD = P#M50.0 BYTE22
Description
REQ = 1: Request to write
Area: The DP/ASi link is a hybrid module
IOID = B#16#54
Logical address of the DP/ASi link.
Example: Logical address = 336 (decimal),
LADDR = W#16#150 (hexadecimal)
Data record number
Example: Data record 143, RECNUM =
B#16#8F
Data record
Example: Data record 142 (2 bytes long) is to
be read in the bit memory address area from
MB 50 onward, RE CORD = P#M50.0 BYTE2
If an error occurs while a function is being pro-
cessed, the return value contains an error code.
BUSY = 1: Write operation still being pro-
cessed
You Will Find
Distributed I/O System DP/ASi Link
EWA 4NEB 710 6055-02b
on Page
6-3
6-5
6-6
Need help?
Do you have a question about the SIMATIC Distributed I/O System DP/ASi Link and is the answer not in the manual?