Depending upon communication function the following behavior is present:
n Siemens S7-300 Communication (FB 9)
– The parameters R_ID, ID and RD_1 are applied with every positive edge on
EN_R. After a job has been completed, you can assign new values to the R_ID,
ID and RD_1 parameters.
n Siemens S7-400 Communication (SFB 9)
– The receive data areas are referenced by the parameters RD_1...RD_4.
Parameter Declaration Data type Memory block Description
EN_R INPUT BOOL I, Q, M, D, L Control parameter enabled to receive, indicates that
the partner is ready for reception
ID INPUT WORD I, Q, M, D, con-
stant
A reference for the connection. Format wxyzh
R_ID INPUT DWORD I, Q, M, D, con-
stant
Address parameter R_ID. Format
DW#16#wxyzWXYZ.
NDR OUTPUT BOOL I, Q, M, D, L Status parameter NDR: new data transferred.
ERROR OUTPUT BOOL I, Q, M, D, L Status parameter ERROR:
n ERROR = 0 + STATUS = 0000h
– No warnings or errors
n ERROR = 0 + STATUS unequal to 0000h
– A Warning has occured. STATUS contains
detailed information.
n ERROR = 1
– An error has occurred.
STATUS OUTPUT WORD I, Q, M, D, L Status parameter STATUS, returns detailed informa-
tion about the type of error.
RD_i,1≤ i ≤4 IN_OUT ANY I, Q, M, D, T, C Pointer to receive buffer i.
Only data type BOOL is valid (Bit field not per-
mitted), BYTE, CHAR, WORD, INT, DWORD, DINT,
REAL, DATE, TOD, TIME, S5TIME,
DATE_AND_TIME, COUNTER, TIMER.
The quantity, length and data type of the buffer areas defined by parame-
ters SD_i and RD_i, 1 ≤ i ≤ 4 must be identical (RD_i is the receive buffer
of the respective partner FB/SFB, see FB/SFB 8). The initial call to
FB/SFB 9 creates the "receive box". The receive data available during
any subsequent calls must fit into this receive box. When a data transfer
completes successfully parameter NDR is set to 1.
ERROR STATUS
(decimal)
Description
0 9 Overrun warning: old receive data was overwritten by new
receive data.
0 11 Warning: the new task is not active since the previous task
has not completed.
0 25 Communications initiated. The task is being processed.
Parameters
Error information
VIPA SPEED7
Network Communication
Ethernet Communication > FB/SFB 9 - URCV - Uncoordinated data reception
HB00 | OPL_SP7 | Operation list | en | 18-30 156