EasyManua.ls Logo

Mitsubishi MELSEC-Q/L - BCD 8-Digit Multiplication and Division Operations

Mitsubishi MELSEC-Q/L
850 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
206
DB*, DB*P, DB/, DB/P
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored (BCD 8 digits)
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored (BCD 8 digits)
:
Head number of the devices where the multiplication/division operation result will be stored (BCD 16 digits)
Function
DB*
(1) Multiplies the BCD 8-digit data designated by and the BCD 8-digit data designated by , and stores the product at the
device designated by .
(2) If has designated a bit device, the lower 8 digits (lower 32 bits) will be used for the 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 and .
DB/
(1) Divides 8-digit BCD data designated by and 8-digit BCD data designated by , and stores the result in the device
designated by .
(2) 64 bits are used for the result of the division operation, and stored as quotient and remainder.
Quotient (BCD 8 digits) :Stored at the lower 32 bits.
Remainder (BCD 8 digits) :Stored at the upper 32 bits.
(3) If has been designated as a bit device, the remainder of the operation will not be stored.
6.2.8 DB*, DB*P, DB/, DB/P BCD 8 -digit multiplication and division operations
6.2.8
DB*, DB*P, DB/, DB/P
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
––
–– ––
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
P
DB , DB/
*
DB P, DB/P
S1 S2
D
S1 S2
D
indicates an instruction symbol of DB* , DB/.
*
S1
S2
D
S1
S2
D
S1
S2
D
9999 9999 9999 9999
+1 +1
9999 9998 0000 0001
+1 +2 +3
D
D D
D
S1
S1 S2 S2
D
S1
S2
S1
S2
D
6578
1
9
2
3
1
0
2
3 5
4
6 7
/
+1
+1
0000 00 4 5 1023 6308
Digits exceeding the designated number of digits
are assumed to be 0
(Lower 4 digits)(Upper 4 digits)(Lower 4 digits)(Upper 4 digits)
+1 +3 +2
Remainder
Quotient
S1 S2
D
S1 S2
D D D
D

Table of Contents

Related product manuals