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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

218~<br />

220<br />

Type<br />

D AND# Serial 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 />

AND#: 5 steps<br />

DAND#: 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. AND# (#: &, |, ^) instruction is used for serial 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 />

218 AND& DAND& S 1 & S 2 ≠0 S 1 & S 2 =0<br />

219 AND| DAND| S 1 | S 2 ≠0 S 1 | S 2 =0<br />

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

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

Program Example:<br />

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

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

and latched<br />

X0<br />

X1<br />

AND & C0 C10<br />

Y20<br />

AND | D10 D0 SET Y21<br />

3-469

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

Saved successfully!

Ooh no, something went wrong!