85BExplicit Messaging 12BAppendix D: Example Messages
114
Example 2: Interpreting a Successful Explicit Message Response
If the request message sent in Example 1, page 112, is properly sent and received, the device
returns the following response message:
42B 01 8E 36 00
where:
CAN Identifier Field
CAN Data Field
42B
01
8E
36 00
MESSAGE HEADER
(Frag Bit, XID Bit,
& Dest. MAC ID)
GROUP 2 MESSAGE ID
SOURCE MAC ID
MESSAGE TYPE ID
SERVICE CODE
(Response Bit &
Service ID)
ssigned
data type:
Calculated hex
value:
Calculated hex
value:
Calculated hex
value:
DATA
Figure 12: Successful Explicit Message Response
To interpret the response message components shown in Figure 12:
1.
Interpret the reported hexadecimal value (42B
hex
) of the CAN Identifier Field components.
Refer to Figure 13, step 1, page 115. This 11-bit field represents the fixed Group 2 Message
ID (bits 10 & 9), the source Node Address (the MKS device) as a hexadecimal num
ber (bits 8
to 3), and the fixed Message Type ID for an explicit response (bits 2 to 0).
2. Interpret the reported hexadecimal value (01
hex
) of the message header in the CAN Data
Field.
Refer to Figure 13, step 2, page 115. This 8-bit field represents the fragment bit (bit 7, set to
0), the XID bit (bit 6, set to 0), and the destination Node Address (the Master device) as a
hexadecim
al num
ber (bits 5 to 0).
3. Interpret the reported hexadecimal value (8E
hex
) of the Service Code in the message body of
the CAN Data Field.
Refer to Figure 13, step 3, page 115. This 8-bit field represents the response bit (bit 7, set
to 1), and the assigned Service ID (bits 6 to 0) as a hexadecimal num
ber. The assigned hex value
for the Get_Attribute_Single service is 0E
hex
; the response to this service is always 8E
hex
.
Note
The Class Code, Instance ID, and Attribute ID are not returned in a response
message.
4. Interpret the reported data response (36 00).
Refer to Figure 13, step 4, page 115. The assigned data type for the Vendor ID is an unsigned
16-bit integer value (Table 20, page 53). The assigned Vendor ID for all MKS devices is 36.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com