Mitsubishi — Chapter 10 Application Instructions API 202-313

10 Application Instructions API 202-313 Operands: S 1 : Source device 1 S 2 : Source device 2 S 3 : Source device 3 Explanations: 1. EH3 V1.40 and SV2 V1.20 (and above) are supported. 2. The absolute value of the difference between S 1 and S 2 is compared with the absolute value of S 3 . Take ORZ> for example. If the comparison result is that the absolute value of the difference between S 1 and S 2 is greater than the absolute value of S 3 , the condition of the instruction is met. If the comparison result is that the absolute value of the difference between S 1 and S 2 is less than or equal to the absolute value of S 3 , the condition of the instruction is not met. 3.

The instruction ORZ ※ is connected to a contact in parallel. 4. A 32-bit counter (C200~C255) must be used with the 32-bit instruction DORZ ※ . If it is used with the 16-bit instruction ORZ ※ , a program error will occur, and the ERROR LED indicator on the PLC will blink. Program Example: If M0 is On, or the absolute value of the difference between D10 and D11 is greater than K200, Y0 will be On. M0 Y10 DVP-PLC Application Manual 10-35 API Mnemonic Operands Function 308~ 313 D ORZ※ Comparing contact type absolute values ORZ※ Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F ORZ※: 7 steps DORZ※:

13 steps S 1 * * * * * * * * * S 2 * * * * * * * * * S 3 * * * * * * * * * PULSE 16-bit 32-bit ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV EH3 ES EX SS SA SX SC EH SV EH3 SV2 SV2 16-bit 32-bit Comparison result API No. instruction instruction On Off 302 ORZ> DORZ> | S - S | > | S | | 1 2 3 S - S | ≦ | S | 1 2 3 303 ORZ>= DORZ>= | S - S | ≧ | S | | 1 2 3 S - S | 304 ORZ DORZ | S - S | S - S | ≧ | S | 1 2 3 305 ORZ DORZ | S - S | ≦ | S | | 1 2 3 S - S | > | S | 1 2 3 306 ORZ= DORZ= | S - S | = | S | | 1 2 3 S - S | ≠ | S | 1 2 3 307 ORZ DORZ | S - S | ≠ | S | | 1 2 3 S - S | = | S | 1 2 3 ORZ> D10 D11 K200