Square Root : Sqrt - Mitsubishi Electric Q173CPU Programming Manual

Q series motion controller
Hide thumbs Also See for Q173CPU:
Table of Contents

Advertisement

7 OPERATION CONTROL PROGRAMS

7.6.7 Square root : SQRT

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
SQRT(S)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
Data on which square root operation will be
(S)
(1) The square root of the data specified with (S) is found.
(2) Only a positive number may be specified with (S). (Operation cannot be
performed with a negative number.)
(3) If (S) is an integer type, it is converted into a floating-point type before operation is
performed.
(1) An operation error will occur if:
• (S) is a negative number; or
• (S) is an indirectly specified device and its device No. is outside the range.
(1) Program which finds the square root of D0F and substitutes the result to #0F
#0F = SQRT(D0F)
#3
#2
3.0
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
performed
#1
#0
7 - 31
F/FS
Number of basic steps
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
Floating-point type
D3
D2
D1
9.0
G
2
Bit
Comparison
conditional
expression
: Usable
D0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpunQ172cpuQ172cpun

Table of Contents