Delta DVP-ES3 — 6.9.2 Explanation of Logic Instructions

Chapter 6 Applied Instructions 6.9.2 Explanation of Logic Instructions Symbol S 1 : Data source 1 S 2 : Data source 2 D : Operation result 6_ Explanation 1. This instruction applies the logical operator AND to the binary representations in S 1 and S 2 It performs the logical AND operation on each pair of corresponding bits and stores the result in D . 2. Only the DAND instruction can use the 32-bit counter. 3. The result in each position is 1 if the first bit is 1 and the second bit is 1; otherwise, the result is 0.

6-233 API Instruction code Operand Function 0800 D WAND P S1, S2, D Logical AND operation Device X Y M S T C HC D FR SM SR E K 16# “$” F S1          S2          D       BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1      S2      D      Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 ES3