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
148
Manual, 09/2008, A5E02191071-01
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_TYP:
=
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".
Assignment in the data area
The FB P_RCV_RK works together with an I_RCV_RK instance DB. The DB number is
passed on with the call. The instance data block is 60 bytes long. Access to the data in the
instance DB is not allowed.
Note
Exception: If the error STATUS == W#16#1E0E occurred, you can consult the SFCERR
variable for additional details. This error variable can only be loaded via symbolic access to
the instance DB.
长沙工控帮教育科技有限公司
www.gkbpx.com