Mitsubishi — Chapter 10 Application Instructions API 202-313

10 Application Instructions API 202-313 API D 302~ 307 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 ANDZ> 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 ANDZ ※ is connected to a contact in series. 4. A 32-bit counter (C200~C255) must be used with the 32-bit instruction DANDZ ※ . If it is used with the 16-bit instruction ANDZ ※ , a program error will occur, and the ERROR LED indicator on the PLC will blink. Program Example: If M0 is On, and 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.

M0 DVP-PLC Application Manual 10-34 Operands Function ANDZ※ Comparing contact type absolute values ANDZ※ Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F ANDZ※: 7 steps DANDZ※: 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 ANDZ> DANDZ> | S - S | > | S | | 1 2 3 S - S | ≦ | S | 1 2 3 303 ANDZ>= DANDZ>= | S - S | ≧ | S | | 1 2 3 S - S | 304 ANDZ DANDZ | S - S | S - S | ≧ | S | 1 2 3 305 ANDZ DANDZ | S - S | ≦ | S | | 1 2 3 S - S | > | S | 1 2 3 306 ANDZ= DANDZ= | S - S | = | S | | 1 2 3 S - S | ≠ | S | 1 2 3 307 ANDZ DANDZ | S - S | ≠ | S | | 1 2 3 S - S | = | S | 1 2 3 ANDZ> D10 D11 K200 Y10