Technical data
7.3.1.1 Program for PLC 1 (S5-155 U)
When the PLC starts up, the CP interface is synchronized with the
SYNCHRON handling block.
PLC 1 increments data word DW 1 in DB10 and then transmits it to PLC 2.
Once the job is completed, i.e. the status of the ANZW is "complete without
error", the data word is incremented again and transmitted to PLC 2.
Transmission is triggered in PLC 1 with a SEND HDB. This is called in FB
2. Before each SEND call, the data bytes of DW 1 are incremented in DB
10. This takes place in FB 1. The function blocks and FB 2 are called in OB
1.
Before triggering a new send job, the following statuses must be checked:
➣
Has the corresponding DW been incremented (F2.0 =1)?
➣
Is the previous SEND job complete (F11.1 = 0) and free of error
(F 11.2 =1)?
➣
Has no parameter assignment error occurred (F15.0 = 0)?
In addition to this, PLC 1 receives a DW from PLC 2 which must be written
to DW 1 in DB 12.
If the status of ANZW FW 110 in FB 102 is "receive possible", the
RECEIVE HDB is called and the receive word stored in the DB.
➣
Is "RECEIVE possible" (F111.0=1)?
➣
Has no parameter assignment occurred (F115.0=0).
B8976060/02 S5-S5 Communication
7 - 19 Volume 1










