![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030717.webp)
677
Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Section 3-16
Operand Specifications
Description
COSD(852) calculates the cosine of the angle (in radians) expressed as a
double-precision (64-bit) floating-point value in words S to S+3 and places the
result in words D to D+3.
(The floating point source data must be in IEEE754 format.)
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.
Area
S
D
CIO Area
CIO 0000 to CIO 6140
Work Area
W000 to W508
Holding Bit Area
H000 to H508
Auxiliary Bit Area
A000 to A956
A448 to A956
Timer Area
T0000 to T4092
Counter Area
C0000 to C4092
DM Area
D00000 to D32764
EM Area without bank
E00000 to E32764
EM Area with bank
En_00000 to En_32764
(n = 0 to C)
Indirect DM/EM
addresses in binary
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
---
Data Registers
---
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
S+1
S
)
→
COS(
S+3
S+2
D+1
D
D+3
D+2
R
S: Angle (radian) data
R: Result (cosine)
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...