Chapter 11 RS485 Communication
11-2-1
11.2 Explanation of Modbus-RTU Function Codes
11.2.1 Read Coil Status [01h]
How to read multiple coil statuses on Modbus communication?
Reads the coil status (ON/OFF).
An example of read the state of input terminals 1 to 7 of the inverter at slave address 1 is shown
below. The status of input terminals 1 to 7 are as follows.
Coil start No. = (Coil No.) - 1
*1. Broadcasting is disabled.
*2. Note that the starting number is 1 less than the actual register number. Specify a number of
"(Register No.) - 1".
*3. If the number of read coils exceeds 0 or 32, an exceptional response of exception code "03 h"
is returned.
*4. Data of the number of data bytes is transferred.
The coil data for the response is from coil number 0007h to 000Dh with coil 0007h as LSBs
(0bit). If the coil data is not in 1byte (8-bit) units, the higher order bit is extended with zeros to
1byte (8-bit) units.