11: M
ODBUS
C
OMMUNICATION
11-14 S
MART
AXIS P
RO
/L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
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 Master
ACK Reply from Modbus Slave
NAK Reply from Modbus Slave
Communication Example
⢠RTU Mode
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
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 Master 08 05 0808 FF00 (CRC)
ACK Reply from Modbus Slave 08 05 0808 FF00 (CRC)
NAK Reply from Modbus Slave 08 85 xx (CRC)