9 Communications Functions
9 - 10
High-function General-purpose Inverter RX2 Series User’s Manual
Query
Response
*1. Broadcasting cannot be performed.
*2. Note that the coil start number is 0004, which is 1 less than the coil number 0005.
*3. If the number of coils to be read is set to 0 or more than 32, an error code (03 hex) will be returned.
*4. Data as much as the number of data bytes will be transferred.
Data received to a response shows status of coil No. 0007h to 000Eh (Input terminal 1 to 8).
Therefore, the received data “17 hex = 00010111 binary” can be read from the LSB that shows the sta-
tus of coil number 0007 hex, as follows:
If, in the last coil data, the read coil exceeds the defined coil range, such out-of-range coil data will be
transferred as 0.
If the Read Coil Status function is not executed normally, refer to Exception Response on page 9-18.
No. Field name Example [hex] Remarks
1
Slave address
*1
08
2 Function code 01
3
Coil start number (MSB)
*2
00
(Coil address) = (Coil number) – 1
4
Coil start number (LSB)
*2
04
5
Number of coils (MSB)
*3
00
6
Number of coils (LSB)
*3
06
7 CRC-16 (MSB) 5C
8 CRC-16 (LSB) 90
No. Field name Example [hex] Remarks
1 Slave address 08
2 Function code 01
3 Number of data bytes 01
4
Coil data
*4
17 17 hex = 0 0 0 1 0 1 1 1
Input terminal 6 Input terminal 1
5 CRC-16 (MSB) 12
6 CRC-16 (LSB) 1A
Coil No. 00Fh 00Eh 00Dh 00Ch 00Bh 00Ah 009h 008h 007h 006h 005h
Coil Status OFF OFF OFF OFF OFF OFF ON OFF ON ON ON
Input Terminal No.BA987654321