Delta Electronics — 6.1.2 Explanation of Comparison Instructions

Chapter 6 Applied Instructions Symbol S 1 : Data source 1 S 2 : Data source 2 Taking AND= and DAND= Explanation for example 1. These instructions compare the values in S 1 and S 2 . Take the AND= instruction for example. When the comparison 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 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. 2. Only the 32-bit instruction can use the 32-bit counter, but not the device E. Example 1. When X0.0 is ON and the current value in C10 is equal to 100, Y0.10 is ON. 2.

When X0.1 is OFF and the value in D0 is not equal to -10, Y0.11 stays ON. 3. When X0.2 is ON and the value in (D11, D10) is less than 678,493, or when M3 is ON, M50 is ON.

6-9 API Instruction code Operand Function 0006-0011 D AND※ S1,S2 Comparing values AND※ 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 - AS AS 16-bit Continuity Discontinuity API number 32-bit instruction instruction condition condition 0006 AND= DAND= S1=S2 S1≠S2 0007 AND<> DAND<> S1≠S2 S1=S2 0008 AND> DAND> S1>S2 S1≦S2 0009 AND>= DAND>= S1≧S2 S1<S2 0010 AND< DAND< S1<S2 S1≧S2 0011 AND<= DAND<= S1≦S2 S1>S2