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 FAND= and DFAND= for example Explanation 1. These instructions compare the 32-bit single precision floating point numbers 6_ 2. Compare values in S 1 and S 2 . Take the FAND= 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 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.

6-15 API Instruction code Operand Function 0024-0029 FAND※ S1,S2 Comparing floating-point numbers 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 - - ES3 32-bit Continuity Discontinuity API number instruction condition condition 0024 FAND= S1=S2 S1≠S2 0025 FAND<> S1≠S2 S1=S2 0026 FAND> S1>S2 S1≦S2 0027 FAND>= S1≧S2 S1<S2 0028 FAND< S1<S2 S1≧S2 0029 FAND<= S1≦S2 S1>S2