Version: 1.06 186
Winter/Summer time
When installed in regions using winter/summer time, the TB
OX
MS is able to manage
automatically the changing.
It means that the RTC and Analog special register [hour] are automatically updated when the
time changes.
B.2. Data logging
Chronologies
In chronologies, the time is recorded for each log of data. The time recorded is the UTC time.
When retrieving the data, the PC reads the UTC time and converts it according to the local time
of the PC, depending on the Time settings of the PC.
When a winter/summer time changing happens, the TB
OX
MS is informed of it and updates
automatically all timestamps following the changing.
Sampling tables
In sampling tables, the TB
OX
MS records the timestamp of the last record only. The other
timestamps are built up when retrieving the data.
A choice had to be made between: either having always the same period of recording or having
always the same 'hour' of recording. The latter has been chosen. When a changing
winter/summer time happens, the target time is automatically updated for sampling tables
having a period > 1 hour.
Example:
If recording a value once a day at 6.00 in the morning, the recording will always happen at
6.00, but when changing from winter to summer, the period will be of 23 hours and when
changing from summer to winter the period will be of 25 hours.
Periodic events
When a periodic event is defined with a period > 1 hour, its target time is automatically
adjusted when a changing winter/summer happens.
B.3. Special registers associated
Some Special Registers of TB
OX
MS are associated to the Time. They can be used in BASIC
programming to execute specific operations:
Type Variable Comment
Analog Second,
Minutes, …
6 Registers giving the time in hour, minute, second, day,
month and year.
Analog UTCUTim Time in UTC format (number of seconds since 1/1/1970 at
Greenwich latitude)
Analog ZonBia Time difference in seconds between the local time and time UTC
Analog Zonid ID of the zone where the RTU is installed. It uses regional
settings of the PC