Real-Time Clock (RTC)
A real-time-clock (RTC) with backup battery is implemented on the BX controller. The clock has a battery.
Setting the real-time clock
The simplest way of setting the clock is via the System Manager. When the ADS communication is operating normally, the current time is displayed on the BX controller. To adjust the time, simply edit the time, and adjust the day, month and year with the drop down key. For setting the year, click on the year display and specify the required year. Repeat the procedure for the month. Once all parameters have been set, click on Update RTC on BX.

![]() | Service life of the battery The service life of the battery may vary depending on utilization. |
Reading the RTC on the BX controller (see example Programming\Library)
The RTC can be read via a function block. Required libraries:
- TcSystemBX.lbx
- TCBaseBX.lbx
Writing the RTC to the BX controller
The RTC can be set via a function block. Required libraries:
- TcSystemBX.lbx
- TCBaseBX.lbx
Reading the RTC via ADS
Description |
Meaning |
Value |
---|---|---|
NETID |
Target device |
see System Manager "ADS" |
Port |
ADS port number |
150dec |
IDXGRP |
IDX group |
0x0000_F100hex |
IDXOFFS |
IDX Offset |
0x0000_0000hex |
Length |
Length of the data |
16 byte |
Variable type |
Type of variable |
TIMESTRUCT |
Writing of the RTC via ADS
Description |
Meaning |
Value |
---|---|---|
NETID |
Target device |
see System Manager "ADS" |
Port |
ADS port number |
150dec |
IDXGRP |
IDX group |
0x0000_F100hex |
IDXOFFS |
IDX Offset |
0x0000_0000hex |
Length |
Length of the data |
16 byte |
Variable type |
Type of variable |
TIMESTRUCT |
Technical data for RTC
Accuracy: approx. 1 second/day
Duration for which the time is stored: approx. 3 months with fully charged battery
Service life of the battery: approx. 10 years for 10 cycles per day (1000 cycles for complete charge/discharge cycles)