SQR (Form Square) & SQRT (Form Square Root)
SQR Description: Forms the square of the floating-point value at IN (IN² = OUT).
SQRT Description: Forms the square root of the floating-point value at IN (√IN = OUT). If IN is negative, it returns NaN.
SQRT Description: Forms the square root of the floating-point value at IN (√IN = OUT). If IN is negative, it returns NaN.
HMI Panel
SQR OUT
81.0
SQRT OUT
3.0
Network 1: Square & Square Root
SQR
EN
IN
ENO
OUT
%MD10
IN
SQRT
EN
IN
ENO
OUT
%MD14
IN
LN (Natural Logarithm) & EXP (Exponential Value)
LN Description: Forms the natural logarithm of the floating-point value at IN (LN(IN) = OUT). Returns NaN if IN ≤ 0.
EXP Description: Forms the exponential value of the floating-point value at IN (e^IN = OUT). Base e = 2.718281...
EXP Description: Forms the exponential value of the floating-point value at IN (e^IN = OUT). Base e = 2.718281...
HMI Panel
LN OUT
0.0
EXP OUT
2.718
Network 2: Natural Log & Exponential
LN
EN
IN
ENO
OUT
%MD20
IN
EXP
EN
IN
ENO
OUT
%MD24
IN