TS4000
47
5.7 Exception Responses and Exception Codes
5.7.1 Exception Response
In a normal communications query and response, the master device sends a query to the
TS4000. Upon receiving the query, the TS4000 processes the request and returns a response
to the master device. An abnormal communication between the two devices produces one of
four possible events:
1. If the TS4000 does not receive the query due to a communications error, then no
response is returned from the TS4000 and the master device will eventually process a
timeout condition for the query.
2. If the TS4000 receives the query, but detects a communication error (CRC, etc.), then
no response is returned from the TS4000 and the master device will eventually process
a timeout condition for the query.
3. If the TS4000 receives the query without a communications error, but cannot process
the response within the master’s timeout setting, then no response is returned from the
TS4000. The master device eventually processes a timeout condition for the query in
order to prevent this condition from occurring; the maximum response time for the
TS4000 is 200 milliseconds. Therefore, the master’s timeout setting should be set to
200 milliseconds or greater.
4. If the TS4000 receives the query without a communications error, but cannot process it
due to reading or writing to a non-existent TS4000 command register, then the TS4000
returns an exception response message informing the master of the error.
The exception response message has two fields that differentiate it from a normal
response. The first is the function code – byte 2. This code will be 0x83 for a read
exception and 0x86 for a write exception. The second differentiating field is the
exception code – byte 3 – that is described in Section 5.7.2.
In addition, the total exception response length is 5-bytes rather than the normal
message length.
Table 21: Exception Response
Byte
MODBUS
Range
Referenced to TS4000
1st
Slave Address
1-247* (Decimal)
TS4000 ID (Address)
2nd
Function Code
83 or 86 (Hex)
Preset Single Registers
3rd
Exception Code 01 – 06 (Hex)
Appropriate Exception Code (See Below)
4th
CRC Hi
00-FF (Hex)
CRC Hi Byte
5th
CRC Lo
00-FF (Hex)
CRC Lo Byte
* Address 0 is reserved for Broadcast Mode and is not supported at this time.