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

Table of Contents

Advertisement

DBK+, DBK+P, DBK-, DBK-P
Program Example
(1) The following program adds, when X20 is turned ON, the data stored at D100 to D103 to the data stored at R0 to R3 and
stores the operation result into the area starting from D200.
[Ladder Mode]
[Operation]
b15
b0
D100
6789
(BIN)
D101
7821
(BIN)
D102
5432
(BIN)
D103
3520
(BIN)
D0
4
(2) The following program subtracts, when X1C is turned ON, the constant 8765 from the data at D100 to D102 and stores
the operation result into the area starting from R0.
[Ladder Mode]
[Operation]
b15
b0
D100
12345
(BIN)
D101
8701
(BIN)
D102
3502
(BIN)
6.2.14
DBK+, DBK+P, DBK-,

BIN 32-bit data block addition and subtraction operations

DBK-P
6.2.14
DBK+, DBK+P, DBK-, DBK-P
DBK+,DBK-
DBKP+,DBK-P
: Head number of the devices where the data to be added and subtracted are stored (BIN 32 bits)
S1
: Addition and subtraction data or head number of the devices where the addition and subtraction data are stored (BIN 32 bits)
S2
: Head number of the devices where the addition and subtraction operation result will be stored (BIN 32 bits)
D
n
: Number of addition and subtraction data blocks (BIN 16 bits)
Internal Devices
Setting
Data
Bit
Word
––
S1
––
S2
––
D
n
––
222
[List Mode]
Step
Instruction
b15
b0
R0
1234 (BIN)
R1
2032 (BIN)
R2
3252 (BIN)
R3
1000 (BIN)
[List Mode]
Instruction
Step
b15
b0
8765
(BIN)
Command
Command
J
\
R, ZR
Bit
Word
Device
b15
b0
D200
8023
(BIN)
D201 9853
(BIN)
D202
2180
(BIN)
D203
2520
(BIN)
Device
b15
b0
R0
3580 (BIN)
R1
64 (BIN)
R2
5263 (BIN)
High
Basic
Process
performance
• QnU(D)(H)CPU, QnUDE(H)CPU: The serial number (first five
digits) is "10102" or later.
indicates an instruction symbol of
DBK+, DBK- .
S1
S2
D
P
S1
S2
D
Zn
U
\G
––
––
––
Ver.
Redundant
Universal
LCPU
n
n
Constants
Other
K,H
––
––
––
––
––
––

Advertisement

Table of Contents
loading

Table of Contents