![Samwontech TEMI2000 Series Communications Manual Download Page 23](http://html1.mh-extra.com/html/samwontech/temi2000-series/temi2000-series_communications-manual_3790127023.webp)
SAMWONTECH
1st Edition of TEMI2000_Series IM : Dec. 15. 2008 Page 21 / 58
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)
-
◈
Example
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)
-
◈
Example
Without any trouble, response message will be
- MODBUS ASCII
:01060063000294[cr][lf]
- MODBUS RTU
010600630002F815