Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions Operands: S 1 : Source data device 1 S 2 : Source data device 2 D : Operation result Explanations: 1. WXOR conducts logical XOR operation of S 1 and S 2 in 16-bit mode and stores the result in D 2. When WXOR is used as 16-bit instruction, Z device cannot be adopted; when WXOR is used as 32-bit instruction, V device cannot be adopted. Program Example 1: in D4. When X0 = ON, the 16-bit data source D0 and D2 are analyzed and the operation result of the logical XOR is stored X0 b15 b0 D0 Before execution WXOR D2 After execution D4 Program Example 2:

When X1 = ON, the 32-bit (D11, D10) and (D21, D20) will perform DWXOR logical XOR operation, and the result will be stored in (D41, D40). X1 DWXOR Before execution b15 b0 b31 D11 D10 DWXOR D21 D20 After execution D41 D40 DVP-PM Application Manual 5-45 API Mnemonic Operands Function Controllers 20PM 10PM 28 D WXOR P Logical Word XOR Type OP X Bit Devices Word Devices Program Steps Y M S K H KnX KnY KnM KnS T C D V Z WXOR, WXORP: 7 steps DWXOR, DWXORP:

9 steps S 1 * * * * * * * * * * * D S 2 * * * * * * * * * * * D * * * * * * * * 0 WXOR D0 D2 D4 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 1 1 1 0 0 0 0 D10 D20 D40 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 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 1 0 1 1 0 1 0 0 1 1 1 0 1 1