Double Sine: Sind(851) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Description
Flags
Precautions

3-16-11 DOUBLE SINE: SIND(851)

Purpose
Area
Index Registers
Indirect addressing
using Index Registers
DEGD(850) converts the double-precision (64-bit) floating-point number in
words S to S+3 from radians to degrees and places the result in words D to
D+3. (The floating point source data must be in IEEE754 format.)
S+3CH
S+2CH
S+1CH
D+3CH
D+2CH
D+1CH
Radians are converted to degrees by means of the following formula:
Radians
180/ = degrees
If the absolute value of the result is greater than the maximum value that can
be expressed as floating-point data, the Overflow Flag will turn ON and the
result will be output as
If the absolute value of the result is less than the minimum value that can be
expressed as floating-point data, the Underflow Flag will turn ON and the
result will be output as 0.
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.
Calculates the sine of a double-precision (64-bit) floating-point number (in
radians) and places the result in the specified destination words.
This instruction is supported by CS1-H, CJ1-H, CJ1M, and CS1D CPU Units
only.
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
SCH
Source (radians, 64-bit floating-point data)
DCH
Result (degrees, 64-bit floating-point data)
.
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.
ON if the absolute value of the result is too large to be
expressed as a double-precision floating-point value.
ON if the absolute value of the result is too small to be
expressed as a double-precision floating-point value.
ON if the result is negative.
OFF in all other cases.
Section 3-16
D
675

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents