User manual

6-2
Distributed I/O System DP/ASi Link
EWA 4NEB 710 6055-02b
Table 6-1 Parameters for SFC 59 “RD_REC”, continued
Parameter DescriptionMemory AreaData TypeDeclaration
BUSY OUTPUT BOOL I, O, M, D, L BUSY = 1: Read operation still being processed
RECORD OUTPUT ANY I, O, M, D, L 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
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 Memory Area Description
REC INPUT BOOL I, O, M, D, L, Const. REQ = 1: Request to write
IOID INPUT BYTE I, O, M, D, L, Const. Area: The DP/ASi link is a hybrid module
IOID = B#16#54
LADDR INPUT WORD I, O, M, D, L, Const. Logical address of the DP/ASi link.
Example: Logical address = 336 (decimal),
LADDR = W#16#150 (hexadecimal)
RECNUM INPUT BYTE I, O, M, D, L, Const. Data record number
Example: Data record 143, RECNUM =
B#16#8F
RECORD INPUT ANY I, O, M, D, L 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
RET_VAL OUTPUT INT I, O, M, D, L If an error occurs while a function is being pro-
cessed, the return value contains an error code.
BUSY OUTPUT BOOL I, O, M, D, L BUSY = 1: Write operation still being pro-
cessed
You will find a detailed description of SFC 58 and SFC 59 in the System and
Standard Functions reference manual.
In Section You Will Find on Page
6.1 Reading Data Records with SFC 59 “RD_REC” 6-3
6.2 Writing Data Records with SFC 58 “WR_REC” 6-5
6.3 Example of Re-assigning Parameters to the DP/ASi Link
with S7
6-6
SFC 58 ”WR_REC”
Further reading
In this chapter
DP/ASi Link to S7