EasyManua.ls Logo

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

Mitsubishi Electric MELSEC-Q/L
1084 pages
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...
242
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
BCD 8-digit multiplication and division operations
DB*(P), DB/(P)
Processing details
DB*
Multiplies the BCD 8-digit data designated by (S1) and the BCD 8-digit data designated by (S2), and stores the product at
the device designated by (D).
If (D) 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.
0 to 99999999 (BCD 8 digits) can be assigned to (S1) and (S2).
DB/
Divides 8-digit BCD data designated by (S1) and 8-digit BCD data designated by (S2), and stores the result in the device
designated by (D).
64 bits are used for the result of the division operation, and stored as quotient and remainder.
If (D) has been designated as a bit device, the remainder of the operation will not be stored.
(S1): Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored (BCD 8 digits)
(S2): Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored (BCD 8 digits)
(D): Head number of the devices where the multiplication/division operation result will be stored (BCD 16 digits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1) 
(S2) 
(D) 
•K1  Lower 1 digit (b0 to 3)
•K4  Lower 4 digits (b0 to 15)
•K8  Lower 8 digits (b0 to 31)
Quotient (BCD 8 digits)  Stored at the lower 32 bits.
Remainder (BCD 8 digits)  Stored at the upper 32 bits.
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/.
*
9999 9999 9999 9999
+1 +1
9999 9998 0000 0001
+1 +2 +3
D
D D
D
S1
S1 S2 S2
6578
1
9
2
3
1
0
2
3 5
4
6 7
/
+1
+1
0000 0045 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

Table of Contents

Related product manuals