18.15 Fnc127 - Esqr / Floating Point Square Root - 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.15 FNC127 – ESQR / Floating Point Square Root
Outline
This instruction obtains the square root of binary floating point.
1. Instruction format
FNC 127
D
ESQR
2. Set data
Operand Type
S
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
D
: This function is supported only in FX
Explanation of function and operation
1. 32-bit operation (DESQR and DESQRP)
The square root of [
to [
D
+1,
D
Command
input
FNC127
DESQR
Related device
Device
M8020
Error
The contents of [
operation error flag M8067 turns ON, and the instruction is not executed.
516
Mnemonic
16-bit Instruction
P
Word device number storing binary floating point data whose square root is calculated
Data register number storing the square root of binary floating point data
Digit Specification
/FX
3U
S
+1,
S
] is calculated (in the binary floating point operation), and the result is transferred
1
1
].
S
D
Name
Zero flag
Turns ON when the operation result is true "0".
+1,
] are valid only when a positive value is set. When a negative value is set, the
S
S
1
1
18.15 FNC127 – ESQR / Floating Point Square Root
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
Description
Word Devices
Special
System User
Unit
PLCs.
3UC
→ [
[
+1,
]
S
S
Binary floating point
→ For the zero flag use method, refer to Subsection 6.5.2.
Description
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
DESQR
9 steps
DESQRP
Real number (binary)
Others
Con-
Real
Index
stant
Number
V
Z Modify K H
E
+1,
]
D
D
Binary floating point
Continuous
Operation
Pulse (Single)
Operation
Data Type
*1
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents