Bin 16-Bit Data Block Addition And Subtraction Operations - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

BK+, BK+P, BK-, BK-P
6.2.13
BK+, BK+P, BK-, BK-P BIN 16-bit data block addition and subtraction operations
6.2.13
BK+, BK+P, BK-, BK-P
BK+, BK-
BK+P, BK-P
: Head number of the devices where the data to be added to/subtracted from is stored (BIN 16 bits)
S1
: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored (BIN 16 bits)
S2
: Head number of the devices where the operation result will be stored (BIN 16 bits)
D
n
: Number of addition/subtraction data blocks (BIN 16 bits)
Internal Devices
Setting
Data
Bit
Word
––
S1
––
S2
––
D
n
Function
BK+
(1) Adds n points of BIN data from the device designated by
and stores the result from the device designated by
b15
b0
1234
(BIN)
S1
4567
(BIN)
S1
+1
2000
(BIN)
S1
+2
1234
(BIN)
S1
+(n 2)
4000
(BIN)
S1
+(n 1)
(2) Block addition is performed in 16-bit units.
(3) The constant designated by
b15
b0
1234
(BIN)
S1
4567
(BIN)
S1
+1
2000
(BIN)
S1
+2
1234
(BIN)
S1
+(n 2)
4000
(BIN)
S1
+
(n 1)
(4) The following will happen when an underflow or overflow is generated in an operation result:
The carry flag in this case does not go ON.
K32767
+K2
(7FFF
)
(0002
)
H
H
K 32767
+K 2
(8001
)
(FFFE
)
H
H
220
Command
Command
J
\
R, ZR
Bit
D
b15
4000
(BIN)
S2
1234
(BIN)
S2
+1
1234
(BIN)
S2
+2
n
5000
(BIN)
S2
+(n 2)
S2
4321
(BIN)
+(n 1)
can be between
32768 and 32767 (BIN 16-bit data).
S2
b15
4321
(BIN)
S2
n
K 32767
(8001
)
H
K32767
(7FFF
)
H
High
Basic
performance
indicates an instruction symbol of
S1
P
S2
U
\G
Word
––
––
––
and n-points of BIN data from the device designated by
S1
onward.
b0
b15
5234
D
5801
D
+1
3234
D
+2
n
3766
D
+(n 2)
8321
D
+(n 1)
b15
5555
D
8888
D
+1
b0
2321
D
+2
3087
D
+(n 2)
8321
D
+(n 1)
Process
Redundant Universal
LCPU
BK+, BK- .
n
S2
D
n
S2
D
Constants
Zn
Other
K, H
––
––
––
––
––
––
b0
(BIN)
(BIN)
(BIN)
n
(BIN)
(BIN)
b0
(BIN)
(BIN)
(BIN)
n
(BIN)
(BIN)
S2

Advertisement

Table of Contents
loading

Table of Contents