1/27/2016 10:48 AM | |
Joined: 6/24/2013 Last visit: 5/2/2024 Posts: 1596 Rating: (410)
|
Hi I did this by setting tags for HH / MM/ SS which are written by SCADA every minute Then PLC set its time and clears the tags to indicate synchronization completed. //----------------------------SCADA CICODE. Tags are as per the PLC INT Synchronized; // Clock Synchronized // Function sends clock synchronization data to PLC //---------------------------------S7 PLC // Synchronization Tags in PLC [HMISCADA DB] GENERAL STRUCT General signals - for the whole line; // Synchronization in OB35 [100ms OB] Use function which is attached as PDF: 1. if Month=0 Read PLC Date/Time for local HMIs then Exit 2. OTHERWISE: - Generate packed Date And Time from SCADA values // YEAR [90 .. 89 --> 1990 -> 2089] - Call SFC0 to set PLC Clock and finish Note: SCADA Tags are cleared once synchronization done to prevent it from synchronize in next scan. SCADA writes to tags every synchronization period. Attachment!FC98.pdf (73 Downloads) |
1/28/2016 2:05 AM | |
Posts: 56 Rating: (2) |
Thank you verry much for your input! I have copy pasted your cicode script, I have made a temperary button who shall run the cicode now Please see attached cideo and copy past from variable.dbf AttachmentDesktop.zip (60 Downloads) |
Follow us on