Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 587

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Double-precision Floating-point Instructions
Operand Specifications
Description
554
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
ACOSD(855) computes the angle (in radians) for a cosine value expressed as
a double-precision (64-bit) floating-point number 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.)
–1
COS
(
S+3
S+2
S+1
The source data must be between –1.0 and 1.0. If the absolute value of the
source data exceeds 1.0, an error will occur and the instruction will not be
executed.
The result is output to words D to D+3 as an angle (in radians) within the
range of 0 to .
The following diagram shows the relationship between the input data and
result.
S
CIO 0 to CIO 6140
W0 to W508
H0 to H508
A0 to A956
T0000 to T4092
C0000 to C4092
D0 to D32764
@ D0 to @ D32767
*D0 to *D32767
---
---
---
,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
)
D+3
D+2
S: Input data (cosine value)
R
R: Result (radians)
Section 3-15
D
A448 to A956
D+1
D

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents