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

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS

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

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents