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

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents