5 Categories and Use of Basic Application InstructionsDVP-PM Operation Instruction5-126API Mnemonic Operands Function215~217 D LD# Contact Logical Operation LD#Controllers20PM 10PMBit Devices Word Devices Program StepsTypeOP X Y M S K H KnX KnY KnM KnS T C D V ZS1 * * * * * * * * * * *S2 * * * * * * * * * * *LD#: 5 stepsDLD#: 7 stepsOperands:S1: Data source device 1 S2: Data source device 2Explanations:1. See the specifications of DVP-PM for its range of use.2. #: &, |, ^3. LD# instruction compares the content in S1 and S2. If the result is not “0”, the instruction will be ON. If the resultis “0”, instruction will be OFF.4. LD# can be connected directly with bus.API No. 16-bitinstruction32-bitinstruction “ON” condition “OFF” condition215 LD& DLD& S1 & S2 ≠ 0 S1 & S2 = 0216 LD| DLD| S1 | S2 ≠ 0 S1 | S2 = 0217 LD^ DLD^ S1 ^ S2 ≠ 0 S1 ^ S2 = 05. &: Logical ‘AND’ operation6. |: Logical ‘OR’ operatioin7. ^: Logical ‘XOR’ operation8. 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 thepanel 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.M3DLD C201 C200 M50LD C0 C10LD D200 D300 SETX1&^I Y11Y10