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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Floating-point Math Instructions
Flags
Precautions
3-14-10 RADIANS TO DEGREES: DEG(459)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
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.
DEG(459)
S
S: First source word
R
R: First result word
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
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
.
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.
Step program areas
Subroutines
OK
S
CIO 0 to CIO 6142
W0 to W510
H0 to H510
A0 to A958
T0000 to T4094
C0000 to C4094
Section 3-14
DEG(459)
@DEG(459)
Not supported.
Interrupt tasks
OK
R
A448 to A958
493

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents