DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming API 218~ 220 Operands: S 1 : Source device 1 S 2 : Source device 2 Explanation: 1. This instruction conducts logic operation between the content in S 1 and S 2 . If the result is not “0”, the continuity of the instruction is enabled. If the result is “0”, the continuity of the instruction is disabled. 2. AND# ( #: &, |, ^) instruction is used for serial connection with contacts. 3. Operation: & : Logic “AND” operation, | : Logic “OR” operation, ^ : Logic “XOR” operation 4. When 32-bit counters (C200 ~ C254) are used in this instruction, make sure to adopt 32-bit instruction (DAND#).
If 16-bit instruction (AND#) is adopted, a “program error” will occur and the ERROR indicator on the MPU panel will flash Program Example: 1. When X0 = ON, and the result of logical AND operation between C0 and C10 ≠ 0, Y20 = ON 2. When X1 = OFF, and the result of logical OR operation between D10 and D0 ≠ 0, Y21 = ON and latched Y20 X0 X1 3-500 Mnemonic Operands Function Controllers D AND# Serial Type Logic Operation ES2/EX2 SS2 SA2 SX2 SE Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F AND#: 5 steps DAND#:
9 steps S 1 * * * * * * * * * * * S 2 * * * * * * * * * * * PULSE 16-bit 32-bit ES2/ EX2 SS2 SA2/ SE SX2 ES2/ SA2/ ES2/ SA2/ SS2 SX2 SS2 SX2 EX2 SE EX2 SE 16 -bit 32 -bit Continuity Discontinuity API No. instruction instruction condition condition 218 AND& DAND& S 1 & S 2≠0 S 1 & S 2=0 219 AND| DAND| S 1 | S 2≠0 S 1 | S 2=0 220 AND^ DAND^ S 1 ^ S 2≠0 S 1 ^ S 2=0 AND& C0 C10 AND | D10 D0 SET Y21