Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions Operands: S 1 : Data source device 1 S 2 : Data source device 2 Explanations: 1. See the specifications of DVP-PM for its range of use. 2. #: &, |, ^ 3. OR# instruction compares the content in S 1 and S 2 . If the result is not “0”, the instruction will be ON. If the result is “0”, instruction will be OFF. 4. OR# is parallel connected to contacts: 5. &: Logical ‘AND’ operation 6. |: Logical ‘OR’ operatioin 7. ^: Logical ‘XOR’ operation 8. When 32-bit counters (C200 ~ C255) are used in this instruction for operation, please adopt 32-bit instruction (DOR#).

If 16-bit instruction (OR#) is adopted, “program error” will occur, and the ERROR LED indicator on the panel of DVP-PM will flash. Program Example: 1. When X1 = ON, or the result of logical AND operation of C0 and C10 ≠ 0, Y0 will be ON 2. M60 will be ON when X2 = ON, M30 = ON, or the result of logical OR operation of 32-bit register D10 (D11) and 32-bit register D20 (D21) ≠ 0, or the result of logical XOR operation of 32-bit register D200 (D201) and 32-bit counter C235 ≠ 0.

DVP-PM Operation Instruction 5-128 API Mnemonic Operands Function Controllers 221~ D OR# Contact Logical operation OR# 20PM 10PM 223 Mnemonic Operands Function Contact Logical operation OR# Controllers 20PM 10PM D OR# Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D V Z OR#: 5 steps DOR#: 7 steps S 1 * * * * * * * * * * * D S 2 * * * * * * * * * * * 16-bit 32-bit instruction API No. “ON” condition “OFF” condition instruction 221 OR& DOR& S & S ≠0 1 2 S & S = 0 1 2 222 OR| DOR| S | S ≠0 1 2 S | S = 0 1 2 223 OR^ DOR^ S ^ S ≠0 1 2 S ^ S = 0 1 2 X1 Y0 OR & C0 C10 X2 M30 M60 DORI D10 D20 DOR ^ C235 D200 DOR ^ C235 D200 OR & C0 C10 DORI D10 D20