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 ORZ= and DORZ= 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 ORZ= 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-44 API Instruction code Operand Function 0078-0083 D ORZ※ S1,S2,S3 Comparing contact type absolute values ORZ※ 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 0078 ORZ= DORZ= | S1- S2|=| S3| | S1- S2| ≠ | S3| 0079 ORZ<> DORZ<> | S1- S2|≠| S3| | S1- S2|=| S3| 0080 ORZ> DORZ> | S1- S2|>| S3| | S1- S2| ≦ | S3| 0081 ORZ>= DORZ>= | S1- S2|≧| S3| | S1- S2|<| S3| 0082 ORZ< DORZ< | S1- S2|<| S3| | S1- S2|≧ | S3| 0083 ORZ<= DORZ<= | S1- S2|≦| S3| | S1- S2|>| S3|