Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 717

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)
Operand Specifications
Description
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
EM Area without bank
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
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.)
COS(
S+3
S+2
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.
S
CIO 0000 to CIO 6140
W000 to W508
H000 to H508
A000 to A956
T0000 to T4092
C0000 to C4092
D00000 to D32764
E00000 to E32764
En_00000 to En_32764
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
---
---
,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
)
D+3
S: Angle (radian) data
R
R: Result (cosine)
Section 3-16
D
A448 to A956
D+2
D+1
D
677

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents