Delta DVP-ES3 — 6.1.2 Explanation of Comparison Instructions

DVP-ES3 Series Programming Manual Symbol S 1 : Data source1 S 2 : Data source2 S 3 : Comparison result Taking ANDZ= and DANDZ= for example _6 Explanation 1. These instructions compare the absolute value of the difference between S 1 and S 2 with the absolute value of S 3 . Take the ANDZ= instruction for example. If the comparison result is that the absolute value of the difference between S 1 and S 2 is equal to the absolute value of S 3 , the continuity 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 not equal to the absolute value of S 3 , the discontinuity condition of the instruction is met. 2.

Only the 32-bit instruction can use the 32-bit HC device, but not the device E.

6-42 API Instruction code Operand Function 0072-0077 D ANDZ※ S1,S2,S3 Comparing contact type absolute values ANDZ※ Device X Y M S T C HC D FR SM SR E K 16# “$” F S1          S2          S3          BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1        S2        S3        Pulse Instruction 16-bit instruction 32-bit instruction - ES3 ES3 Continuity Discontinuity API number 16-bit instruction 32-bit instruction condition condition 0072 ANDZ= DANDZ= | S1- S2|=| S3| | S1- S2| ≠ | S3| 0073 ANDZ<> DANDZ<> | S1- S2|≠| S3| | S1- S2|=| S3| 0074 ANDZ> DANDZ> | S1- S2|>| S3| | S1- S2| ≦ | S3| 0075 ANDZ>= DANDZ>= | S1- S2|≧| S3| | S1- S2|<| S3| 0076 ANDZ< DANDZ< | S1- S2|<| S3| | S1- S2|≧ | S3| 0077 ANDZ<= DANDZ<= | S1- S2|≦| S3| | S1- S2|>| S3|