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>SA2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

Program example 3:<br />

1. This instruction can be used to combine the DIP switches connected to the input terminals<br />

without continuous numbers.<br />

2. Move the 2 digits of the right DIP switch (X27~X20) to the 2 digits of D2, and the 1 digit of the<br />

DIP switch (X33~X30) to the 1 st digit of D1.<br />

3. Use SMOV instruction to move the 1 st digit of D1 to the 3 rd digit of D2 and combine the values<br />

from two DIP switches into one set of value.<br />

.<br />

10 2<br />

10 1 10 0<br />

6 4 2<br />

8 8 8<br />

X33~X30<br />

X27~X20<br />

M1001<br />

M1000<br />

PLC<br />

M1168<br />

BIN K2X20 D2<br />

(X20~X27)BCD, 2 digits D2(BIN)<br />

BIN<br />

K1X30<br />

D1<br />

(X30~X33)BCD, 1 digit D1(BIN)<br />

SMOV D1 K1 K1 D2 K3<br />

3-66

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

Saved successfully!

Ooh no, something went wrong!