Block Addition And Subtraction (Bk+(P),Bk-(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6.2.13

Block addition and subtraction (BK+(P),BK-(P))

BK+(P),BK-(P)
BK+, BK-
BK+P, BK-P
Setting
Data
S1
S2
D
n
Function
BK+
(1) Adds n points of BIN data from the device designated by
the device designated by
S1
S1
+1
S1
+2
S1
+(n 2)
S1
+(n 1)
(2) Block addition is performed in 16-bit units.
(3) The constant designated by
S1
S1
+1
S1
+2
S1
+(n 2)
S1
+
(n 1)
Command
Command
: 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
S2
(BIN 16 bits)
: 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
R, ZR
Bit
Word
––
––
––
and stores the result from the device designated by
S2
b15
b0
1234
(BIN)
S2
4567
(BIN)
S2
+1
2000
(BIN)
+2
S2
n
1234
(BIN)
S2
+(n 2)
4000
(BIN)
S2
+(n 1)
can be between
S2
b15
b0
1234
(BIN)
4567
(BIN)
2000
(BIN)
S2
n
1234
(BIN)
4000
(BIN)
High
Basic
performance
indicates an instruction symbol of
S1
P
S2
J
\
U
\G
Bit
Word
––
––
––
and n-points of BIN data from
S1
b15
b0
4000
(BIN)
D
1234
(BIN)
D
1234
(BIN)
D
n
5000
(BIN)
D
4321
(BIN)
D
32768 and 32767 (BIN 16-bit data).
D
D
b15
b0
D
4321
(BIN)
D
D
BK+(P),BK-(P)
Process
Redundant Universal
LCPU
BK+, BK- .
n
S2
D
n
D
S2
Constants
Zn
Other
$
––
––
––
––
––
––
onward.
D
b15
b0
5234
(BIN)
5801
(BIN)
+1
3234
(BIN)
+2
n
3766
(BIN)
+(n 2)
8321
(BIN)
+(n 1)
b15
b0
5555
(BIN)
8888
(BIN)
+1
2321
(BIN)
+2
n
3087
(BIN)
+(n 2)
8321
(BIN)
+(n 1)
6-59
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents