Back to FAQ's
How is the Real Time Clock set in TelePACE Studio?
The real time clock (RTC) is set:
- Manually, by using the Clock dialog,
- Dynamically, by utilizing controller logic (ladder or C/C++) to write to preconfigured RTC registers, and
- Remotely, by TeleBUS (Modbus) protocol messages writing to preconfigured RTC registers.
To manually set the RTC:
- Establish communication with the controller.
- On the Configure tab, select Clock. The following dialog appears:

- In the Clock dialog box, select one of the three following options in the Set Date & Time Field:
- Set To PC Time
- Set to User Entered Time
- Adjust Forward or Backward
- For each option, enter any required information in the Clock configuration fields and the select the Write to Controller Icon.
To dynamically set the RTC:
- Establish communication with the controller.
- Add the CNFG Real Time Clock and Alarm module to the controller’s existing register assignment. This module reserves eleven IO database registers for use by the RTC. See the diagram below.

- Add ladder logic functions (PUTU, MOVE etc), or C/C++ code to write valid values to the individual RTC registers as defined by the register assignment module. Refer to the TelePACE User and Reference Manual, (Ladder Logic Register Assignment Reference / Register Assignment Reference / Configuration IO Modules / CNFG Real Time Clock and Alarm section) for individual register assignments. Note: The logic must be programmed to write to the registers on a one-shot basis. Do not write to these registers continually as the RTC will not function properly.
- Write the program, including the register assignment, to the controller.
- Run the code.
To remotely set the RTC:
- Establish communication with the controller.
- Add the CNFG Real Time Clock and Alarm module to the controller’s existing register assignment as previously explained.
- Write the register assignment to the controller.
- Using external devices that support Modbus protocol, write valid values to the individual RTC registers as defined by the register assignment module. Do not write to these registers continually as the RTC will not function properly.