IDEC FT1A Series User Manual page 331

Hide thumbs Also See for FT1A Series:
Table of Contents

Advertisement

Example 7.4
Natural logarithm
Script
[D0010] = LOGE([D0020]);
Operation Description
Calculates the natural logarithm of the value of D0020 and the result is stored in D0010.
Only the data type F (float) can be used.
Example 7.5
Common logarithm
Script
[D0010] = LOG10([D0020]);
Operation Description
Calculates the logarithm of the value of D0020 with 10 as the base and the result is stored in D0010.
Only the data type F (float) can be used.
Example 7.6
Power
Script
[D0010] = POW([D0020],[D0030]);
Operation Description
Calculates the power of the values.
For example, if the value of D0020 is 10 and the value of D0030 is 5, the function calculates 10 to the power of 5 and stores the
result in D0010.
Only the data type F (float) can be used.
Example 7.7
Square root
Script
[D0010] = ROOT([D0020]);
Operation Description
Calculates the square root of the value of [D0020] and the result is stored in [D0010].
Only the data type F (float) can be used.
Example 7.8
Sine
Script
[D0010] = SIN([D0020]);
Operation Description
Calculates the sine of the radian value of D0020 and stores the result in D0010.
Only the data type F (float) can be used.
Example 7.9
Cosine
Script
[D0010] = COS([D0020]);
Operation Description
Calculates the cosine of the radian value of D0020 and stores the result in D0010.
Only the data type F (float) can be used.
S
AXIS P
/L
U
'
MART
RO
ITE
SER
S
M
FT9Y-B1378
ANUAL
13: S
CRIPTS
13-27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents