Application Example
B.5
Programming the Programmable Controller
Before entering the statement list, we would like to explain the basic settings of
the example program.
The program is designed so that both programmable controllers are permanently
ready to receive. Transmission on a 200 ms timebase (5 Hz). The CPU expects to
receive messages constantly and switches to "Send" every 200 ms for a send
message. You can enter and change the send data via simulator modules.
Both programmable controllers store
•
Send data in DW 0 to DW 2 of DB 2
and
•
Receive data in DW 0 to DW 2 of DB 3
Proceed as follows when programming:
•
Enter the blocks in the programmer in the order specified
•
Transfer them to both programmable controllers.
Order for entering the blocks:
•
DB2
Send data
•
DB3
Receive data
•
FB 1
Send program
•
FB 2
Receive program
•
FB3
Send takt program (5Hz)
•
OB1
Test program
B-4
(DW 0 to DW 2)
(DW 0 to DW 2)
CP 521
GWA 4NEB 812 6030-02b