Communication via Function Blocks
6.4 Using the Function Blocks with the RK 512 Computer Connection
CP 341 Point-to-Point Communication, Installation and Parameter Assignment
Manual, 09/2008, A5E02191071-01
149
FB P_RCV_RK parameters
The table below lists the parameters of the FB 7 P_RCV_RK for the "Receive data" request.
Table 6- 6
FB 7 P_RCV_RK parameters for "Receive data" request
Name
Sort
Data type
Comment
Permitted values, remark
EN_R
INPUT
BOOL
Enables data receipt
R
INPUT
BOOL
Cancels request
Cancels the request in progress. Receiving is
disabled. Default: 0
LADDR
INPUT
INT
CP 341 start address
The start address is taken from STEP 7.
DB_NO
INPUT
INT
Data block number of the
receive data (destination)
Receive DB no.: CPU-specific, zero is not allowed
(Relevant only for DX data destination)
DBB_NO
INPUT
INT
Data byte number of the
receive data (destination)
0 ≤ DBB_NO ≤ 8190 Receive data starting from
data byte
(Relevant only for DX data destination)
L_TYP
1
OUTPUT CHAR
Type of area on local CPU
(destination)
'D': Data block
L_NO
1
OUTPUT INT
Data block number on local
CPU (destination)
0 ≤ L_NO ≤ 255
L_OFFSET
1
OUTPUT INT
Data byte number on local
CPU (destination)
0 ≤ L_OFFSET ≤ 510
L_CF_BYT
1
OUTPUT INT
Interprocessor
communication flag byte on
local CPU
0 ≤ L_CF_BYTE ≤ 255255 means: without
interprocessor communication flag
L_CF_BIT
1
OUTPUT INT
Interprocessor
communication flag bit on
local CPU
0 ≤ L_CF_BIT ≤ 7
NDR
1
OUTPUT BOOL
Request completed without
errors, data accepted
STATUS parameter == 16#00;
ERROR
1
OUTPUT BOOL
Request completed with
errors
Error information is written to the STATUS
parameter.
LEN
1
OUTPUT INT
Length of the message
frame received
0 ≤ LEN ≤ 4096, specified in number of bytes
STATUS
1
OUTPUT WORD
Specification of error
If ERROR == 1, the STATUS parameter will
contain error information.
1
The parameter is available until the next time the FB is called.
长沙工控帮教育科技有限公司
www.gkbpx.com