Fnc22 (Mul): Multiplication - Mitsubishi FX2N-10GM Hardware / Programming Manual

Melsec-f
Hide thumbs Also See for FX2N-10GM:
Table of Contents

Advertisement

FX Series Positioning Controllers

5.10.15 FNC22 (MUL): Multiplication

FNC 22
MUL
MULTIPLI
CATION
Applicable
devices
and basic
format
X32
FNC 22
MUL
FNC 22
[D]MUL
• When the data of either source is a negative value, the product is also a negative value. In a
32-bit operation, the product is 64 bits.
Because 64-bit data cannot be monitored, numerics handled in multiplication must be such
that the multiplication product is 32 bits or less.
5.10.16 FNC23 (DIV): Division
FNC 23
DIV
DIVISION
devices
Applicable
devices
and basic
format
X33
FNC 23
DIV
FNC 22
[D]DIV
• This instruction is not executed when the divisor is "0".
• The quotient becomes a negative value when either the dividend or the divisor is a negative
value. The remainder becomes a negative value when the dividend is a negative value.
Multiplication
MUL
16-bit operation
7 steps
S1· S2·
Word
devices
K,H
KnX
Drive
input
FNC 22
MUL
Multiplicand
D 0
D 2
D 10
D 12
D 14
Division
DIV
16-bit operation
7 steps
S1· S2·
Word
K,H
KnX
KnY
Drive
input
FNC 23
S1·
DIV
Dividend
D 0
D 2
D 4
D 10
D 12
D 14
32-bit operation
11 steps
S1· S2·
KnY
KnM
D
V,Z
S1·
S2·
Multiplier
Result
(D0) × (D2) → (D5, D4)
D 4
16 bits × 16 bits → 32 bits
(D11, D10) × (D13, D12) → (D17, D16, D15, D14)
32 bits × 32 bits → 64 bits
32-bit operation
11 steps
S1· S2·
KnM
D
V,Z
S2·
Divisor
Result
÷
Dividend
Divisor
(D0)
(D2)
16-bit
16-bit
÷
(D11, D10)
(D13, D12)
32-bit
32-bit
Applicable models
Series name
[D]MUL
FX
2N
FX
2N
×
=
S1·
S2·
Pay careful attention to the operation
result (Refer to the example below.)
Applicable models
Series name
FX
[D] MUL
2N
FX
2N
÷
S1·
S2·
=
······
Pay careful attention to the operation
result (Refer to the example below.)
Quotient
···
Remainder
(D4)
(D5)
16-bit
16-bit
(D15, D14)
(D17, D16)
···
32-bit
32-bit
Program format 5
Remarks
-10GM
-20GM
Remarks
-10GM
-20GM
+1
5-57

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx2n-20gm

Table of Contents