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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<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 />

4.5.2 Command Code: 02, Read Status of Contact (Input point X is included)<br />

Example: Read status of contact Y024~Y070 from Slave ID#01<br />

PC→PLC “: 01 02 05 14 00 25 BF CR LF”<br />

Sent message:<br />

Field Name<br />

ASCII<br />

STX :<br />

Slave Address 01<br />

Command code 02<br />

Starting Address Hi 05<br />

Starting Address Lo 14<br />

Number of Points Hi 00<br />

Number of Points Lo 25<br />

Error Check (LRC)<br />

END 1<br />

END 0<br />

BF<br />

0D (Hex)<br />

0A (Hex)<br />

Assume Number of Points in sent message is n (Dec), quotient of n/8 is M and the remainder is N.<br />

When N = 0, Bytes Count in feedback message will be M; when N≠0, Bytes Count will be M+1.<br />

PLC→PC “: 01 01 05 CD 6B B2 0E 1B E5 CR LF”<br />

Feedback message:<br />

Field Name<br />

ASCII<br />

STX :<br />

Slave Address 01<br />

Command code 02<br />

Bytes Count 05<br />

Data (Coils Y033…Y024)<br />

Data (Coils Y043…Y034)<br />

Data (Coils Y053…Y044)<br />

Data (Coils Y063…Y054)<br />

Data (Coils Y070…Y064)<br />

Error Check (LRC)<br />

CD<br />

6B<br />

B2<br />

0E<br />

1B<br />

E5<br />

END 1<br />

END 0<br />

0D (Hex)<br />

0A (Hex)<br />

4-14

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

Saved successfully!

Ooh no, something went wrong!