Communication via Function Blocks
6.3 Using the Function Blocks
Point-to-point connection CP 440 Installation and Parameter Assignment
Manual, 09/2007, A5E00057742-03
95
Error Display on the RECV_440 FB
The NDR output shows "request completed without errors/data accepted" (all data read).
ERROR indicates whether an error has occurred. In STATUS the event number is displayed
in the event of an error. If no error occurs the value of STATUS is 0. NDR and
ERROR/STATUS are also output in response to a RESET of FB RECV_440 (LEN parameter
== 16#00). In the event of an error, the binary result BR is reset. If the block is terminated
without errors, the binary result has the status "1".
Note
The RECV_440 function block does not have a parameter check. If there are invalid
parameters, the CPU branches to the STOP mode.
Table 6-4
Block call
STL representation
LAD representation
CALL
RECV_440, I_RECV_440
EN_R: =
R: =
LADDR: =
DB_NO: =
DBB_NO: =
NDR : =
ERROR : =
LEN: =
STATUS : =
5(&9B,B5(&9B
(1
(1B5
5
/$''5
'%B12
'%%B12
(12
1'5
(5525
/(1
67$786
/B7<3
Note
The parameters EN and ENO are only present in the graphical representation (LAD or FBD).
The block is started with EN = TRUE. If the function is completed without errors, ENO =
TRUE is set. 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