SAMWONTECH
1st Edition of TEMI2000_Series IM : Dec. 15. 2008 Page 13 / 58
5.6 WSD Command
WSD command is used to write data to a part of D-Register by consecutive address in sequence.
▣ Request Message Frame
Bytes 1 2 3 1 2 1 4 1 4
Frame STX Address WSD ,
Count
Number
, D-Reg. , Data - 1
1 … 1 4 2 1 1
, … , Data - n SUM CR LF
▣ Response Message Frame
Bytes 1 2 3 1 2 2 1 1
Frame STX Address WSD , OK SUM CR LF
▪ Count Number : 1 ~ 64
▪ Data : Hexa-decimal 16bit string 4 character with no decimal point
◈ Example
To write data to the D-Register FROM D0102 (TEMP.SP) TO D0103 (HUMI.SP) on FIX mode operation
- Setting TEMP.SP : 50.0 ℃ → Remove decimal point(500) → Hexadecimalize (0x01F4)
- Setting HUMI.SP : 80.0 % → Remove decimal point(800) → Hexadecimalize (0x0320)
- Request : [stx]01WSD,02,0102,01F4,0320[cr][lf]
- Request(with CheckSum) : [stx]01WSD,02,0102,01F4,0320C4[cr][lf]