![MSA Ultima MOS-5 Instruction Manual Download Page 44](http://html.mh-extra.com/html/msa/ultima-mos-5/ultima-mos-5_instruction-manual_1846250044.webp)
Ultima MOS-5 Detector
36
8.5 Function Codes Supported
Function Code 03 (Read Holding Registers) is used to read status from the slave unit.
Function Code 06 (Preset Single Register) is used to write a command to the slave unit.
8.6 Exception Responses and Exception Codes
8.6.1 Exception
Response
In a normal communications query and response, the master device sends a query to the
Ultima MOS-5 Intelligent Sensor and the Ultima MOS-5 Intelligent Sensor receives the query
without a communications error and handles the query normally within the master device’s
allowable timeout. The Ultima MOS-5 Intelligent Sensor then returns a normal response to
the master. An abnormal communications produces one of four possible events:
•
If the Ultima MOS-5 Intelligent Sensor does not receive the query due to a
communications error, then no response is returned from the Ultima MOS-5 Intelligent
Sensor and the master device eventually processes a timeout condition for the query.
•
If the Ultima MOS-5 Intelligent Sensor receives the query, but detects a communication
error (CRC, etc.), then no response is returned from the Ultima MOS-5 Intelligent
Sensor and the master device eventually processes a timeout condition for the query.
•
If the Ultima MOS-5 Intelligent Sensor receives the query without a communications
error, but cannot process the response to the master within the master’s timeout
setting, then no response is returned from the Ultima MOS-5 Intelligent Sensor. 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 Ultima MOS-
5 Intelligent Sensor is 200 milliseconds. Therefore, the master’s timeout setting should
be set to 200 milliseconds or greater.
•
If the Ultima MOS-5 Intelligent Sensor receives the query without a communications
error, but cannot process it due to reading or writing to a non-existent Ultima MOS-5
Intelligent Sensor command register, then the Ultima MOS-5 Intelligent Sensor returns
an exception response message informing the master of the error.
The exception response message (ref. No. 4 above) has two fields that differentiate it from a
normal response:
Byte
Modbus
Range
Referenced to Ultima MOS-5
Intelligent Sensor
1
st
Slave Address
1-247* (Decimal)
Ultima MOS-5 Intelligent Sensor ID
(Address)
2
nd
Function Code
83 or 86 (Hex)
MSB is set with Function Code
3
rd
Exception Code
01 - 06 (Hex)
Appropriate Exception Code
(See Below)
4
th
CRC Lo
00-FF (Hex)
CRC Lo Byte
5
th
CRC Hi
00-FF (Hex)
CRC Hi Byte