FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730 6-15
6: M
ODBUS
C
OMMUNICATION
Function Code 06 (Preset Single Register)
Function code 06 changes word device data of D (data register).
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
Write 8000 to data register D1708.
D1708 → (1708 – 0) + 400001 = 401709
Modbus address: 401709
Extract lower 5 digits → 1709
1709 – 1 = 1708 = 6ACh
Communication frame address: 06ACh
Condition Slave No. 8
Request from Modbus RTU Master 08 06 06AC 1F40 (CRC)
ACK Reply from Modbus RTU Slave 08 06 06AC 1F40 (CRC)
NAK Reply from Modbus RTU Slave 08 86 xx (CRC)
Slave No. Function Code Address New Data
xxh 06h xxxxh xxxxh
Slave No. Function Code Address
Acknowledge
Data
xxh 06h xxxxh xxxxh
Slave No. Function Code Error Code
xxh 86h xxh