Fnc 22 - Mul / Multiplication - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
10.3
FNC 22 – MUL / Multiplication
Outline
This instruction executes multiplication by two values to obtain the result (A x B = C).
→ For the floating point multiplication instruction EMUL (FNC122), refer to Section 18.10.
1. Instruction format
FNC 22
D
MUL
P
2. Set data
Operand type
S
1
S
2
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
1
S
2
D
: This function is supported only in FX
1
: Available only in 16-bit operations (Not available in 32-bit operations)
2
Explanation of function and operation
1. 16-bit operation (MUL and MULP)
The contents of
to 32-bit [
+1,
D
Command
input
FNC 22
MUL
• The most significant bit of each data indicates the sign (positive: 0 or negative: 1), and data are multiplied
algebraically.
5 × (−8) = −40
• When a constant (K) is specified in
Mnemonic
16-bit Instruction
7 steps MUL
MULP
Data for multiplication or word device number storing data
Data for multiplication or word device number storing data
Head word device number storing the multiplication result
Digit Specification
/FX
3U
are multiplied by
S
S
1
2
] .
D
1
S1
S2
D
S
1
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
Operation Condition
32-bit Instruction
Continuous
13 steps
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
V Z Modify K H
1
1
1
PLCs.
3UC
in the binary format, and the multiplication result is transferred
BIN
BIN
S1
) × (
S2
) → (
(
16 bits
16 bits
or
, it is automatically converted into the binary format.
S
2
10.3 FNC 22 – MUL / Multiplication
Mnemonic
Operation Condition
Continuous
DMUL
Operation
Pulse (Single)
DMULP
Operation
Data type
16- or 32-bit binary
16- or 32-bit binary
32- or 64-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
2
BIN
D
D
+1,
)
32 bits
1
2
3
4
5
Pointer
P
6
7
8
9
10
289

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents