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

27 WOR P Logical Word OR<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 WOR, WORP: 7 steps<br />

S 1 * * * * * * * * * * *<br />

S 2 * * * * * * * * * * *<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 1 : Source data device 1 S 2 : Source data device 2 D: <strong>Operation</strong> result<br />

Explanations:<br />

1. This instruction conducts logical OR operation of S 1 and S 2 in 16-bit mode and stores the<br />

result in D.<br />

2. For 32-bit operation please refer to DOR instruction.<br />

Program Example:<br />

When X0 = ON, the 16-bit data source D0 and D2 are analyzed and the result of the logical OR is<br />

stored in D4.<br />

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

SE<br />

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

X0<br />

WOR D0 D2 D4<br />

Before<br />

execution<br />

D0<br />

D2<br />

b15<br />

b00<br />

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

WOR<br />

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

After<br />

execution D4 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1<br />

3-85

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

Saved successfully!

Ooh no, something went wrong!