When rung conditions are true, this output instruction calculates the square root of the absolute value of the source and places the rounded result in the destination.
This instruction calculates the square root of a negative number without overflow or faults.
Example
Equation: F8:90 = SQR(-25)
Ladder Logic Solution
Computing the square root of (-25)
Example
Equation: F8:90 = SQR(-25)
Ladder Logic Solution
Computing the square root of (-25)
Note
- SQR instruction calculates the square root of a negative number without causing any overflow or fault.