This document describes an application example to configure, program and use the RTC (Real-Time Clock) of the controller considering a specific timezone and including the DST (Daylight Saving Time). Further, the RTC of the controller can be synchronized with a time server over the network using the function block FB_SntpClient from the TimeSync library.
In the application example, the FC_CreateDstParam
supports switching limits for daylight saving time which are determined by the number of the Sunday of the selected month. If your application needs to support another rule for the calculation of the switching limits, you need to create your own logic in order to provide the required parameter for the FC_LocalToUtc
and FC_UtcToLocal
.
The application example has been created with, or supported by, the components listed in the table:
Component |
Type and Version |
---|---|
Software |
|
Controller |
|
1) The concepts presented in the application example are, in principle, transferable to other controllers supporting the controller firmware released in conjunction with EcoStruxure Machine Expert V1.1. |