FE MONITOUCH V8 SERIES Reference: Additional Functions page 376

Table of Contents

Advertisement

F0 = TAN (F1) (F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FLOAT
Function: Tangent
This macro command is used to store a tangent 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
TAN
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 tan 45° in radians;
$u200 = RAD (45) (F)
$u100 = TAN ($u200) (F)
The operation result of "1" is stored in $u100.
* For more information on tanθ of the trigonometric functions, refer to "Example" of sine on
page 23-5.
Supplementary information
• $s1056 stores the result of macro execution.
Code (DEC)
0
1
2
3
*1 An indefinite value is stored in [F0].
*2 When the value specified for [F1] is π × (0.5 + n), "-1" is stored in [F0]. (n: integer)
• 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
Contents
Normal
*1
Overflow
*1
Underflow
*2
Operation execution error
23
Macro
23
Constant
23-7

Advertisement

Table of Contents
loading

Table of Contents