606
9
9 Communication9.4.3 Modbus Parameter Numbers and Data Addressing
c) Parameter number 0x05 (05): Writes a single coil.
Request frame format: slave address + 0x05 + address of the coil + state of the coil + CRC code
No.
Denition of Data
(Byte)
Number of
Bytes
Description
1 Slave address 1 The value ranges from 1 to 247, set by D8121.
2
0x05 (parameter
number)
1 The instruction is to write a single coil.
3 Address of the coil 2
Upper bits are followed by lower bits. See "Coil
addressing".
4 State of the coil 2
Upper bits are followed by lower bits. For
example, FF00 is valid.
5 CRC code 2 Upper bits are followed by lower bits.
Response frame format: slave address + 0x05 + address of the coil + state of the coil + CRC code
No.
Denition of Data
(Byte)
Number of
Bytes
Description
1 Slave address 1 The value ranges from 1 to 247, set by D8121.
2
0x05 (parameter
number)
1 The instruction is to write a single coil.
3
Address of the coil 2 Upper bits are followed by lower bits. See "Coil
addressing".
4
State of the coil 2 Upper bits are followed by lower bits. For
example, FF00 is valid.
5 CRC code 2 Upper bits are followed by lower bits.
Incorrect response: See "g) Incorrect response frame".
d) Parameter number 0x06 (06): Writes a single register.
Request frame format: slave address + 0x06 + address of the register + register value + CRC code
No.
Denition of Data
(Byte)
Number of
Bytes
Description
1 Slave address 1 The value ranges from 1 to 247, set by D8121.
2
0x06 (parameter
number)
1 The instruction is to write a single register.
3
Address of the
register
2
Upper bits are followed by lower bits. See "Register
addressing".
4 Register value 2
Upper bits are followed by lower bits. A non-zero
value. For example, is valid.
5 CRC code 2 Upper bits are followed by lower bits.