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. LD# instruction compares the content in S 1 and S 2 . If the result is not “0”, the instruction will be ON. If the result 4. LD# can be connected directly with bus. is “0”, instruction will be OFF. 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 (DLD#).

If 16-bit instruction (LD#) is adopted, “program error” will occur, and the ERROR LED indicator on the panel of DVP-PM will flash. Program Example: 1. When the result of logical AND operation of C0 and C10 ≠ 0, Y10 will be ON. 2. When the result of logical OR operation of D200 and D300 ≠ 0 and X1 = ON, Y11 will be ON and held. 3. When the result of logical XOR operation of C201 and C200 ≠ 0 or M2 = ON, M50 will be ON.

Y10 X1 M50 M3 DVP-PM Operation Instruction 5-126 API Mnemonic Operands Function Controllers 215~ D LD# Contact Logical Operation LD# 20PM 10PM 217 Mnemonic Operands Function Contact Logical Operation LD# Controllers 20PM 10PM D LD# Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D V Z LD#: 5 steps DLD#: 7 steps S 1 * * * * * * * * * * * D S 2 * * * * * * * * * * * 16-bit 32-bit instruction API No. “ON” condition “OFF” condition instruction 215 LD& DLD& S & S ≠0 1 2 S & S = 0 1 2 216 LD| DLD| S | S ≠0 1 2 S | S = 0 1 2 217 LD^ DLD^ S ^ S ≠0 1 2 S ^ S = 0 1 2 LD & C0 C10 LD I D200 D300 SET Y11 DLD^ C201 C200