IDEC MICROSmart FC6A Series Ladder Programming Manual page 533

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

Example 7.10 Tangent
Script
[D0010] = TAN([D0020]);
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
[D0010] = ASIN([D0020]);
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
[D0010] = ACOS([D0020]);
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
[D0010] = ATAN([D0020]);
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
[D0010] = RAD([D0020]);
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
[D0010] = DEG([D0020]);
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.
FC6A S
MICROS
L
ERIES
MART
P
M
ADDER
ROGRAMMING
ANUAL
FC9Y-B1726
26: S
CRIPT
26-31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents