Programming Example for Standard Function Blocks
9.4 Example “Point–to–Point Communication”
PtP coupling and configuration of CP 340
152 Manual, 04/2011, A5E00369892-03
Symbol Input/output Flag Comment
Q 5.6 M 9.6 "0"
Q 5.7 M 9.7 "0"
Input/Output parameters for FB 2 and FB 3
The table below shows how the input/output parameters of FB 2 and FB 3 are mapped to bit
memories.
Symbol Address Data format Comment
SEND_DONE M 26.0 BOOL SEND: DONE parameter
SEND_ERROR M 26.1 BOOL SEND: ERROR parameter
SEND_BIE M 26.2 BOOL SEND: Binary result
RCV_NDR M 29.0 BOOL RCV: NDR parameter
RCV_ERROR M 29.1 BOOL RCV: ERROR parameter
RCV_BIE M 29.2 BOOL RCV: Binary result
BGADR MW 21 INT Logical base address
SEND_STATUS MW 27 WORD SEND: STATUS parameter
RCV_STATUS MW 30 WORD RCV: STATUS parameter
SEND_DBNO MW 40 INT SEND: DB_NO parameter
SEND_DWNO MW 42 INT SEND: DBB_NO parameter
SEND_LEN MW 44 INT SEND: LEN parameter
RCV_DBNO MW 50 INT RCV: DB_NO parameter
RCV_DWNO MW 52 INT RCV: DBB_NO parameter
RCV_LEN MW 54 INT RCV: LEN parameter