
Chapter 2
CIP Services and User-created Tags
52
Rockwell Automation Publication 1756-PM020F-EN-P - January 2019
The table that follows shows how to read the list of attributes for an instance
of the Template Object associated with the STRUCT_B example.
See also
Example of reading template attributes
This is an example of reading template attributes.
Message Request Field
Bytes (in hex)
Description
Request Service
03
Get Attributes, List Service (Request)
Request Path Size
03
Request Path is 3 words (6 bytes) long
Request Path
20 6C 25 00 E9 02
Logical Segment Class 0x6C, Instance ID 0x02E9
Request Data
04 00
Attribute Count
Request Data
04 00
05 00
02 00
01 00
Attribute List: Attributes 4, 5, 2 and 1 are requested
The response in the table contains a count of the items requested, followed
by a structured response for each item consisting of the attribute ID (16-bits),
status of retrieval (16-bits), and the attribute data (size varies).
Message Reply Field
Bytes (in hex)
Description
Reply Service
83
Get_Attributes_List Service (Reply)
Reserved
00
General Status
00
Success
Extended Status Size
00
No extended status
Reply Data
04 00
Count of Items returned
04 00
00 00
IE 00 00 00
Attribute 4, Template Object Definition Size
Status: 0000 = success
Size of the template definition structure in 32-bit words
05 00
00 00
20 00 00 00
Attribute 5, Template Structure Size
Status: 0000 = success
Number of bytes transferred on the wire when the structure is read using the Read Tag service
02 00
00 00
04 00
Attribute 2, Member Count
Status: 0000 = success
Number of members defined in the structure
01 00
00 00
CD 9E
Attribute 1, Structure Handle
Status: 0000 = success
Calculated CRC value for members of the structure.
The error codes may be returned by the Get_Attribute_List service to the
Template object.
Example of reading template
attributes