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

API Mnemonic Operands Function<br />

221~<br />

223<br />

Type<br />

D OR# Parallel Type Logic <strong>Operation</strong><br />

Controllers<br />

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

SE<br />

Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F<br />

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

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

Operands:<br />

S 1 : Source device 1 S 2 : Source device 2<br />

OR#: 5 steps<br />

DOR#: 9 steps<br />

PULSE 16-bit 32-bit<br />

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

<strong>SA2</strong><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 SE SE <strong>SX2</strong><br />

Explanation:<br />

1. This instruction conducts logic operation between the content in S 1 and S 2 . If the result is not<br />

“0”, the continuity of the instruction is enabled. If the result is “0”, the continuity of the<br />

instruction is disabled.<br />

2. OR# (#: &, |, ^) instruction is used for parallel connection with contacts.<br />

API No.<br />

16 -bit<br />

instruction<br />

32 -bit<br />

instruction<br />

Continuity<br />

condition<br />

Discontinuity<br />

condition<br />

221 OR& DOR& S 1 & S 2 ≠0 S 1 & S 2 =0<br />

222 OR| DOR| S 1 | S 2 ≠0 S 1 | S 2 =0<br />

223 OR^ DOR^ S 1 ^ S 2 ≠0 S 1 ^ S 2 =0<br />

3. <strong>Operation</strong>:<br />

& : Logic “AND” operation, | : Logic “OR” operation, ^ : Logic “XOR” operation<br />

4. When 32-bit counters (C200 ~ C254) are used in this instruction, make sure to adopt 32-bit<br />

instruction (DOR#). If 16-bit instruction (OR#) is adopted, a “program error” will occur and the<br />

ERROR indicator on the MPU panel will flash<br />

Program Example:<br />

M60 will be ON either when both X2 and M30 are “ON”, or 1: the result of logical OR operation<br />

between D10 and D20 ≠ 0, or 2: the result of logical XOR operation between CD100 and D200 ≠ 0.<br />

X2<br />

M30<br />

OR | D10 D20<br />

M60<br />

OR ^ D100 D200<br />

3-470

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

Saved successfully!

Ooh no, something went wrong!