6 - 46 6 - 46
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
High Performance
QnA Q4AR
Basic
QCPU
PLC CPU
Process CPU
6.2.11 Block addition and subtraction (BK+, BK+P, BK-, BK-P)
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
S1
S2
D
n
[Instruction Symbol] [Execution Condition]
indicates the signs BK+ or BK-
BK+, BK -
BK+P, BK - P
Command
Command
P
S1 S2
D
S1 S2
D
n
n
[Set Data]
Set Data Meaning Data Type
S1
Data to be added to or subtracted from, or head number of device storing
such data
S2
Addition or subtraction data, or head number of device storing addition or
subtraction data
D
Head number of the devices where the operation results are stored
n
Number of addition/subtraction data blocks
BIN 16 bits
[Functions]
BK
+
(1) Adds n-points of BIN data from the device designated by
S1
and n-points of BIN data from the
device designated by
S2
and stores the result from the device designated by
D
onward.
+
(BIN)
(BIN)
(BIN)
5234
5801
(BIN)3766
(BIN)
8321
(BIN)
(BIN)
(BIN)
b15 - - - - - - - b0
1234
4567
-2000
(BIN)-1234
(BIN)
4000
+1
+(n-2)
+(n-1)
n
(BIN)
(BIN)
(BIN)
4000
1234
(BIN)5000
(BIN)
4321
S1
S2
D
S1
+2
S1
S1
S1
+1
+(n-2)
+(n-1)
+2
S2
S2
S2
S2
-1234
n
+1
+(n-2)
+(n-1)
+2
n
-3234
D
D
D
D
b15 - - - - - - - b0 b15 - - - - - - - b0
(2) Block addition is performed in 16-bit units.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com