Omron CS1G/H-CPUxxH Instructions Manual page 557

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Floating-point Math Instructions
Description
Flags
Precautions
3-15-10 RADIANS TO DEGREES: DEG(459)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
536
RAD(458) converts the 32-bit floating-point number in S+1 and S from
degrees to radians and places the result in R and R+1. (The floating point
source data must be in IEEE754 format.)
S+1
S
R+1
R
Degrees are converted to radians by means of the following formula:
Degrees × π /180 = radians
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 S+1 and S must be in IEEE754 floating-point data format.
Converts a 32-bit floating-point number from radians to degrees and places
the result in the specified result words.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
Source (degrees, 32-bit floating-point data)
Result (radians, 32-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 32-bit floating-point value.
ON if the absolute value of the result is too small to be
expressed as a 32-bit floating-point value.
ON if the result is negative.
OFF in all other cases.
DEG(459)
S
S: First source word
R
R: First result word
Step program areas
Subroutines
OK
Section 3-15
DEG(459)
@DEG(459)
Not supported.
Interrupt tasks
OK

Advertisement

Table of Contents
loading

Table of Contents