Delta DVP-ES3 — 6.9.2 Explanation of Logic Instructions

DVP-ES3 Series Programming Manual Symbol S 1 : Matrix source 1 S 2 : Matrix source 2 D : Operation result _6 n : Length of the array Explanation 1. This instruction applies the logical operator XOR to the n rows of binary representations in S 1 and the n rows of stores the operation result in D . binary representations in of S 2 . It performs the matrix exclusive operation OR on each pair of corresponding bits and 2. The result in each position is 1 if the two bits are different, and 0 if they are the same. 3. The operand n must be between 1–256.

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