Programming Example for Standard Function Blocks
9.4 Blocks Used
Point-to-point connection CP 440 Installation and Parameter Assignment
130
Manual, 09/2007, A5E00057742-03
Table 9-3
CP 440 ASCII BCC
Block
Symbol
Description
OB 1
CYCLE
Cyclic program processing
OB 100
RESTART
Cold restart processing
FB 9
RECV_440
Receive standard FB for data
FB 10
SEND_440
Send standard FB for data
FC 21
SEND
Sending Data
FC 22
RECEIVE
Receiving data
FC 23
GEN BCC
Creates BCC for the sender
FC 24
CHK BCC
Checks the BCC when data is received
DB 21
SEND IDB
Instance DB for SEND_440 FB
DB 22
RECV IDB
Instance DB for RECV_440 FB
DB 40
SEND WORK DB
Work DB for the standard FB 10
DB 41
RECV WORK DB
Work DB for the standard FB 9
DB 42
SEND SRC DB
Send data block
DB 43
RECV DST DB
Receive data block
Table 9-4
CP 440 MASTER
Block
Symbol
Description
OB 1
CYCLE
Cyclic program processing
OB 100
RESTART
Cold restart processing
FB 9
RECV_440
Receive standard FB for data
FB 10
SEND_440
Send standard FB for data
FC 1
SLAVE01
Main program for communication to slave 01
FC 2
SLAVE02
Main program for communication to slave 02
FC 11
SEND SL01
Sending Data
FC 12
SEND SL01
Sending Data
FC 21
RECEIVE SL01
Receiving data
FC 22
RECEIVE SL02
Receiving data
DB 9
RCV IDB
Instance DB for RECV_440 FB
DB 10
SEND IDB
Instance DB for SEND_440 FB
DB 31
SEND WORK DB SL01
Work DB for the standard FB 10
DB 32
SEND WORK DB SL02
Work DB for the standard FB 10
DB 41
RCV WORK DB SL01
Work DB for the standard FB 9
DB 42
RCV WORK DB SL02
Work DB for the standard FB 9
DB 51
SEND SRC DB SL01
Send data block
DB 52
SEND SRC DB SL02
Send data block
DB 61
RECV DST DB SL01
Receive data block
DB 62
RECV DST DB SL02
Receive data block
长沙工控帮教育科技有限公司
www.gkbpx.com