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. WAND instruction conducts logical AND operation of S 1 and S 2 and stores the result in D 2. When WAND is used as 16-bit instruction, Z device cannot be adopted; when WAND is used as 32-bit instruction, V device cannot be adopted. Program Example 1: When X0 = ON, the 16-bit source D0 and D2 are analyzed and the operation result of the logical AND operation is stored in D4. X0 D4 b15 b0 D0 Before execution 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 D2 0 WAND After execution D4 0 Program Example 2:

When X0 = ON, the 32-bit source (D11, D10) and (D21, D20) are analyzed and the operation result of the logical AND operation is stored in (D41, D40). X1 DWAND D40 b15 b0 b31 D11 D10 Before execution 1 D21 D20 DWAND 0 After execution D41 D40 0 DVP-PM Application Manual 5-43 API Mnemonic Operands Function Controllers 20PM 10PM 26 D WAND P Logical Word AND Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY K nM KnS T C D V Z WAND, WANDP: 7 steps DWAND, DWANDP:

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