18.11 Fnc123 - Ediv / Floating Point Division - 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
18.11 FNC123 – EDIV / Floating Point Division
Outline
This instruction executes division of two binary floating point.
1. Instruction format
FNC 123
D
P
EDIV
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 (DEDIV and DESDIVP)
Binary floating point data [
result in the binary floating point format is transferred to [
Command
input
FNC123
DEDIV
When a constant (K or H) is specified as [
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 binary floating point data obtained by division
Digit Specification
/FX
3U
3UC
S
+1,
S
] is divided by binary floating point data [
1
1
S
S
D
1
2
S
1
K100
S
D
1
18 Floating Point – FNC110 to FNC139
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
Index
Unit
V
Z Modify K H
PLCs.
D
+1,
D
].
Dividend
] ÷ [
[
S
+1,
S
S
1
1
Binary floating point
Binary floating point
+1,
S
] or [
S
+1,
S
1
2
Dividend
] ÷ [
S
S
[
+1,
1
1
Binary floating point
Automatically
converted into binary
Mnemonic
Operation Condition
Continuous
DEDIV
Operation
Pulse (Single)
DEDIVP
Operation
Data Type
Real number (binary)
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
S
+1,
S
], and the division
2
2
Divisor
] → [
+1,
S
D
+1,
D
2
2
Binary floating point
], it is automatically converted into
2
Divisor
] → [
D
K100
+1,
Binary floating point
floating point
11
12
13
14
*1
15
Pointer
P
16
17
18
]
19
D
]
20
509

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents