Dpi time object, Class code, Services – Rockwell Automation 20-COMM-D DeviceNet Adapter Series B FRN 2.xxx User Manual
Page 216: Instances, Class attributes, Instance attributes, C-22

C-22
DeviceNet Objects
20-COMM-D DeviceNet Adapter User Manual
Publication 20COMM-UM002G-EN-P
DPI Time Object
Class Code
Services
Instances
The number of instances depends on the number of timers in the device.
Instance 1 is always reserved for a real-time clock although a device may not
support it. The total number of timers can be read in Instance 0, Attribute 2.
Class Attributes
Instance Attributes
Hexadecimal Decimal
0x9B
155
Service Code Implemented for:
Service Name
Class
Instance
0x0E
Yes
Yes
Get_Attribute_Single
0x10
Yes
Yes
Set_Attribute_Single
Instances (Hex.) (Dec.)
Device
Example Description
0x0000…0x3FFF 0…16383
Host
0
Class Attributes (Drive)
0x4000…0x43FF 16384…17407 Adapter
1
Real Time Clock (Predefined)
(not always supported)
0x4400…0x47FF 17408…18431 DPI Port 1
2
Timer 1
0x4800…0x4BFF 18432…19455 DPI Port 2
3
Timer 2
0x4C00…0x4FFF 19456…20479 DPI Port 3
…
…
0x5000…0x53FF 20480…21503 DPI Port 4
0x5400…0x57FF 21504…22527 DPI Port 5
0x5800…0x5BFF 22528…23551 DPI Port 6
Attribute ID Access Rule Name
Data Type Description
1
Get
Class Revision
WORD
Revision of object
2
Get
Number of Instances
WORD
Number of timers in the object, excluding the real-time clock that is predefined.
3
Get
First Device Specific Timer WORD
Instance of the first timer that is not predefined.
4
Set
Time Command Write
BYTE
0 = No Operation
1 = Clear all timers (Does not clear the real-time clock or read only timers)
Attribute ID Access Rule Name
Data Type
Description
0
Get
Read Full
STRUCT of:
STRING[16]
LWORD or
STRUCT
BOOL[16]
Name of the timer
Elapsed time in milliseconds unless timer
is a real-time clock (see attribute 2)
See Attribute 3
1
Get
Timer Text
STRING[16]
Name of the timer
2
Get/Set
Timer Value
LWORD
-or-
STRUCT of:
WORD
BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
Elapsed time in milliseconds unless the
timer is a real-time clock.
Real-Time Clock Data:
Milliseconds (0…999)
Seconds (0…59)
Minutes (0…59)
Hours (0…23)
Days (1…31)
Months (1 = January, 12 = December)
Years (since 1972)
3
Get
Timer Descriptor
BOOL[16]
BOOL[0]: (0 = invalid data, 1 = valid data)
BOOL[1]: (0 = elapsed time, 1 = real time)
BOOL[2…15]: Not used