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

215~<br />

217<br />

Type<br />

D LD# Contact 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 />

LD#: 5 steps<br />

DLD#: 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 />

Explanations:<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. LD# (#: &, |, ^) instruction is used for direct connection with Left bus bar.<br />

API No.<br />

16 -bit<br />

instruction<br />

32 -bit<br />

instruction<br />

Continuity<br />

condition<br />

Discontinuity<br />

condition<br />

215 LD& DLD& S 1 & S 2 ≠0 S 1 & S 2 =0<br />

216 LD| DLD| S 1 | S 2 ≠0 S 1 | S 2 =0<br />

217 LD^ DLD^ 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 (DLD#). If 16-bit instruction (LD#) is adopted, a “program error” will occur and the<br />

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

Program Example:<br />

1. When the result of logical AND operation between C0 and C10 ≠ 0, Y20 = ON.<br />

2. When the result of logical OR operation between D200 and D300 ≠ 0 and X1 = ON, Y21 = ON<br />

and latched.<br />

LD & C0 C10<br />

Y20<br />

X1<br />

LD | D200 D300 SET Y21<br />

3-468

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

Saved successfully!

Ooh no, something went wrong!