User Manual

65 MODBUS Programmable I/O NA-9379 FnIO S-Series
Copyright(C) CREVIS Co.,Ltd Support +82-31-899-4599 URL : www.crevis.co.kr
A.3.6. 6 (0x06) Write Single Register
This function code is used to write a single holding register in a remote device. Therefore register numbered 1 is
addressed as 0. The normal response is an echo of the request, returned after the register contents have been
written.
Request
Field name
Example
RTU
ASCII
ASCII (bus line)
Start of Frame
-
t1-t2-t3
,
0x3A
Slave Address
0x07
0x07
07
0x30, 0x37
Function Code
0x06
0x06
06
0x30, 0x36
Starting Address Hi
0x08
0x08
08
0x30, 0x38
Starting Address Lo
0x00
0x00
00
0x30, 0x30
Quantity of Outputs Hi
0x11
0x11
11
0x31, 0x31
Quantity of Outputs Lo
0x22
0x22
22
0x32, 0x32
Error Check (CRC/LRC)
-
0x07, 0x85
B8
0x42, 0x38
End of Frame
-
t1-t2-t3
CR, LF
0x0D, 0xA
Response
Field name
Example
RTU
ASCII
ASCII (bus line)
Start of Frame
-
t1-t2-t3
,
0x3A
Slave Address
0x07
0x07
07
0x30, 0x37
Function Code
0x06
0x06
06
0x30, 0x36
Output Address Hi
0x08
0x08
08
0x31, 0x38
Output Address Lo
0x00
0x00
00
0x30, 0x30
Output Value Hi
0x11
0x11
11
0x31, 0x31
Output Value Lo
0x22
0x22
22
0x32, 0x32
Error Check (CRC/LRC)
-
0x07, 0x85
B8
0x42, 0x38
End of Frame
-
t1-t2-t3
CR, LF
0x0D, 0xA
- In case of address 0x0800 outputs register value: 0x0000 changes to 0x1122.