Radians To Degrees: Deg - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Floating-point Math Instructions
Flags
5-24-10 RADIANS TO DEGREES: DEG(––)
Limitations
Description
If the absolute value of the result is greater than the maximum value that can
be expressed as floating-point data, the Overflow Flag (SR 25404) 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 (SR 25405) will turn ON
and the result will be output as 0.
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
ON if the source data is not recognized as floating-point data.
EQ:
ON if both the exponent and mantissa of the result are 0.
OF:
ON if the absolute value of the result is too large to be expressed as a
32-bit floating-point value. (The result will be output as ±∞ .)
UF:
ON if the absolute value of the result is too small to be expressed as a
32-bit floating-point value. (The result will be output as 0.)
Ladder Symbols
DEG(−−)
@DEG(−−)
S
R
000
The source data in S+1 and S must be in IEEE754 floating-point data format.
DM 6143 to DM 6655 cannot be used for R.
When the execution condition is OFF, DEG(––) is not executed. When the
execution condition is ON, DEG(––) converts the 32-bit floating-point number
in S+1 and S from radians to degrees and places the result in R+1 and R.
(The floating point source data must be in IEEE754 format.)
S+1
R+1
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 (SR 25404) 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 (SR 25405) will turn ON
and the result will be output as 0.
S: First source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
S
IR, SR, AR, DM, EM, HR, LR
R
Third operand: Always 000
000
Source (radians, 32-bit floating-point data)
S
Result (degrees, 32-bit floating-point data)
R
Section 5-24
Operand Data Areas
R: First result word
−−−
361

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents