DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming Operands: S 1 : Source data device 1 S 2 : Source data device 2 D : Operation result Explanations: 1. Logical double word (32-bit) XOR operation. 2. This instruction conducts logical XOR operation of S 1 and S 2 in 32-bit mode and stores the result in D 3. If operands S 1 , S 2 , D use index F, only a 16-bit instruction is available. Program Example: When X1 = ON, the 32-bit data source (D11, D10) and (D21, D20) are analyzed and the operation result of the logical XOR is stored in (D41, D40).
X1 b31 b b0 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 b15 Before execution D11 D10 DXOR 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 After execution D21 D20 D41 D40 1 3-88 API Mnemonic Operands Function Logical DWord XOR Controllers 28 DXOR P ES2/EX2 SS2 SA2 SX2 SE Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F DXOR, DXORP: 13 steps S 1 * * * * * * * * * * S 2 * * * * * * * * * * D * * * * * * * PULSE 16-bit 32-bit SS2 SA2 SX2 ES2/EX2 SS SA2 2 SE SX2 SA2 ES2/EX2 ES2/EX2 SS2 SX2 SE SE DXOR D10 D20 D40 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 1 0 1 1 0 1 0 0 1 1 1 0 1 1 1 1 0 1 1 0 1 0 0 1 1 1 0 1 1