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

API Mnemonic Operands Function<br />

27 DOR P Logical DWord OR<br />

Controllers<br />

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

SE <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 DOR, DORP: 13 steps<br />

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

S 2 * * * * * * * * * *<br />

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

PULSE 16-bit 32-bit<br />

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

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

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

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <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 />

SE<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. Logical double word (32-bit) OR operation.<br />

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

result in D.<br />

3. If operands S 1 , S 2 , D use index F, then only a 16-bit instruction is available.<br />

Program Example:<br />

When X1 is ON, the 32-bit data source (D11, D10) and (D21, D20) are analyzed and the operation<br />

result of the logical OR is stored in (D41, D40).<br />

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

X1<br />

DOR D10 D20 D40<br />

Before<br />

execution<br />

After<br />

execution<br />

b31<br />

b15<br />

b0<br />

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

D11 D10<br />

DOR<br />

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

D21 D20<br />

D41 D40<br />

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

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

3-86

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

Saved successfully!

Ooh no, something went wrong!