Square Root (Sqr) - Foundation Logic View Configuration Manual

Table of Contents

Advertisement

DF65 – LogicView Configuration Manual
SQR
CLASS
I
P
O
V

Square Root (SQR)

Description
This function block will find the square root of the input and places the result in the OUT output. If IN
is negative, OUT= 0 then the ENO output will indicate false.
Control World - Input/Output Type
The data type in the inputs and outputs may be set as "Regular" or "Percentages".
If the Percentage option was chosen, then there are two modes of operation:
If the input was set to integer:
=
OUT
100
*
IN
If the input was set to real:
=
OUT
10
*
IN
Option "Regular" will make the function block operate normally, i.e. calculating the SQR function
directly.
SQUARE ROOT
MNEM
DESCRIPTION
EN
INPUT ENABLE
IN
INPUT
CTW
CONTROL WORLD
CTO
LEVELING
ENO
OUTPUT ENABLE
OUT
OPERATION RESULT
PER
PERCENTAGE OPERATION
I: Input. P: Parameter. O: Output. V: Variable
IF EN=1 THEN
ENO := 1
OUT := SQR( IN )
ELSE
ENO := 0
OUT := 0
TYPE
BOOLEAN
ANY_NUM
WORD
REAL
BOOLEAN
ANY_NUM
WORD
2.39

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Logic View and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Df65Df50Df27Df11

Table of Contents