356
7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
Logical products with 16-bit data, logical products with 32-bit
data
WAND(P), DAND(P) [When two data are set]
■WAND
• A logical product operation is conducted for each bit of the 16-bit data of the device designated at (D) and the 16-bit data of
the device designated at (S), and the results are stored in the device designated at (D).
• For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
■DAND
• Conducts a logical product operation on each bit of the 32-bit data for the device designated by (S1) and the 32-bit data for
the device designated by (S2), and stores the results at the device designated by (D).
• For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
(S): Data for a logical product operation or the head number of the devices where the data is stored (BIN 16/32 bits)
(D): Head number of the devices where the logical product operation result will be stored (BIN 16/32 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S)
(D)
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
P
S
D
S
D
WAND,DAND
WANDP,DANDP
indicates an instruction symbol of WAND/DAND.
0001 001 000110 1 00
0001 001 0000001 00
b15 b8 b0b7
b0b7b15 b8
AND
1111111100001111
b0b7b15 b8
D
S
D
+ 1
0 1 0 11001 0 1 0001
b0b15b31b16
AND
+ 1
1111 110011 0011
b0b15b31b16
0
1
0
11
0000
1
000
1
b31b16 b0b15
+ 1
D
S
D
D
D
S
D
D
S