How do you do the summer/winter time switchover with WinCC flexible (update to version V1.1)?
Use the latest version "Summer_Winter_Time_V1_1.zip".
With the previous versions, under certain circumstances there might be a time-of-day conversion error. If you are already using the previous version, then please replace FB80 including the instance DB in the STEP 7 project.
In the following example you can specify the exact times for the switchover between summer time and winter time via the operator panel.
The CPU clock serves as time master. This can be set via the HMI picture.
Based on the specified times, the CPU time is adjusted accordingly by +/- 1 hour for the switchover to summer time / winter time. The subsequent time synchronization with the operator panel is made via the "Date/time PLC" area pointer. This ensures that the time in the CPU and on the operator panel runs "synchronously" and you do not have to adjust the time manually on the operator panel.
STEP 7 project
WinCC flexible project
|3||Configuration notes on the "DateTime" picture
The "DateTime" picture includes various objects (IO fields).
Next to point "1", for example, two objects are superimposed.
|4||Operation of the configuration
Setting/presetting of summer/winter time
Setting the summer time
Setting the winter time
- You can only use the attached example in connection with the "Audit Function" (regulated project). There is no time change in the "DeltaToUTC" column in the Audit Trail file.
- You must set the controller as time master for setting the time. It you operating the controller as time slave, the time master has to do the summer time / winter time change.
- You can also use the FC60 block (for CPUs without time-of-day status) or FB61 block (for CPUs with time-of-day status) from the "Standard Library" (under "Miscellaneous Blocks" > "Blocks") to do the summer time / winter time change in the CPU without operator action. Information on this is available in the Help for the block concerned.
- You may not use this sample application and a WinCC application simultaneously. A time change via the PLC is not permitted in WinCC. WinCC always uses UTC time.
The attached download contains the archived STEP 7 and WinCC flexible project with the functions described above.
Attachment 1: Summer_Winter_Time_V1_1.zip ( 3584 KB )
GMP, Pharma, Life Science, Validation, FDA 21 CFR Part 11