17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

LRC checksum: 01 H + 03 H + 07 H + 08 H + 00 H + 06 H = 19 H. Operate 2’s complement on 19H<br />

and the result is E7H. Store ‘E’(45 H) in the low byte of D113 and ‘7’ (37 H) in the low byte of D114.<br />

Remarks:<br />

ASCII mode communication data:<br />

STX ‘: ’ Start word = ‘: ’ (3AH)<br />

Address Hi ‘ 0 ’ Communication:<br />

Address Lo ‘ 1 ’ 8-bit address consists of 2 ASCll codes<br />

Function Hi ‘ 0 ’ Function code:<br />

Function Lo ‘ 3 ’ 8-bit function consists of 2 ASCll codes<br />

DATA (n-1)<br />

…….<br />

DATA 0<br />

‘ 2 ’<br />

‘ 1 ’<br />

‘ 0 ’<br />

Data content:<br />

n × 8-bit data consists of 2n ASCll<br />

codes<br />

‘ 2 ’<br />

‘ 0 ’<br />

‘ 0 ’<br />

‘ 0 ’<br />

‘ 2 ’<br />

LRC CHK Hi ‘ D ’ LRC checksum:<br />

LRC CHK Lo ‘ 7 ’<br />

END Hi CR<br />

END Lo LF<br />

8-bit checksum consists of 2 ASCll codes<br />

End word:<br />

END Hi = CR (0DH), END Lo = LF(0AH)<br />

LRC checksum: Operate 2’s complement on the summed up value from communication address<br />

to the end of data, i.e. 01 H + 03 H + 21 H + 02 H + 00 H + 02 H = 29 H, the operation result of 29H<br />

is D7H.<br />

3-292

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!