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

API Mnemonic Operands Function<br />

14 D CML P Compliment<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

Type Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F CML, CMLP: 5 steps<br />

S * * * * * * * * * * * DCML, DCMLP: 9 steps<br />

D * * * * * * * *<br />

PULSE 16-bit 32-bit<br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

Operands:<br />

S: Source of data D: Destination device<br />

Explanations:<br />

1. The instruction reverses the bit pattern (0→1, 1→0) of all the contents in S and sends the<br />

contents to D.<br />

2. If operand S and D use index register F, only 16-bit instruction is available<br />

Program example 1:<br />

When X10 = ON, b0 ~ b3 in D1 will be inverted and sent to Y0 ~ Y3<br />

<strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

X20<br />

CML<br />

D1<br />

K1Y0<br />

b15<br />

D1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0<br />

Symbol bit ( 0=positive, 1=negative)<br />

b3<br />

b2<br />

b1<br />

b0<br />

0 1 0 1<br />

No variation Transfer data<br />

Program example 2:<br />

The diagram below can be substituted by the instruction on the right.<br />

X000<br />

X001<br />

X002<br />

X003<br />

X000<br />

X001<br />

X002<br />

X003<br />

M0<br />

M1<br />

M2<br />

M3<br />

M0<br />

M1<br />

M2<br />

M3<br />

Normally ON contact<br />

M1000<br />

CML K1X0 K1M0<br />

3-67

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

Saved successfully!

Ooh no, something went wrong!