8-5
Explanation of Each Function Code
8-5-1
Read Coil Status [01 hex]
Reads the coil status (ON/OFF).
Example) Reading Data from Multifunction Input Terminals DI1 to
DI7 of Inverter with Slave Address 1
The status of each multifunction input terminal is as follows.
Item Data
Coil No.
0003
hex
0004
hex
0005
hex
0006
hex
0007
hex
000E
hex
000F
hex
Multifunction input terminal DI1 DI2 DI3 DI4 DI5 DI6 DI7
Coil status ON OFF ON OFF OFF OFF ON
Coil numbers 0008 to 000D hex are a reserved area.
Query
No. Field name Example (hex) Remarks
1
Slave address
*1
01
2 Function code 01
3
Coil start address (MSB)
*2
00
(Coil address) = (Coil number) − 1
4
Coil start address (LSB)
*2
02
5 Number of coils (MSB) 00
6 Number of coils (LSB) 0C
7 CRC-16 (MSB) 9D
8 CRC-16 (LSB) CF
*1. Broadcasting cannot be performed.
*2. Note that the coil start address is 0002 hex, which is 1 less than the coil number 0003 hex: Coil start
address = Coil number - 1.
Response
No. Field name Example (hex) Remarks
1
Slave address
*1
01
2 Function code 01
3 Number of data bytes 02
4
Coil data 1
*2
08
Input terminal
D7, D6
Input terminal
D5 to D1
← 805 hex = 1000 0000 0101
Reserved
5
Coil data 2
*2
05
6 CRC-16 (MSB) 7E
8 Communications Functions
8-11
M1 Series Standard Type User's Manual (I669)
8-5 Explanation of Each Function Code
8
8-5-1 Read Coil Status [01 hex]