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
152
Manual, 09/2008, A5E02191071-01
Use of interprocessor communication flags
Following receipt of the message frame, the interprocessor communication flags specified in
the RK 512 message frame header are checked. The data is not provided unless the value
of the interprocessor communication flag is "0". When transmission is complete, the function
block sets the interprocessor communication flag to "1" and the interprocessor
communication flag (NDR) is output for one cycle at the function block.
The user program can evaluate the interprocessor communication flag in order to find out if
the provided data can be accessed again. As soon as the data have been processed, the
user must reset the interprocessor communication flag to "0". The communication partner
can now issue a FETCH request again.
What is to be done?
Block call
STL representation
LAD representation
CALL
P_RCV_RK, I_RCV_RK
EN_R:
=
R:
=
LADDR:
=
DB_NO:
=
DBB_NO:
=
L_NO:
=
L_OFFSET:
=
L_CF_BYT
=
L_CF_BIT
=
NDR:
=
ERROR:
=
LEN:
=
STATUS:
=
,B5&9B5.
3B5&9B5.
(1
(12
(1B5
1'5
5
(5525
/$''5
/(1
'%B12
67$786
'%%B12
/B7<3
/B12
/B2))6(7
/B&)B%<7
/B&)B%,7
Note
The parameters EN and ENO are only present in the graphical representation (LAD or FBD).
To process these parameters, the compiler uses the binary result BR. The binary result is set
to signal state "1" if the block was terminated without errors. If there was an error, the BR is
set to "0".
长沙工控帮教育科技有限公司
www.gkbpx.com