![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030655.webp)
615
Floating-point Math Instructions
Section 3-15
Description
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.)
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 unpredictable value will be
output, but the Error Flag will not be turned ON. 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)
.
The following diagram shows the relationship between the angle and result.
Precautions
SINQ(475) differs from SIN(460) in the following respects:
• The instruction has improved performance.
• The instruction length is 8 steps.
• The Condition Flags are not refreshed.
• An unpredictable value will be output if the angle data is out-of-range.
• The data cannot be input or output at a Programming Console. A question
mark will be displayed.
3-15-13 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
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
S
R
R+1
R
S
S+1
SIN
Source (32-bit floating-point data)
Result (32-bit floating-point data)
3
2
π
2
π
2
3
2
π
π
−
2
π
−π
0
π
2
π
−
1
1
S
R
S: Angle (radian) data
R: Result (sine)
−
−
COS(461)
S
R
S
: First source word
R
: First result word
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...