FE MONITOUCH V8 SERIES Reference: Additional Functions page 374

Table of Contents

Advertisement

F0 = SIN (F1) (F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FLOAT
Function: Sine
This macro command is used to store a sine of the angle (in radians) specified for [F1] in [F0].
Specify values for [F0] and [F1] in the format of decimal floating-point data (FLOAT).
FLOAT
SIN
F1+1
F1
Available memory
Internal Memory
F0
F1
Range
F0
IEEE 32-bit single precision real number
F1
Example
• To obtain the value for sin 90° in radians;
$u200 = RAD (90) (F)
$u100 = SIN ($u200) (F)
The operation result of "1" is stored in $u100.
The sine, cosine and tangent of the
trigonometric functions can be
obtained based on the formula given
to the right.
• Radian (circular measure)
1 rad = 360/2π =
Approx. 57.29578 degrees
Supplementary information
• $s1056 stores the result of macro execution.
Code (DEC)
0
1
2
* An indefinite value is stored in [F0].
• To convert the unit of an angle, use the macro command of DEG (page 23-11) or RAD (page
23-12).
FLOAT
F0+1
F0
PLC1 - PLC8
Memory Card
Memory
: Setting enabled (indirect designation disabled)
: Setting enabled (indirect designation enabled)
Value
(-1,0)
Contents
Normal
Overflow*
Underflow*
23
Macro
Constant
Y axis
(0,1)
(x,y)
r
X axis
(0,0)
(1,0)
(0,-1)
23-5
23

Advertisement

Table of Contents
loading

Table of Contents