Block Logical Products - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Block logical products

BKAND(P)
High
Basic
Process
Redundant Universal
performance
BKAND
BKANDP
*1
(S1)
: Head number of the devices where data on which a logical operation will be conducted is stored (BIN 16 bits)
*1
(S2)
: Data for a logical operation or head number of the devices where the data for the logical operation is stored (BIN 16 bits)
*1
(D)
: 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
Internal device
data
Bit
Word
*1
(S1)
*1
(S2)
*1
(D)
n
*1 The same device number can be specified for (S1) and (D) or (S2) and (D).
Processing details
• 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).
b15
b8
b7
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
S1
+ 1
1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
S1
+ 2
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
S1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
S1
+(n 2)
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
S1
+(n 1)
D
D
+ 1
D
+ 2
+(n 2)
D
D
+ (n 1)
LCPU
Command
Command
R, ZR
J\
Bit
b0
S2
+ 1
S2
S2
+ 2
n
AND
+(n 2)
S2
+(n 1)
S2
b15
b8
b7
b0
0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0
1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
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 0 0 0 0 0
S 1
S2
BKAND
S 1
S2
BKANDP
U\G
Word
b15
b8
b7
b0
0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
n
7 APPLICATION INSTRUCTIONS
D
n
D
n
Zn
Constant
Others
K, H
n
7.1 Logical Operation Instructions
7
361

Advertisement

Table of Contents
loading

Table of Contents