![Samwontech TEMP1000 Series Communications Manual Download Page 23](http://html1.mh-extra.com/html/samwontech/temp1000-series/temp1000-series_communications-manual_3799368023.webp)
SAMWONTECH
1th Edition of TEMP1000_Series IM : Apr. 2014 Page 21 / 63
6.4 Function code - 06
Function code-06 is used to write data in arbitrary single D-Register.
▣ Request Message Frame
Factor
ASCII
RTU
Protocol Header
:(Colon)
-
Slave Address
2 characters
8-Bit
Function code-06
2 characters
8-Bit
D-Register Hi
2 characters
8-Bit
D-Register Lo
2 characters
8-Bit
Write Data Hi
2 characters
8-Bit
Write Data Lo
2 characters
8-Bit
Error detecting
2 characters
16-Bit
Protocol Tail
2 characters (CR+LF)
-
◈ Exmaple
Request message to write ‘2’ to D0100 (pattern number) should be
- MODBUS ASCII
:01060063000294[cr][lf]
- MODBUS RTU
010600630002F815
☞
D-Register has to be subtracted ‘1’ from the designated address number on D-Register table in this manual.
▣ Response Message Frame
Factor
ASCII
RTU
Protocol Header
:(Colon)
-
Slave Address
2 characters
8-Bit
Function code-06
2 characters
8-Bit
D-Register Hi
2 characters
8-Bit
D-Register Lo
2 characters
8-Bit
Write Data Hi
2 characters
8-Bit
Write Data Lo
2 characters
8-Bit
Error detecting
2 characters
16-Bit
Protocol Tail
2 characters (CR+LF)
-
◈ Exmaple
Without any trouble, response message will be.
- MODBUS ASCII
:01060063000294[cr][lf]
- MODBUS RTU
010600630002F815