85BExplicit Messaging 12BAppendix D: Example Messages
116
Example 3: Interpreting an Explicit Message Error Response
If the request message sent in Example 1, page 112, is not sent or received properly, the device
returns an error response m
essage. An example of an error response is:
42B 01 94 08 FF
where:
CAN Identifier Field
CAN Data Field
42B
01
94
08
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)
Calculated hex
value:
Calculated hex
value:
Calculated hex
value:
GENERAL
ERROR CODE
FF
ssigned hex
value:
ssigned hex
value:
DDITIONAL
ERROR CODE
Figure 14: Explicit Message Error Response
To interpret the error response message components shown in Figure 14:
1.
Interpret the reported hexadecimal value (42B
hex
) for the CAN Identifier Field.
Refer to Figure 15, step 1, page 117. This 11-bit field represents the fixed Group 2 Message
ID (bits 10 and 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
) for the message header in the CAN Data
Field.
Refer to Figure 15, step 2, page 117. 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 (94
hex
) for the CAN Data Field service code.
Refer to Figure 15, step 3, page 117. 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 Service ID for an
error response is always 14
hex
.
Note
The Class Code, Instance ID, and Attribute ID are not returned in a response
message.
4. Interpret the reported error codes (08 FF).
Refer to Figure 15, step 4, page 117. The first 8-bit value reports the General Error Code,
assigned by ODVA, which reports the type of error. (Refer to [1]
for a complete listing.) The
second 8-bit value reports an additional, Object Class specific error message, particular to
your MKS transducer. If an additional error code is not applicable, an “FF” is returned.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com