Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
275
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (
+, −, ×, ÷) – FNC 20 to FNC 29
10.3 FNC 22 – MUL / Multiplication
1
In
trodu
ct
ion
2
O
ver
vi
ew
3
In
st
ru
ct
ion 
Li
st
4
D
evices 
in D
etail
5
Specifi
ed t
he
D
evice &
 
C
onst
ant
6
Bef
ore 
Pr
ogr
am
m
ing
7
B
asic 
In
st
ru
ct
ion
8
FNC0
0-F
NC0
9
Pr
ogr
am
 Flow
9
FN
C
10-FN
C
19
Mo
ve
 &
 Co
mp
are
10
FNC2
0-F
NC2
9
Ar
ith.
 &
 Logic 
O
per
ati
on
Cautions
1. Devices specified in 
• In a 32-bit operation (by DMUL or DMULP), Z cannot be specified in 
.
2. When monitoring the operation result in a programming tool
Even if word devices are used, the operation result (64 bits) cannot be monitored at one time.
In such a case, floating point operation is recommended.
→ For the floating point operation, refer to Chapter 18.
Program examples
1. 16-bit operation
2. 32-bit operation
Function Changes According to Versions
Compatible Versions
Item
Function Summary
FX
3G
FX
3U
FX
3UC
Ver. 1.00 or later
Ver. 2.30 or later
Ver. 2.30 or later 
Zero Flag
Turns the special device M8304 ON when the 
operation result of MUL command is 0.
   
D
   
D
X000
D ‚
FNC 22
MUL
D  0
D  2
D  4
S1 ‚
S2 ‚
 (D 0) 
× (D 2) → (D 5,D 4)
    8         9              72
X001
FNC 22
DMUL
D  0
D  2
D  4
S1 ‚
S2 ‚
D ‚
(D 1,D 0) 
× (D 3,D 2) → (D 7,D 6,D 5,D 4)
   1756           327                  574,212