FE MONITOUCH V8 SERIES Reference: Additional Functions page 380

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents