Bcd 8-Digit Multiplication And Division Operations (Db*(P),Db/(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

DB*(P),DB/(P)
6.2.8
BCD 8-digit multiplication and division operations
(DB*(P),DB/(P))
DB*(P),DB/(P)
DB , DB/
*
DB P, DB/P
*
Setting
Data
S1
S2
D
Function
DB*
(1) Multiplies the BCD 8-digit data designated by
and stores the product at the device designated by
(2) If
D
product, and the higher 8 digits (upper 32 bits) cannot be designated.
K1 ....Lower 1 digit (b0 to 3), K4 ....Lower 4 digits (b0 to 15), K8.....Lower 8 digits (b0 to 31)
(3) 0 to 99999999 (BCD 8 digits) can be assigned to
DB/
(1) Divides 8-digit BCD data designated by
stores the result in the device designated by
6-44
Command
Command
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored
S1
(BCD 8 digits)
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored
S2
(BCD 8 digits)
: Head number of the devices where the multiplication/division operation result will be stored (BCD 16 digits)
D
Internal Devices
R, ZR
Bit
Word
S1
S1
+1
9
9
9
9
9
9
9
D
9
9
has designated a bit device, the lower 8 digits (lower 32 bits) will be used for the
S1
+1
S1
5
6
7
8
9
1
2
D
+1
Quotient
(Upper 4 digits)
0
0
0
Basic
indicates an instruction symbol of
P
J
\
U
\G
Bit
Word
and the BCD 8-digit data designated by
S1
.
D
S2
+1
S2
9
9
9
9
9
9
9
+3
D
+2
D
+1
9
9
9
9
9
8
0
0
0
and
S1
and 8-digit BCD data designated by
S1
.
D
S2
+1
S2
3
/
0
1
2
3
4
5
Digits exceeding the designated number of digits
are assumed to be 0
D
D
+3
(Lower 4 digits)
Remainder
(Upper 4 digits)
0
0
0
4
5
0
1
2
High
Process
Redundant Universal
performance
DB ,DB/
*
S1
S2
D
D
S1
S2
Constants
Zn
K, H
––
9
9
D
0
0
0
0
1
.
S2
S2
6
7
D
+2
(Lower 4 digits)
3
3
6
0
8
LCPU
.
Other
––
––
––
,
S2
, and

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents