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

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Floating-point Math Instructions
Description
Flags
Precautions
626
Area
Index Registers
Indirect addressing
using Index Registers
ACOS(464) computes the angle (in radians) for a cosine value expressed as a
32-bit floating-point number in S+1 and S and places the result in R+1 and R.
(The floating point source data must be in IEEE754 format.)
–1
COS
S+1
R+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 R+1 and R as an angle (in radians) within the
range of 0 to .
The following diagram shows the relationship between the input data and
result.
Name
Label
Error Flag
ER
Equals Flag
=
Overflow Flag
OF
Underflow Flag
UF
Negative Flag
N
The source data in S+1 and S must be in IEEE754 floating-point data format.
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
Source (32-bit floating-point data)
S
Result (32-bit floating-point data)
R
S: Input data (cosine value)
R
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).
ON if the absolute value of the source data exceeds 1.0.
OFF in all other cases.
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
OFF
OFF
ON if the result is negative.
OFF in all other cases.
Section 3-15
R

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents