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

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

BIN 32-bit data block addition and subtraction operations

DBK+(P), DBK-(P)
High
Basic
Process
Redundant
performance
• QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
• Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
DBK+, DBK-
DBK+P, DBK-P
(S1): Head number of the devices where the data to be added and subtracted are stored (BIN 32 bits)
(S2): Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored (BIN 32 bits)
(D): Head number of the devices where the addition and subtraction operation result will be stored (BIN 32 bits)
n:
Number of addition/subtraction data blocks (BIN 16 bits)
Setting
Internal device
data
Bit
Word
(S1)
(S2)
(D)
n
Processing details
■DBK+
• This instruction adds BIN 32-bit data stored in n-point devices starting from the device specified by (S1) to BIN 32-bit data
stored in n-point devices starting from the device specified by (S2) or a constant and then stores the operation result into
the nth device specified by (D) and up.
When a device is specified for (S2)
b31
-30000 (BIN)
S1 +1,
S1
40000 (BIN)
S1 +3,
S1 +2
-50000 (BIN)
S1 +5,
S1 +4
60000 (BIN)
S1 +(2n-1),
S1 +(2n-2)
When a constant is specified for (S2)
b31
-30000
S1 +1,
S1
40000
S1 +3,
S1 +2
-50000
S1 +5,
S1 +4
60000
S1 +(2n-1),
S1 +(2n-2)
• Block addition is performed in 32-bit units.
• The constant in the device specified by (S2) can be between -2147483648 to 2147483647 (BIN 32-bit data).
• If the value specified by n is 0, the instruction will be not processed.
Ver.
Universal
LCPU
Command
Command
R, ZR
J\
Bit
b0
S2 +1,
S2
S2 +3,
S2 +2
n +
S2 +5,
S2 +4
S2 +(2n-1),
S2 +(2n-2)
b0
(BIN)
(BIN)
b31
n
(BIN)
+
50000
S2 +1,
S2
(BIN)
indicates an instruction symbol of DBK+, DBK- .
(S1)
(S2)
P
(S1)
(S2)
U\G
Zn
Word
b31
b0
50000 (BIN)
D +1,
20000 (BIN)
D +3,
n
-10000 (BIN)
D +5,
-20000 (BIN)
D +(2n-1),
D +1,
D
b0
D +3,
D +2
(BIN)
D +5,
D +4
D +(2n-1),
D +(2n-2)
6.2 Arithmetic Operation Instructions
n
(D)
n
(D)
Constant
Others
K, H
b31
b0
20000 (BIN)
D
60000 (BIN)
D +2
n
-60000 (BIN)
D +4
40000 (BIN)
D +(2n-2)
b31
b0
20000
(BIN)
90000
(BIN)
n
0
(BIN)
110000
(BIN)
6 BASIC INSTRUCTIONS
6
259

Advertisement

Table of Contents
loading

Table of Contents