FX Series Positioning Controllers Program format 5
5-57
5.10.15 FNC22 (MUL): Multiplication
• 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
• 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.
FNC 22
MUL
Applicable models
Series name
Remarks
K,H KnX KnY KnM D V,Z
Applicable
devices
and basic
format
Word
devices
FNC 22
MUL
FX
2N
-10GM
FX
2N
-20GM
MUL
Multiplication
Multiplicand
D·
Drive
input
D·
[D]MUL
S1· S2·S1· S2·
S1· S2·
Multiplier
Result
×
=
Pay careful attention to the operation
result (Refer to the example below.)
S1· S2·
MULTIPLI
CATION
16-bit operation
7 steps
32-bit operation
11 steps
•
D·
X32
FNC 22
MUL
D 0 D 2 D 4
FNC 22
[D]MUL
D 10 D 12 D 14
(D0)
×
(D2)
→
(D5, D4)
16 bits
×
16 bits
→
32 bits
(D11, D10)
×
(D13, D12)
→
(D17, D16, D15, D14)
32 bits
×
32 bits
→
64 bits
FNC 23
DIV
Applicable models
Series name
Remarks
K,H KnX KnY KnM D V,Z
Applicable
devices
and basic
format
Word
devices
FNC 23
DIV
FX
2N
-10GM
FX
2N
-20GM
DIV
Division
Dividend
D·
Drive
input
D·
D·
[D] MUL
S1· S2·S1· S2·
S1· S2·
Divisor Result
÷
= ······ +1
Pay careful attention to the operation
result (Refer to the example below.)
S1· S2·
DIVISION
D·
16-bit operation
7 steps
32-bit operation
11 steps
•
X33
FNC 23
DIV
D 0 D 2 D 4
FNC 22
[D]DIV
D 10 D 12 D 14
Dividend
(D0)
16-bit
(D11, D10)
32-bit
Divisor
(D2)
16-bit
(D13, D12)
32-bit
Quotient
(D4)
16-bit
(D15, D14)
32-bit
Remainder
(D5)
16-bit
(D17, D16)
32-bit
÷
÷
→
→
···
···