Overview

Short Description

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.

System Requirements and Limitations

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

  • EcoStruxure Machine Expert V1.1

Controller

  • Modicon M241 Logic Controller1)

  • Modicon M251 Logic Controller

  • Modicon M258 Logic Controller1)

  • Modicon LMC058 Motion Controller1)

  • PacDrive LMC 1xx / 2xx1)

  • PacDrive LMX 300 / 4xx/ 600 / 802C1)

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.