EasyManua.ls Logo

Omron CQM1H - PROGRAM - Sine: sin; Sin

Omron CQM1H - PROGRAM
602 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
362
Floating-point Math Instructions Section 5-24
Flags 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.)
5-24-11 SINE: SIN(––)
Limitations 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.
Description When the execution condition is OFF, SIN(––) is not executed. When the exe-
cution condition is ON, SIN(––) calculates the sine of the angle (in radians)
expressed as a 32-bit floating-point value in S+1 and S and places the result
in R+1 and R. (The floating point source data must be in IEEE754 format.)
Specify the desired angle (–65,535 to 65,535) in radians in S+1 and S. If the
absolute value of the angle exceeds 65,535, an error will occur and the
instruction won’t be executed. For information on converting from degrees to
radians, see 5-24-9 DEGREES TO RADIANS: RAD(––).
The following diagram shows the relationship between the angle and result.
Flags 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.)
S: First source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
R: First result word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
Third operand: Always 000
−−−
SIN(−− )
S
R
000
@SIN(−− )
S
R
000
R+1 R
S
Source (32-bit floating-point data)
S+1
Result (32-bit floating-point data)
SIN
S: Angle (radian) data
R: Result (sine)
R

Table of Contents

Related product manuals