
Clock
A clock exposes the device date and time together with time-zone, daylight-saving and clock-quality settings. Other objects use this time for schedules and recorded timestamps.
When to use it
Use it to check a meter clock, correct its time or configure seasonal clock changes.
Attributes
1. Logical name
Identifies this object instance using its six-part OBIS code. Use it to distinguish this object from other instances of the same class.
2. Time
Shows the current device date and time, including the associated deviation and status fields.
3. Time zone
Sets the minutes added to local normal time to obtain UTC, excluding daylight saving. For a normal time zone of UTC+2, the value is -120.
See Deviation in date time below for the relationship between the time zone and daylight-saving adjustment, including the existing device-specific convention notes.
4. Status
Reports clock-quality flags, such as invalid or doubtful time and active daylight saving.
5. Begin
Defines when the daylight-saving period begins.
6. End
Defines when the daylight-saving period ends.
7. Deviation
Defines the daylight-saving adjustment in minutes.
This daylight-saving adjustment is distinct from the normal-time-zone deviation in attribute 3.
8. Enabled
Enables or disables the daylight-saving calculation.
9. Clock base
Identifies the source on which the device clock is based.
Actions
1. Adjust to quarter
Sets the meter’s time to the nearest (+/-) quarter of an hour value.
2. Adjust to measuring period
Sets the meter’s time to the nearest (+/-) starting point of a measuring period.
3. Adjust to minute
Sets the meter’s time to the nearest minute.
4. Adjust to preset time
Adjust to preset time
5. Preset adjusting time.
Preset adjusting time.
6. Shift time
Shifts the time by given minutes.
Deviation in date time
Deviation is saved to date-time value to tell deviation between the UTC and the meter. Deviation is count from time zone and daylight savings deviation. Daylight savings deviation is added only if daylight savings is enabled.
Deviation is causing problems because DLMS standard says the deviation is from normal time to UTC, not UTC time. Read more from Blue Book 4.1.6.1 Date and time formats.
if your meter is using from UTC to Normal time, set GXDLMSClient.UtcTimeZone to true or define DLMS_USE_UTC_TIME_ZONE in ANSI C. Example IDIS is using DLMS way and India, Saudi Arabia and Italy DLMS sub standards are using UTC to Normal time.
Below is example what this means using Paris Time zone (UTC+60).
- DLMS and IDIS: -60 minutes.
- India, Saudi Arabia and Italy: 60 minutes.