6-59
BK+(P),BK-(P)
1
2
3
4
4
6
7
8
6.2 Arithmetic Operation Instructions
6.2.13 Block addition and subtraction (BK+(P),BK-(P))
6.2.13 Block addition and subtraction (BK+(P),BK-(P))
BK+(P),BK-(P)
Function
BK+
(1) Adds n points of BIN data from the device designated by and n-points of BIN data from
the device designated by and stores the result from the device designated by onward.
(2) Block addition is performed in 16-bit units.
(3) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).
: Head number of the devices where the data to be added to/subtracted from is stored (BIN 16 bits)
:
Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored
(BIN 16 bits)
:
Head number of the devices where the operation result will be stored (BIN 16 bits)
n:
Number of addition/subtraction data blocks (BIN 16 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
$
Other
Bit Word Bit Word
–– –– –– ––
–– –– ––
–– –– –– ––
n ––
Basic
Process
High
performance
Redundant
Universal
indicates an instruction symbol of BK+, BK- .
BK+, BK-
BK+P, BK-P
Command
Command
S1 S2
D
n
S2 S2
D
n
P
S1
S2
D
S1
S2
D
S1
S2
D
(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
b15 b0
n
+1
+(n 2)
+(n 1)
+2
n
3234
b15 b0
D
D
D
D
S2
(BIN)
(BIN)
(BIN)
5555
8888
(BIN)3087
(BIN)
8321
(BIN)
(BIN)
(BIN)
b15 b0
1234
4567
2000
(BIN)1234
(BIN)
4000
+1
+(n 2)
+
n
(BIN)4321
S1
D
S1
+2
S1
S1
S1
S2
b15 b0
+1
+(n 2)
+(n 1)
+2
(n 1)
n
2321
b15 b0
D
D
D
D