Chapter 4 Explanation of Functions
4-133
(4) Explanation of function codes
(i) Reading the coil status [01h]
This function reads the coil status (on or off).
(Example)
When reading the status of the intelligent input terminals [1] to [6] of the inverter at slave address "8":
Assume that the intelligent input terminals are in the status as shown below.
Intelligent input terminal
The data received in the response indicates the status of coils 7 to 14. Read the received data (17h = 00010111b) as
shown below. The least-significant bit indicates the status of coil 7.
If the query has specified the reading of an undefined coil, the data on the said coil is represented by "0" in the
response.
If the function to read the coil status cannot be executed normally, the inverter will return an exception response. For
details, see Item (viii), "Exception response."
Sample setting
(hexadecimal)
Starting coil number
(upper digit) (*2)
Starting coil number
(lower digit) (*2)
Number of coils (upper digit) (*3)
Number of coils (lower digit) (*3)
CRC-16 code (upper digit)
CRC-16 code (lower digit)
*1 This query cannot be broadcasted.
*2 Note that the starting coil number is 1 less than the actual
coil number of the coil to be read first.
*3 If 0 or a value more than 32 is specified as the number of
coils to be read, the inverter will respond with error code
"03h".
Sample setting
(hexadecimal)
CRC-16 code (upper digit)
CRC-16 code (lower digit)
*4 The data as many as the specified number of data bytes is
transferred.