Class ID
405 (hex), 1029 (decimal)
Instance IDs
The SNTP diagnostics list object presents the following instance values:
0: class
1: instance
Attributes
SNTP diagnostics object attributes are associated with each instance.
Instance ID = 0 (class attributes):
Attribute ID |
Description |
GET |
SET |
---|---|---|---|
01 |
Revision: Increased by 1 at each new update of the object |
X |
— |
02 |
Max Instance: Maximum number of instances of the object |
X |
— |
NOTE: All attributes
are required in the implementation.
X = supported — = not supported |
Instance ID = 1 (instance attribute):
Attribute ID (hex) |
Description |
Type |
GET |
SET |
Value |
---|---|---|---|---|---|
01 |
Network Time Service Configuration |
STRUCT of: |
X |
— |
|
Primary NTP server IP address |
UDINT |
||||
Polling period |
USINT |
In seconds |
|||
Update CPU with module time |
USINT |
|
|||
Time zone |
UDINT |
Depends on the operating system of the configuration software. Refer to reference DTM Requirements. |
|||
Time zone offset |
INT |
In minutes |
|||
Daylight saving time bias |
USINT |
||||
Daylight saving start date - month |
USINT |
||||
Daylight saving start date-week, day of week |
USINT |
MSB (4 bits): week number LSB (4 bits):
|
|||
Daylight saving start time |
UDINT |
Seconds elapsed since midnight |
|||
Daylight saving end date - month |
USINT |
||||
Daylight saving end date - week, day of week |
USINT |
MSB (4 bits): week number LSB (4 bits):
|
|||
Daylight saving end time |
UDINT |
Seconds elapsed since midnight |
|||
Reserved |
UDINT[15] |
||||
2 |
Network time service status |
UDINT |
X |
— |
|
3 |
Link to NTP server status |
UDINT |
X |
— |
|
4 |
Current NTP server IP address |
UDINT |
X |
— |
|
5 |
NTP server type |
UDINT |
X |
— |
Corresponds to the server identified in attribute 3:
|
6 |
NTP server time quality |
UDINT |
X |
— |
Current jitter of the clock/time in microseconds/second |
7 |
Number of NTP requests sent |
UDINT |
X |
— |
|
8 |
Number of detected communication detected errors |
UDINT |
X |
— |
|
9 |
Number of NTP responses received |
UDINT |
X |
— |
|
A |
Last detected error |
UINT |
X |
— |
|
B |
Current date and time |
DATE_AND_TIME |
X |
— |
{time_of_day UDINT, date UINT} (see CIP specification) |
C |
Daylight savings status |
UDINT |
X |
— |
|
D |
Time since last update |
DINT |
X |
— |
Amount of time elapsed since a valid response from the NTP server (in 100 ms increments) -1: not updated |
NOTE: All attributes
are required in the implementation.
X = supported — = not supported |
Services
The SNTP diagnostics object support the following services:
Service ID |
Description |
Class |
Instance |
Notes |
|
---|---|---|---|---|---|
hex |
dec |
||||
01 |
01 |
Get_Attributes_All |
Required |
Required |
To gather all attributes into one message |
0E |
14 |
Get_Attribute_Single |
Required |
Required |
To get a single specified attribute |
32 |
50 |
Clear_All |
— |
Required |
Clears data in attributes: 6, 7, 8, 9, 10, 13 |
X = supported — = not supported |