7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
361
7
Block logical products
BKAND(P)
*1 The same device number can be specified for (S1) and (D) or (S2) and (D).
• Performs a logical product operation on the data located in the n points from the device designated by (S1), and the data
located in the n points from the device designated by (S2), and stores the results into the area starting from the device
designated by (D).
(S1)
*1
: Head number of the devices where data on which a logical operation will be conducted is stored (BIN 16 bits)
(S2)
*1
: Data for a logical operation or head number of the devices where the data for the logical operation is stored (BIN 16 bits)
(D)
*1
: Head number of the devices where the operation result will be stored (BIN 16 bits)
n: Number of operation data blocks (BIN 16 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)
*1
(S2)
*1
(D)
*1
n
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
BKANDP
n
n
BKAND
BKAND
BKANDP
D
S1
S2
D
S2
S1
AND
b15
b8
0
0
1 1
0 0
1 1
0 0
1 1
0
0
1 1
b7
b0
1 1 1 1
0 0 0 0 0 0 0 0
1
1 1 1
0 0 0 0 0 0 0 0
1 1 1 111 1 1
+ 1
+ 2
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1 1 1 1
0 0 0 0
1 1 1 1
0
0 0 0
n
b15 b8
0
0
1 1
0 0 0 0 0 0
1 1
0
0 0 0
b7 b0
1 1 1 1
0 0 0 0 0 0 0 000 0 0
0 0 0 0 0 0 0 0 1 1 1 111 1 1
+ 1
+ 2
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1 1 1 1 0 0 0 0 0 0 0 000 0 0
n
b15 b8
0
0
1 1 1 1
0 0 0 0
1 111
0 0
b7 b0
1 1 1 1 1 1 1 1
0 0 0 000 0 0
0 0 0 0 1 1 1 1 1 1 1 111 1 1
+ 1
+ 2
1 1 1 1 1 1 1 1 1 1 1 111 1 1
1 1 1 1 1 1 1 1
0 0 0 000 0 0
+(n
1)
+(n
2)
n
+(n
1)
+(n
2)
+ (n
1)
+(n
2)
D
S1
S2
S2
S2
S2
S2
S1
S1
S1
S1
D
D
D
D