Script – IDEC High Performance Series User Manual

Page 1003

Advertising
background image

WindO/I-NV2 User’s Manual

20-39

5 Script Coding Examples

20

Script

Script

Operation description
Calculates the square root of the value of [D 20] and the result is stored in [D 10].
Only the data type float32 can be used.

Script

Operation description
Calculates the sine of the radian value of D20 and stores the result in D10.
Only the data type float32 can be used.

Script

Operation description
Calculates the cosine of the radian value of D20 and stores the result in D10.
Only the data type float32 can be used.

Script

Operation description
Calculates the tangent of the radian value of D20 and stores the result in D10.
Only the data type float32 can be used.

Script

Operation description
Calculates the arcsine of the value of D20 and stores the result as radians in D10.
Only the data type float32 can be used.

Script

Operation description
Calculates the arccosine of the value of D20 and stores the result as radians in D10.
Only the data type float32 can be used.

Example 5.7.7

Square root

[D 10] = ROOT([D 20]);

Example 5.7.8

Sine

[D 10] = SIN([D 20]);

Example 5.7.9

Cosine

[D 10] = COS([D 20]);

Example 5.7.10 Tangent

[D 10] = TAN([D 20]);

Example 5.7.11 Arcsine

[D 10] = ASIN([D 20]);

Example 5.7.12 Arccosine

[D 10] = ACOS([D 20]);

Advertising
This manual is related to the following products: