Communication via Function Blocks
6.3 Using the Function Blocks
Point-to-point connection CP 440 Installation and Parameter Assignment
96
Manual, 09/2007, A5E00057742-03
Assignment in the Data Area
The RECV_440 FB works with an instance DB (I_RECV_440). The DB number is specified in
the call. The data in the instance DB cannot be accessed.
Note
Exception: If the error (STATUS == W#16#1E0E) occurs, you can consult the SFCERR
variable for more details of the error. This error variable can only be loaded via a symbolic
access to the instance DB.
Parameters of the RECV_440 FB
The following table lists the parameters of the RECV_440 FB.
Table 6-5
Parameters of the RECV_440 FB
Name
Type
Data type
Description
Permitted Values, Comment
EN_R
INPUT
BOOL
Enables data read
R
INPUT
BOOL
Aborts request
Current request is aborted. Receiving is
blocked.
LADDR
INPUT
INT
Basic address of CP 440
The basic address can be found in the
configuration table in STEP 7.
DB_NO
INPUT
INT
Data block number
Receive DB No.:
CPU-specific, zero is not allowed
DBB_NO
INPUT
INT
Data byte number
Offset is CPU-specific
NDR
1
OUTPUT
BOOL
Request completed without
errors, data accepted
STATUS parameter == 16#00;
ERROR
1
OUTPUT
BOOL
Request completed with
errors
STATUS parameter contains error details
LEN
1
OUTPUT
INT
Length of message frame
received
1 ≤ LEN ≤ 400 (Page 86),
specified in number of bytes
STATUS
1
OUTPUT
WORD
Error specification
If ERROR == 1, STATUS parameter contains
error details
1
The parameter is available until the next call of the FB!
www.gkbpx.com