Time Syncronise between PM571 to HMI 400
How to syncronise clock/time pm554 plc to cp400.
i want to write time to cp 400 hmi from plc pm554.
please send the sample program.
Look in the manual 1SBC159106M0206:
The steps to set up the time block follow.
Select Application/Workstation Setup in CP400Soft and you can set up the time block on the Miscellaneous tab. The starting address is W240 and the size is 3 words, so the data will be saved in the W240, W241 and W242 16-bit registers. The operator terminal updates the time block every minute with the time data
Low byte of word 0 = minute BCD
High byte of word 0=hour BCD
Low byte of word 1=day BCD
High byte of word 1=month BCD
Low byte of word 2=year BCD
High byte of word 2=day of week BCD
Low byte of word 3=seconds BCD
In Panel Builder 400 it is similar like described above.
In PM554 program use FB CLOCK. It generates output bytes with PLC hour, min, e.t.c.
Convert these bytes to INT, then to BCD. Please note - YEAR is in WORD format.
Assign the BCD outputs directly to %MW0.xx in the sequence, required by CP405 (min, hour,day,month,year,day-of-week,second)
In my example I started with %MW0.60, and need all 7 words required by CP400
Then in Panel Builder 400 open Panel -> Clock... and define Synchronize Panel with PLC and starting address %MW0.60