Bin 32-Bit Multiplication And Division Operations (D , D P, D/, D/P) - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS

6.2.4 BIN 32-bit multiplication and division operations (D , D P, D/, D/P)

Internal Devices
Set
(System, User)
Data
Bit
Word
S1
S2
D
[Instruction Symbol] [Execution Condition]
D
,D/
D
P,D/P
[Set Data]
Set Data
S1
S2
D
[Functions]
D
(1) Multiplies BIN 32-bit data designated by
the result in the device designated by
+1
S1
b31- -b16 b15- -b0
567890 (BIN)
(2) If
is a bit device, only the lower 32 bits of the multiplication result will be considered, and the
D
upper 32 bits cannot be designated.
Example K1........... Lower 4 bits (b0 to 3)
If the upper 32 bits of the bit device are required for the result of the multiplication operation,
first temporarily store the data in a word device, then transfer the word device data to the bit
device by designating (
(3) The values for
32 bits).
6 - 26
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
+1
S1
S2
S2
b31- -b16 b15- -b0
123456 (BIN)
K4........... Lower 16 bits (b0 to 15)
K8........... Lower 32 bits (b0 to 31)
+2) and (
D
,
, and
can be designated at between -2147483648 to 2147483647 (BIN
S1
S2
D
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates the signs D
S1
P
S1
Meaning
and BIN 32-bit data designated by
S1
.
D
+3
+2
D
D
b63- -b48 b47- -b32b31- -b16
70109427840 (BIN)
+3) data.
D
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
Other
K, H
Zn
or D/
D
S2
D
S2
Data Type
BIN 32 bits
BIN 64 bits
, and stores
S2
+1
D
D
b15- -b0
6 - 26
Q4AR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents