Arithmetic instructions Chapter 5
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 99
SQRT yields the square root of a Real value.
Arguments
Parameter
Parameter
Type
Data Type Description
EN Input BOOL Function enable.
When EN = TRUE, execute current square root computation.
When EN = FALSE, there is no computation.
IN Input REAL Must be greater than or equal to zero.
SQRT Output REAL Square root of the input value. The returned result is 0 for a negative IN value.
ENO Output BOOL Enable out.
SQRT function language examples
Function block diagram
Ladder diagram