FE MONITOUCH V8 SERIES Reference: Additional Functions page 381

Table of Contents

Advertisement

23
Macro
F0 = RAD (F1) (F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FLOAT
Function: Convert degree to radian
This macro command is used to convert the unit of an angle specified for [F1] from degrees to radians
and store the converted value in [F0].
Specify values for [F0] and [F1] in the format of decimal floating-point data (FLOAT).
FLOAT
RAD
Available memory
F0
F1
Range
F0
F1
Example
• To obtain the value for 180° in radians;
$u100 = RAD (180) (F)
The operation result of "3.141592" (= π) is stored in $u100.
Supplementary information
• $s1056 stores the result of macro execution.
Code (DEC)
* An indefinite value is stored in [F0].
23-12
F1+1
F1
Internal Memory
IEEE 32-bit single precision real number
0
1
2
FLOAT
F0+1
F0
PLC1 - PLC8
Memory Card
Memory
: Setting enabled (indirect designation disabled)
: Setting enabled (indirect designation enabled)
Value
Contents
Normal
Overflow*
Underflow*
Constant

Advertisement

Table of Contents
loading

Table of Contents