Double Cosine: Cosd(852) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Flags
Precautions

3-16-12 DOUBLE COSINE: COSD(852)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
676
Specify the desired angle (–65,535 to 65,535) in radians in words S to S+3. 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 between
degrees and radians, see 3-16-9 DOUBLE DEGREES TO RADIANS:
RADD(849) or 3-16-10 DOUBLE RADIANS TO DEGREES: DEGD(850) .
The following diagram shows the relationship between the angle and result.
Name
Label
Error Flag
ER
Equals Flag
=
Overflow Flag
OF
Underflow Flag
UF
Negative Flag
N
The source data in words S to S+3 must be in IEEE754 floating-point data for-
mat.
Calculates the cosine of a double-precision (64-bit) floating-point number (in
radians) and places the result in the specified destination words.
This instruction is supported by CS1-H, CJ1-H, CJ1M, and CS1D CPU Units
only.
COSD(852)
S: First source word
S
D: First destination word
D
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
R
S: Angle (radian) data
R: Result (sine)
Operation
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.
Unchanged
Unchanged
ON if the result is negative.
OFF in all other cases.
Step program areas
Subroutines
OK
Section 3-16
COSD(852)
@COSD(852)
Not supported.
Interrupt tasks
OK

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents