70 Rockwell Automation Publication 1756-PM020F-EN-P - January 2019
For the controller project file and EtherNet/IP traffic capture files examples
shown here, go to http://www.rockwellautomation.com/enabled/guides.html
.
See also
Example 1 on page 70
Example 2 on page 70
Example 3 on page 71
Example 4 on page 71
Example 5 on page 72
Read the tag struct1 that is a tag of type STRUCT_A. This reads the entire
structure.
Message Request Field Bytes (in hex) Description - Symbolic Segment Addressing
Request Service 4C Read Tag Service (Request)
Request Path Size 05 Request Path is 5 words (10 bytes) long
Request Path 91 07 73 74 72 75 63 74 31 00 ANSI Ext. Symbolic Segment for struct1
Request Data 01 00 Number of elements to read (1)
Message Reply Field Bytes (in hex) Description - Symbolic Segment Addressing
Reply Service CC Read Tag Service (Reply)
Reserved 00
General Status 00 Success
Extended Status Size 00 No extended status
Reply Data A0 02 C1 FA Tag Type for STRUCT_A
03 00 00 00
55 00 00 00
77 00 00 00
33 33 2B 41
limit4 and limit7 members (bits 0 and 1 respectively) (BOOL) = 1,
travel member (DINT) = 0x55 (85 decimal),
errors member (SINT) = 0x77 (119 decimal),
wear member (REAL) = 10.7 decimal
See also
Access User-Defined Structures on page 69
Read the tag struct1.wear.
Message Request Field Bytes (in hex) Description - Symbolic Segment Addressing
Request Service 4C Read Tag Service (Request)
Request Path Size 08 Request Path is 8 words (16 bytes) long
Request Path 91 07 73 74 72 75 63 74 31 00
91 04 77 65 61 72
ANSI Ext. Symbolic Segment for struct1,
ANSI Ext. Symbolic Segment for wear