![Mitsubishi Electric MELSEC FX3G Скачать руководство пользователя страница 293](http://html.mh-extra.com/html/mitsubishi-electric/melsec-fx3g/melsec-fx3g_programming-manual_239083293.webp)
291
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
Int
roduct
ion
2
O
ver
view
3
In
str
uc
tion
Li
st
4
D
evices
in D
etail
5
Spec
ified t
he
D
evice &
C
onst
ant
6
Bef
ore
Pr
ogr
am
m
ing
7
B
asic
In
st
ru
ct
io
n
8
FN
C
00-FN
C
09
P
rogr
am
F
low
9
FN
C
10
-FN
C
19
Mo
ve
&
Co
mp
are
10
FNC2
0-F
NC2
9
Ar
ith.
&
Logic
O
per
ation
Related devices
1. Relationship between flag operation and numeric value
*1.
Available in all FX
3G
PLCs and FX
3U
/FX
3UC
PLCs Ver. 2.30 or later.
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
Device
Name
Description
M8304*1
Zero
ON: When the operation result is 0.
OFF: When the operation result is a number other than 0.
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