Communication via Function Blocks
6.3 Using the Function Blocks with the 3964(R) Procedure
CP 341 Point-to-Point Communication, Installation and Parameter Assignment
Manual, 09/2008, A5E02191071-01
133
What is to be done?
Block call
STL representation
LAD representation
CALL
P_SND_RK, I_P_SND_RK
SF:
=
REQ:
=
R:
=
LADDR:
=
DB_NO:
=
DBB_NO:
=
LEN:
=
R_CPU_NO:
=
R_TYP:
=
R_NO:
=
R_OFFSET:
=
R_CF_BYT
=
R_CF_BIT
=
DONE:
=
ERROR:
=
STATUS:
=
,B61'B5.
3B61'B5.
(1
(12
6)
'21(
5(4 (5525
5
67$786
/$''5
'%B12
'%%B12
/(1
5B&38B12
5B7<3
5B12
5B2))6(7
5B&)B%<7
5B&)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_SND_RK works together with an I_SND_RK instance DB. The DB number is
passed on with the call. The instance data block is 62 bytes long. Access to the data in the
instance DB is not allowed.
Note
Exception: If the error STATUS == W#16#1E0F 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