Floating-point Math Instructions
Flags
Precautions
3-14-17 SQUARE ROOT: SQRT(466)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
R
Name
Label
Error Flag
ER
Equals Flag
=
Overflow Flag
OF
Underflow Flag
UF
Negative Flag
N
The source data in S+1 and S must be in IEEE754 floating-point data format.
Calculates the square root of a 32-bit floating-point number and places the
result in the specified result words.
SQRT(466)
S
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
S: Input data (tangent)
R: Result (radians)
Operation
ON if the source data is not recognized as floating-point
data.
ON if the source data is not a number (NaN).
OFF in all other cases.
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
OFF
OFF
ON if the result is negative.
OFF in all other cases.
S: First source word
R: First result word
Step program areas
Subroutines
OK
Section 3-14
SQRT(466)
@SQRT(466)
Not supported.
Interrupt tasks
OK
505
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers