8 - 11
8 Communications Functions
High-function General-purpose Inverter 3G3RX-V1 User’s Manual (I578-E1)
8-3 Explanation of Each Function Code
8
Query
Response
*1 Broadcasting cannot be performed.
*2 Note that the coil start number is 0006, which is 1 less than the coil number 0007.
*3 If the number of coils to be read is set to 0 or more than 32, an error code (3 hex) will be returned.
*4 Data as much as the number of data bytes will be transferred.
The data received in a response shows the status for coil numbers 0007 hex to 000E hex (multi-function
input terminal S1 to S8).
Therefore, the received data “17 hex = 00010111 binary” can be read from the LSB that shows the
status 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 the “Exception Response” section.
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
06
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 S6 Input terminal S1
5 CRC-16 (MSB) 12
6 CRC-16 (LSB) 1A
Coil No.
000E hex 000D hex 000C hex 000B hex 000A hex
0009 hex 0008 hex 0007 hex
Coil status OFF OFF OFF ON OFF ON ON ON
Multi-function input
terminal
S8 S7 S6 S5 S4 S3 S2 S1