Fnc123 - Ediv / Floating Point Division - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.11 FNC123 – EDIV / Floating Point Division
Outline
This instruction executes division of two binary floating point.
1. Instruction format
FNC 123
D
EDIV
P
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
Explanation of function and operation
1. 32-bit operation (DEDIV and DESDIVP)
Binary floating point data [
division result in the binary floating point format is transferred to [
Command
input
FNC123
DEDIV
When a constant (K or H) is specified as [
into binary floating point.
Command
input
FNC123
DEDIV
→ For program examples of floating point operations, refer to Section 12.10.
Mnemonic
16-bit Instruction
Word device number storing binary floating point data used in division
Word device number storing binary floating point data used in division
Data register number storing the division result
Digit Specification
+1,
] is divided by binary floating point data [
S
S
1
1
S
S
D
1
2
S
K100
S
D
1
18.11 FNC123 – EDIV / Floating Point Division
→ For handling of floating point, refer to Subsection 5.1.3.
→ For flag operations, refer to Subsection 6.5.2.
Operation Condition
32-bit Instruction
13 steps
Description
Word Devices
Special
System User
Unit
V Z Modify K H
+1,
D
Dividend
] ÷ [
S
S
S
[
+1,
1
1
Binary floating point
Binary floating point
+1,
] or [
+1,
S
S
1
1
2
Dividend
] ÷ [
[
S
+1,
S
1
1
Binary floating point
converted into binary
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
Continuous
DEDIV
Operation
Pulse (Single)
DEDIVP
Operation
Data Type
Real number
(binary)
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
+1,
S
S
2
2
].
D
Divisor
] → [
S
D
D
+1,
+1,
2
2
Binary floating point
], it is automatically converted
S
2
Divisor
] → [
K100
D
+1,
Automatically
Binary floating point
floating point
11
12
13
14
*1
15
Pointer
16
P
17
], and the
18
]
19
D
]
20
483

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents