Delta DVP-ES3 — 6.1.2 Explanation of Comparison Instructions

Chapter 6 Applied Instructions Symbol S 1 : Data source 1 S 2 : Data source 2 Taking OR= and DOR= for example Explanation 1. These instructions compare the values in S 1 and S 2 . Take the OR= instruction for example. When the comparison 6_ comparison result is that the value in S 1 is not equal to that in S 2 , the discontinuity condition of the instruction is met. result is that the value in S 1 is equal to that in S 2 , the continuity condition of the instruction is met. When the 2. Only the 32-bit instruction can use the 32-bit counter, but not the device E. Example 1. When M1 is ON, or when the current value in C10 is equal to 100, M10 is ON. 2.

When both M2 and M30 are ON, or when the value in (D101, D100) is greater than or equal to 1000,000, M60 is ON.

6-11 API Instruction code Operand Function 0012-0017 D OR※ S1,S2 Comparing values OR※ Device X Y M S T C HC D FR SM SR E K 16# “$” F S1          S2          BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1        S2        Pulse Instruction 16-bit instruction 32-bit instruction - ES3 ES3 16-bit 32-bit Continuity Discontinuity API number instruction instruction condition condition 0012 OR= DOR= S1=S2 S1≠S2 0013 OR<> DOR<> S1≠S2 S1=S2 0014 OR> DOR> S1>S2 S1≦S2 0015 OR>= DOR>= S1≧S2 S1<S2 0016 OR< DOR< S1<S2 S1≧S2 0017 OR<= DOR<= S1≦S2 S1>S2