EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 529

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
496
Floating-point Math Instructions Section 3-14
Specify the desired angle (–65,535 to 65,535) in radians in S+1 and S. If the
angle is outside of the range –65,535 to 65,535, an error will occur and the
instruction will not be executed. For information on converting from degrees to
radians, see 3-14-19 LOGARITHM: LOG(468) DEGREES-TO-RADIANS:
RAD(458).
The following diagram shows the relationship between the angle and result.
Flags
Precautions The source data in S+1 and S must be in IEEE754 floating-point data format.
3-14-12 COSINE: COS(461)
Purpose Calculates the cosine of a 32-bit floating-point number (in radians) and places
the result in the specified result words.
Ladder Symbol
Variations
Applicable Program Areas
R S: Angle (radian) data
R: Result (sine)
Name Label Operation
Error Flag ER ON if the source data is not a number (NaN).
ON if the absolute value of the source data exceeds
65,535.
OFF in all other cases.
Equals Flag = ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
Overflow Flag OF OFF
Underflow Flag UF OFF
Negative Flag N ON if the result is negative.
OFF in all other cases.
COS(461)
S
R
S: First source word
R: First result word
Variations Executed Each Cycle for ON Condition COS(461)
Executed Once for Upward Differentiation @COS(461)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK

Table of Contents

Related product manuals