Delta DVP-ES3 — 6.9.2 Explanation of Logic Instructions

DVP-ES3 Series Programming Manual Symbol S 1 : Data source 1 S 2 : Data source 2 D : Operation result _6 Explanation 1. This instruction applies the logical operator XOR to the binary representations in S 1 and S 2 . It performs the logical exclusive operation OR on each pair of corresponding bits, and stores the operation result in D . 2. Only the DXOR instruction can use the 32-bit counter, but not the device E. 3. The result in each position is 1 if the two bits are different, and 0 if they are the same. Example 1 When M0 is ON, the instruction performs the exclusive operation OR on each pair of corresponding bits in the 16-bit device D0 and the 16-bit device D2.

It stores the operation result in D4. 6-242 API Instruction code Operand Function 0804 D WXOR P S1, S2, D Logical exclusive OR 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