Fnc 22 - Mul / Multiplication - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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).
1. Instruction format
FNC 22
D
MUL
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
2
: Available only in 16-bit operations (Not available in 32-bit operations)
Explanation of function and operation
1. 16-bit operation (MUL and MULP)
The contents of
[
D
+1,
D
1
Command
input
FNC 22
MUL
• The most significant bit of each data indicates the sign (positive: 0 or negative: 1), and data is multiplied
algebraically.
5 × (−8) = −40
• When a constant (K) is specified in
276
→ For the floating point multiplication instruction EMUL (FNC122), refer to Section 18.10.
Mnemonic
16-bit Instruction
P
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
S
are multiplied by
S
1
] .
S1
S2
S
1
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
1
1
1
PLCs.
3UC
in binary format, and the multiplication result is transferred to 32-bit
2
BIN
BIN
S1
) × (
S2
D
(
16 bits
16 bits
or
S
, it is automatically converted into binary format.
2
10.3 FNC 22 – MUL / Multiplication
Mnemonic
32-bit Instruction
DMUL
13 steps
DMULP
Con-
Real
Index
stant
Number
V
Z Modify K H
E
2
BIN
) → (
D
D
+1,
)
32 bits
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Data type
16- or 32-bit binary
16- or 32-bit binary
32- or 64-bit binary
Others
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents