SAMWONTECH
1st Edition of TEMI2000_Series IM : Dec. 15. 2008 Page 14 / 58
5.7 WRD Command
WRD Command is used to write data in arbitrary single D-Register.
▣
Request Message Frame
Bytes
1
2
3
1
2
1
4
1
4
Frame
STX
Address
WRD
,
Count
Number
,
D-Reg.- 1
,
Data - 1
1
…
1
4
1
4
2
1
1
,
…
,
D-Reg. - n
,
Data - n
SUM
CR
LF
▣
Response Message Frame
Bytes
1
2
3
1
2
2
1
1
Frame
STX
Address
WRD
,
OK
SUM
CR
LF
▪ Count Number : 1 ~ 64
▪ Data : Hexa-decimal 16bit string 4 character with no decimal point
◈
Example
To write 50.0 ℃ into the D0102(TEMP.SP) and 0.5 ℃ into the D0106(TEMP.SLOPE) on FIX mode operation.
- Setting TEMP.SP : 50.0 ℃ → Remove decimal point (500) → Hexadecimalize (0x01F4)
- Setting TEMP.SLOPE : 0.5 ℃ → Remove decimal point (5) → Hexadecimalize (0x0005)
- Request
: [stx]01WRD,02,0102,01F4,0106,0005[cr][lf]
- Request(with CheckSum)
: [stx]01WRD,02,0102,01F4,0106,0005B6[cr][lf]