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.

3. Instruction Set<br />

Program example 2:<br />

Assume the bit devices KnX, KnY, KnM and KnS are designated for moving, the number of digits<br />

of S and D has to be the same, i.e. their n has to be the same.<br />

M1000<br />

BMOV K1M0 K1Y0 K3 M0<br />

M1<br />

M2<br />

M3<br />

Y0<br />

Y1<br />

Y2<br />

Y3<br />

M4<br />

M5<br />

M6<br />

M7<br />

Y4<br />

Y5<br />

Y6<br />

Y7<br />

n=3<br />

M8<br />

M9<br />

M10<br />

M11<br />

Y10<br />

Y11<br />

Y12<br />

Y13<br />

Program example 3:<br />

The BMOV instruction will operate differently, automatically, to prevent errors when S and D<br />

coincide.<br />

1. When S > D, the BMOV instruction is processed in the order 1→2→3.<br />

X20<br />

1<br />

BMOV D20 D19 K3 D20 D19<br />

2<br />

D21 D20<br />

3<br />

D22 D21<br />

3-69

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

Saved successfully!

Ooh no, something went wrong!