IDEC High Performance Series User Manual

Page 1004

Advertising
background image

5 Script Coding Examples

20-40

WindO/I-NV2 User’s Manual

Script

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

Script

Operation description
Converts the value of D20 from degrees (°) to radians and stores the result in D10.
Only the data type float32 can be used.

Script

Operation description
Converts the value of D20 from radians to degrees (°) and stores the result in D10.
Only the data type float32 can be used.

Example 5.7.13 Arctangent

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

Example 5.7.14 Convert angle to radians

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

Example 5.7.15 Convert radians to angle

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

Advertising
This manual is related to the following products: