|
DaylightSaving - a Lightweight Function Blocks (FB) to change the PLC Real Time Clock (RTC) forward and backward by 1 hour for daylight saving time (DST) according to rules set in MonthFwd / WeekNoFwd / HourFwd and MonthBack / WeekNoBack / HourBack. This FB will always treat Sunday for DST changes. This accounts for most of Europe and America's.
DaylightSavingWithNTP - a similar FB but provides a local Daylight saving (DLS) Date & Time based on the RTC value and DST rules (same as DaylightSaving FB). Since more common use of NTP/SNTP time servers, please use the DaylightSavingWithNTP FB which supports RTC periodic update. This means that DayLightSavingWithNTP does not write to the RTC value, but provides a local DLS Date & Time output variables. Set the NTP server so that TimeZone is included as NTP writes to RTC as UTC/GMT+TimeZone adjustment value.
For more information about daylight saving in selected country/timezone see...
http://www.timeanddate.com/time/dst/events.html
|