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 LDZ> for example. If the comparison result is that the absolute value of the difference between S 1 and S 2 is greater 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 than the absolute value of S 3 , the condition of the instruction is met. If the comparison result is that the absolute instruction is not met. 3.

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

7 steps DLDZ※: 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 296 LDZ> DLDZ> | S - S | > | S | 1 2 3 | S - S | ≦ | S | 1 2 3 297 LDZ>= DLDZ>= | S - S | ≧ | S | 1 2 3 | S - S | 298 LDZ DLDZ | S - S | | S - S | ≧ | S | 1 2 3 299 LDZ DLDZ | S - S | ≦ | S | 1 2 3 | S - S | > | S | 1 2 3 300 LDZ= DLDZ= | S - S | = | S | 1 2 3 | S - S | ≠ | S | 1 2 3 301 LDZ DLDZ | S - S | ≠ | S | 1 2 3 | S - S | = | S | 1 2 3 LDZ> D10 D11 K200