Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 519

Table of Contents

Advertisement

Function
SIN
SIN(460) calculates the sine of the angle (in radians) expressed as a 32-bit floating-point value in S+1
and S and places the result in R+1 and R.
(The floating point source data must be in IEEE754 format.)
SIN
S+1
R+1
Specify the desired angle (–65,535 to 65,535) in radians in S+1 and S.
For information on converting from degrees to radians, see 3-15-22 LOGARITHM: LOG(468)
DEGREES TO RADIANS: RAD(458).
The following diagram shows the relationship between the angle and result.
COS
COS(461) calculates the cosine of the angle (in radians) expressed as a 32-bit floating-point value in
S+1 and S and places the result in R+1 and R.
(The floating point source data must be in IEEE754 format.)
COS
S+1
R+1
Specify the desired angle (-65,535 to 65,535) in radians in S+1 and S.
For information on converting from degrees to radians, see 3-15-22 LOGARITHM: LOG(468)
DEGREES TO RADIANS: RAD(458).
The following diagram shows the relationship between the angle and result.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Source (32-bit floating-point data)
S
R
Result (32-bit floating-point data)
R
Source (32-bit floating-point data)
S
Result (32-bit floating-point data)
R
S: Angle (radian) data
R
R: Result (cosine)
S: Angle (radian) data
R: Result (sine)
3. Instructions
3
483

Advertisement

Table of Contents
loading

Table of Contents