EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - BIN 16-Bit Data Block Addition and Subtraction Operations

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
256
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
BIN 16-bit data block addition and subtraction operations
BK+(P), BK-(P)
Processing details
BK+
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 to the area starting from the device designated by (D).
Block addition is performed in 16-bit units.
The constant designated by (S2) can be between -32768 and 32767 (BIN 16-bit data).
The following will happen when an underflow or overflow is generated in an operation result: The carry flag (SM700) in this
case does not turn ON.
(S1): Head number of the devices where the data to be added to/subtracted from is stored (BIN 16 bits)
(S2): Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored (BIN 16 bits)
(D): 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 device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)  
(S2)  
(D) 
n 
Basic
Process
High
performance
Redundant
Universal
LCPU
indicates an instruction symbol of BK+, BK- .
BK+, BK-
BK+P, BK-P
Command
Command
S1 S2
D
n
S2 S2
D
n
P
(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
(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
K32767
(7FFF
H
)
K 32767
(8001
H
)
+K
2
+K2
K 32767
K32767
(0002
H
) (8001
H
)
(FFFE
H
) (7FFF
H
)

Table of Contents

Related product manuals