EasyManuals Logo
Home>Mitsubishi>Controller>FX1N Series

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N Series
466 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #152 background imageLoading...
Page #152 background image
FX Series Programmable Controlers Applied Instructions 5
5-32
5.3.3 MUL (FNC 22)
Operation: (Applicable to all units)
The contents of the two source devices (S1, S2)
are multiplied together and the result is stored at
the destination device (D). Note the normal rules of
algebra apply.
Points to note:
a) When operating the MUL instruction in 16bit mode, two 16 bit data sources are multiplied
together. They produce a 32 bit result. The device identified as the destination address is
the lower of the two devices used to store the 32 bit result. Using the above example with
some test data:
5(D0)× 7 (D2) = 35 - The value 35 is stored in (D4, D5) as a single 32 bit word.
b) When operating the MUL instruction in 32 bit mode, two 32 bit data sources are multiplied
together. They produce a 64 bit result. The device identified as the destination address is
the lower of the four devices used to store the 64 bit result.
c) If the location of the destination device is smaller than the obtained result, then only the
portion of the result which directly maps to the destination area will be written, i.e if a result
of 72 (decimal) is to be stored at K1Y4 then only Y7 would be active. In binary terms this is
equivalent to a decimal value of 8, a long way short of the real result of 72!
Mnemonic Function
Operands
Program steps
S1 S2 D
MUL
FNC 22
(Multiplica
-tion)
Multiplies the two
source devices
together the result
is stored in the
destination device
K, H, KnX, KnY, KnM, KnS,
T, C, D, V, Z
KnY,KnM,KnS,
T, C, D, Z(V)
Note:Z(V)may
NOT be used
for 32 bit oper-
ation
MUL, MULP:
7steps
DMUL,
DMULP:
13 steps
See page 4-46 for more
details regarding floating
point format.
When using M8023 to subtract floating point
data, only double word (32 bit) data registers
(D)orconstants(K/H)maybeused.
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X0
MUL D 0 D 2
[ S1 ] [ D ]
D 4
[ S2 ]
Viewing 64 bit numbers
• It is currently impossible to monitor the contents of a 64 bit result. However, the result can
be monitored in two smaller,32 bit, blocks, i.e. a 64 bit result is made up of the following
parts: (upper 32 bits) × 2
32
+(lower32bits).

Table of Contents

Other manuals for Mitsubishi FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1N Series and is the answer not in the manual?

Mitsubishi FX1N Series Specifications

General IconGeneral
BrandMitsubishi
ModelFX1N Series
CategoryController
LanguageEnglish

Related product manuals