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

  • 0: Do not update CPU time.

  • 1: Update CPU time.

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):

  • 0: Sunday

  • 1: Monday

  • ...

  • 6: Saturday

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):

  • 0: Sunday

  • 1: Monday

  • ...

  • 6: Saturday

Daylight saving end time

UDINT

Seconds elapsed since midnight

 

Reserved

UDINT[15]

   

2

Network time service status

UDINT

X

  • 1: Idle

  • 2: Operational

3

Link to NTP server status

UDINT

X

  • 1: NTP server cannot be reached.

  • 2: NTP server can be reached.

4

Current NTP server IP address

UDINT

X

 

5

NTP server type

UDINT

X

Corresponds to the server identified in attribute 3:

  • 1: Primary

  • 2: Secondary

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

  • 0: NTP_NO_ERROR

  • 1: NTP_ERROR_CONF_BAD_PARAM

  • 2: NTP_ERROR_CONF_BAS_CONF

  • 3: NTP_ERROR_CREATE_SERVICE

  • 4: NTP_ERROR_WRONG_STATE

  • 5: NTP_ERROR_NO_RESPONSE

B

Current date and time

DATE_AND_TIME

X

{time_of_day UDINT, date UINT} (see CIP specification)

C

Daylight savings status

UDINT

X

  • 1: Daylight savings are enabled and the current date/time is within the applicable period.

  • 2: NTP daylight savings are not enabled or enabled but not within the applicable period.

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