Fnc122 - Emul / Floating Point 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
18.10 FNC122 – EMUL / Floating Point Multiplication
Outline
This instruction executes multiplication of two binary floating point data.
1. Instruction format
FNC 122
D
EMUL
2. Set data
Operand Type
S
1
S
2
D
*1.
When a constant (K or H) is specified, it is automatically converted into binary floating point (real
number) when the instruction is executed.
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
Explanation of function and operation
1. 32-bit operation (DEMUL and DEMULP)
Binary floating point data [
the multiplication result in the binary floating point format is transferred to [
Command
input
FNC122
DEMUL
When a constant (K or H) is specified as [
into binary floating point.
Command
input
FNC122
DEMUL
528
→ For program examples of floating point operations, refer to Section 12.10.
Mnemonic
16-bit Instruction
P
Word device number storing binary floating point data used in multiplication
Word device number storing binary floating point data used in multiplication
Data register number storing the multiplication result
Digit Specification
3U
+1,
S
S
1
1
S
S
1
2
S
S
1
2
18.10 FNC122 – EMUL / Floating Point Multiplication
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
Description
Word Devices
Special
System User
Unit
/FX
PLCs.
3UC
] is multiplied by binary floating point data [
D
[
S
+1,
S
1
1
Binary floating point
+1,
] or [
S
S
S
1
1
2
] × [
D
S
S
[
+1,
1
1
Binary floating point
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
DEMUL
13 steps
DEMULP
Others
Con-
Real
Index
stant
Number
V Z Modify K H
E
S
2
+1,
].
D
D
] × [
] → [
S
+1,
S
D
2
2
Binary floating point
Binary floating point
+1,
], it is automatically converted
S
2
] → [
D
K100
Automatically
Binary floating point
converted into binary
floating point
Continuous
Operation
Pulse (Single)
Operation
Data Type
Real number
*1
(binary)
Charac-
Pointer
ter String
" "
P
+1,
], and
S
2
+1,
D
]
D
+1,
]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents