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

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS

6.2.3 BIN 16-bit multiplication and division operations ( , P, /, /P)

Internal Devices
Set
(System, User)
Data
Bit
Word
S1
S2
D
[Instruction Symbol] [Execution Condition]
, /
P, /P
[Set Data]
Set Data
S1
S2
D
[Functions]
(1) Multiplies BIN 16-bit data designated by
the result in the device designated by
(2) If
is a bit device, designation is made from the lower bits.
D
Example K1........... Lower 4 bits (b0 to 3)
(3) The values for
(4) Judgments whether
significant bit (b15 for
• 0 ....... Positive
• 1 ....... Negative
6 - 24
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 first number of the device
storing data that will be multiplied or divided
Data to multiply or divide by, or the first number of device storing such
data
First number of the device storing the operation results of multiplication or
division operation
S1
b15- - - - - - - - - b0
b15- - - - - - - - - b0
5678 (BIN)
1234 (BIN)
K4........... Lower 16 bits (b0 to 15)
K8........... Lower 32 bits (b0 to 31)
,
, and
can be designated at between -32768 and 32767 (BIN 16 bits).
S1
S2
D
,
, and (D) are positive or negative are made on the basis of the most
S1
S2
, and
, for
S1
S2
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates the signs
S1
P
S1
Meaning
and BIN 16-bit data designated by
S1
.
D
+1
D
S2
b31- -b16 b15- -b0
7006652 (BIN)
and b31).
D
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
Other
K, H
Zn
or /
D
S2
D
S2
Data Type
BIN 16 bits
BIN 32 bits
, and stores
S2
D
6 - 24
Q4AR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents