Delta DVP-ES3 — 6.1.2 Explanation of Comparison Instructions

Chapter 6 Applied Instructions Symbol S1 : Minimum value of the zone comparison S2 : Maximum value of the zone comparison S : Comparison value 6_ D : Comparison result Explanation 1. These instructions compare signed decimal numbers in S and S 1 , and compare the signed decimal numbers in S and S 2 , and stores the comparison results in D . 2. The value in S 1 must be less than that in S 2 . If the value in S 1 is larger than that in S 2 , S 1 is the maximum/minimum value during the execution of the ZCP instruction. 3. The operand D occupies three consecutive devices. The comparison results are stored in D , D +1, and D +2. If the value in S 1 is less than the value in S , D is ON.

If the value in S is greater than the value in S 2 , D +2 is ON. If the value in S is between the values in S 1 and S 2 , D +1 is ON. 4. Only the DZCP and DZCPP instructions can use the 32-bit counter, but not the device E. 6-27 API Instruction code Operand Function 0055 D ZCP P S1,S2,S,D Zone comparison Device X Y M S T C HC D FR SM SR E K 16# “$” F S1          S2          S          D     BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1        S2        S        D  Pulse Instruction 16-bit instruction 32-bit instruction ES3 ES3 ES3