SAMWONTECH
1th Edition of TEMP2000_Series IM : Dec. 15. 2008 Page 11 / 63
5.4 RSD Command
RSD Command is used to read data in a part of D-Register by consecutive address in sequence.
▣ Request Message Frame
bytes
1
2
3
1
2
1
4
2
1
1
Frame
STX
Address
RSD
,
Count
Number
,
D-Reg.
SUM
CR
LF
▣ Response Message Frame
bytes
1
2
3
1
2
1
4
1
…
Frame
STX
Address
RSD
,
OK
,
Data - 1
,
…
1
4
2
1
1
,
Data - n
SUM
CR
LF
▪ Count Number : 1 ~ 64
▪ Data : Hexa-decimal 16bit string 4 character with no decimal point
◈ Example
To read the D-Register FROM D0001 (NPV) TO D0003 (NSP)
- Request
: [stx]01RSD,03,0001[cr][lf]
- Request (with CheckSum)
: [stx]01RSD,03,0001C6[cr][lf]
([stx] = 0x02, [cr] = 0x0d, [lf] = 0x0a)
Response data will be same as below, when 50.0 of D0001 (NPV) and 30.0 of D0003 (NSP)
- Response
: [stx]01RSD,OK,01F4,0000,012C[cr][lf]
- Response (with CheckSum)
: [stx]01RSD,OK,01F4,0000,012C05[cr][lf]
※
Converting procedure 4digits hexadecimal response to decimal value.
①
Radix conversion (Decimalize) : 01F4(hexadecimal) → 500(decimal)
②
Multiply factor (decimal point) : 500 * 0.1 → 50.0