Omron CJ - INSTRUCTIONS Reference Manual page 526

Table of Contents

Advertisement

3. Instructions
Function
SINQ
SINQ(475) 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 between degrees and radians, see 3-15-9 DEGREES TO RADIANS:
RAD(458) and 3-15-10 RADIANS TO DEGREES: DEG(459).
• If the angle is outside of the range -65,535 to 65,535, an unpredictable value will be output, but the
Error Flag will not be turned ON.
The following diagram shows the relationship between the input data and result.
COSQ
COSQ(476) 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 between degrees and radians, see 3-15-9 DEGREES TO RADIANS:
RAD(458) and 3-15-10 RADIANS TO DEGREES: DEG(459).
• If the angle is outside of the range -65,535 to 65,535, an unpredictable value will be output, but the
Error Flag will not be turned ON.
The following diagram shows the relationship between the input data and result.
488
Source (32-bit floating-point data)
S
R
Result (32-bit floating-point data)
R
1
0
3
2
2
2
1
Source (32-bit floating-point data)
S
Result (32-bit floating-point data)
R
D
1
0
3
2
2
1
S
3
2
2
2
S: Angle (radian) data
R: Result (sine)
S: Angle (radian) data
R: Result (cosine)
S
3
2
2
2
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF