High-Speed Cosine: Cosq(476) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Floating-point Math Instructions
Flags
Precautions

3-15-14 HIGH-SPEED COSINE: COSQ(476)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
618
instruction will not be executed. For information on converting from degrees to
radians, see 3-15-9 DEGREES TO RADIANS: RAD(458).
The following diagram shows the relationship between the angle and result.
Name
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 cosine of a 32-bit floating-point number (in radians) and places
the result in the specified result words.
Note These instructions can be used in the CJ1-H-R CPU Units only.
COSQ(476)
S
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Function block
Block program
definitions
OK
OK
R
Label
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.
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
areas
OK
Section 3-15
S: Angle (radian) data
R: Result (cosine)
Operation
COSQ(476)
@COSQ(476)
Not supported.
Subroutines
Interrupt
tasks
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents