6: M
ODBUS
C
OMMUNICATION
6-14 FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
Function Code 05 (Force Single Coil)
Function code 05 changes a bit device status of Q (output), R (shift register), or M (internal relay).
Communication Frame
Request from Modbus RTU Master
ACK Reply from Modbus RTU Slave
NAK Reply from Modbus RTU Slave
Communication Example
• Modbus RTU Mode
Purpose
Force internal relay M1320 on.
M1320 → (132 – 0) × 8 + 0 + 1001 = 2057
Modbus address: 2057
2057 – 1 = 2056 = 808h
Communication frame address: 0808h
Condition Slave No. 8
Request from Modbus RTU Master 08 05 0808 FF00 (CRC)
ACK Reply from Modbus RTU Slave 08 05 0808 FF00 (CRC)
NAK Reply from Modbus RTU Slave 08 85 xx (CRC)
Slave No. Function Code Address
OFF: 0000h
ON: FF00h
xxh 05h xxxxh xxxxh
Slave No. Function Code Address
OFF: 0000h
ON: FF00h
xxh 05h xxxxh xxxxh
Slave No. Function Code Error Code
xxh 85h xxh