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

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS

6.2.7 BCD 4-digit multiplication and division operations (B , B P, B/, B/P)

Internal Devices
Set
(System, User)
Data
Bit
Word
S1
S2
D
[Instruction Symbol] [Execution Condition]
B
, B/
B
P, B/P
[Set Data]
Set Data
S1
S2
D
[Functions]
B
(1) Multiplies BCD data designated by
the device designated by
5
6
(2) Values for
B/
(1) Divides BCD data designated by
the device designated by
5
6
6 - 36
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
Command
Data that will be multiplied or divided, or the head number of the device
storing data that will be multiplied or divided
Data to multiply or divide by, or the head number of device storing such
data
Head number of the device storing the operation results of multiplication
or division operation
.
D
S1
S2
7
8
0
8
7
and
can be set from 0 to 9999 (BCD 4 digits).
S1
S2
S1
.
D
S1
S2
/
7
8
0
8
7
Digits higher than those which were designated will
be read as 0.
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates the signs B
S1
P
S1
Meaning
and BCD data designated by
S1
+1
D
(Upper 4 digits)
6
0
4
9
7
and BCD data designated by
(Quotient)
D
6
0
0
0
6
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
Other
K, H
Zn
or B/
D
S2
D
S2
Data Type
BCD 4-digit
BCD 8-digit
, and stores the result in
S2
D
(Lower 4 digits)
3
9
2
8
, and stores the result in
S2
+1(Remainder)
D
0
4
2
2
6 - 36
Q4AR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents