275
FX3G/FX3U/FX3UC 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
Introduction
2
Overview
3
Instruction
List
4
Devices
in Detail
5
Specified the
Device &
Constant
6
Before
Programming
7
Basic
Instruction
8
FNC00-FNC09
Program Flow
9
FNC10-FNC19
Move & Compare
10
FNC20-FNC29
Arith. & Logic
Operation
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
FX3G FX3U FX3UC
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