Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions API 232~ 238 Operands: S 1 : Source device 1 S 2 : Source device 2 Explanations: 1. This instruction compares the content in S 1 and S 2 . Take API232 (AND =) for example, if the result is “=”, the continuity of the instruction is enabled. If the result is “≠”, the continuity of the instruction is disabled. 2. ※ : =, >, , ≦ , ≧ 3. AND ※ ( ※ : &, |, ^) instruction is used for serial connection with contacts. 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 panel DVP-PM will flash.. Progran Example: 1. When X0 = ON and the present value in C10 = K200, Y10 = ON. 2. When X1 = OFF and the content in register D10 ≠ K-10, Y11 = ON and latched. 3. When X2 = ON and the content in the 32-bit register D0 (D11) X0 Y10 X1 M50 X2 M3 DVP-PM Operation Instruction 5-130 Mnemonic Operands Function Controllers 20PM 10PM D AND※ Serial Type Comparison Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D V Z AND※: 5 steps DAND※:

7 steps S 1 * * * * * * * * * * * D S 2 * * * * * * * * * * * 16 -bit 32 -bit Continuity Discontinuity API No. instruction instruction condition condition 232 AND= DAND= S =S 1 2 S ≠S 1 2 233 AND> DAND> S >S 1 2 S ≦S 1 2 234 AND< DAND< S <S 1 2 S ≧S 1 2 236 AND<> DAND<> S ≠S 1 2 S =S 1 2 237 AND<= DAND<= S ≦S 1 2 S >S 1 2 238 AND>= DAND>= S ≧S 1 2 S <S 1 2 AND= K200 C10 AND K-10 D0 SET Y11 DAND> K678493 D10