FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726 26-31
26: S
CRIPT
Example 7.10 Tan g en t
Script
Operation Description
Calculates the tangent of the radian value of D0020 and stores the result in D0010.
Only the data type F (float) can be used.
Example 7.11 Arcsine
Script
Operation Description
Calculates the arcsine of the value of D0020 and stores the result as radians in D0010.
Only the data type F (float) can be used.
Example 7.12 Arccosine
Script
Operation Description
Calculates the arccosine of the value of D0020 and stores the result as radians in D0010.
Only the data type F (float) can be used.
Example 7.13 Arctangent
Script
Operation Description
Calculates the arctangent of the value of D0020 and stores the result as radians in D0010.
Only the data type F (float) can be used.
Example 7.14 Convert angle to radians
Script
Operation Description
Converts the value of D0020 from degrees (°) to radians and stores the result in D0010.
Only the data type F (float) can be used.
Example 7.15 Convert radians to angle
Script
Operation Description
Converts the value of D0020 from radians to degrees (°) and stores the result in D0010.
Only the data type F (float) can be used.
[D0010] = TAN([D0020]);
[D0010] = ASIN([D0020]);
[D0010] = ACOS([D0020]);
[D0010] = ATAN([D0020]);
[D0010] = RAD([D0020]);
[D0010] = DEG([D0020]);