Programming Example for Standard Function Blocks
9.4 Example "Point–to–Point Communication"
Symbol
Input/output
Q 5.6
Q 5.7
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
SEND_DONE
SEND_ERROR
SEND_BIE
RCV_NDR
RCV_ERROR
RCV_BIE
BGADR
SEND_STATUS
RCV_STATUS
SEND_DBNO
SEND_DWNO
SEND_LEN
RCV_DBNO
RCV_DWNO
RCV_LEN
152
Flag
M 9.6
M 9.7
Address
Data format
M 26.0
BOOL
M 26.1
BOOL
M 26.2
BOOL
M 29.0
BOOL
M 29.1
BOOL
M 29.2
BOOL
MW 21
INT
MW 27
WORD
MW 30
WORD
MW 40
INT
MW 42
INT
MW 44
INT
MW 50
INT
MW 52
INT
MW 54
INT
Comment
"0"
"0"
Comment
SEND: DONE parameter
SEND: ERROR parameter
SEND: Binary result
RCV: NDR parameter
RCV: ERROR parameter
RCV: Binary result
Logical base address
SEND: STATUS parameter
RCV: STATUS parameter
SEND: DB_NO parameter
SEND: DBB_NO parameter
SEND: LEN parameter
RCV: DB_NO parameter
RCV: DBB_NO parameter
RCV: LEN parameter
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03