Fnc127 - Esqr / Floating Point Square Root - 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.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 [
transferred to [
Command
input
FNC127
DESQR
Related device
Device
M8020
Error
The contents of [
the operation error flag M8067 turns ON, and the instruction is not executed.
536
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
3U
+1,
] is calculated (in the binary floating point operation), and the result is
S
S
1
1
+1,
].
D
D
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,
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
/FX
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
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
(binary)
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents