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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Double-precision Floating-point Instructions
Description
Flags
Precautions
556
Area
Index Registers
Indirect addressing
using Index Registers
ATAND(856) computes the angle (in radians) for a tangent value expressed as
a double-precision (64-bit) floating-point number in words S to S+3 and places
the result in D to D+3.
(The floating point source data must be in IEEE754 format.)
–1
TAN
(
S+3
S+2
S+1
The result is output to words D to D+3 as an angle (in radians) within the
range of – /2 to /2.
The following diagram shows the relationship between the input data and
result.
R
Name
Label
Error Flag
ER
Equals Flag
=
Overflow Flag
OF
Underflow Flag
UF
Negative Flag
N
The source data in words S to S+3 must be in IEEE754 floating-point data for-
mat.
S
---
,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 (tangent)
R: Result (radians)
Operation
ON if the source data is not recognized as floating-point
data.
ON if the source data is not a number (NaN).
OFF in all other cases.
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
Unchanged
Unchanged
ON if the result is negative.
OFF in all other cases.
Section 3-15
D
D+1
D

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents