IDEC High Performance Series User Manual
Page 984
4 Script Definition Method
20-20
WindO/I-NV2 User’s Manual
Arithmetic operation (Continued)
Data type conversion
Function
Format
Description
Square root
ROOT(
)
Square root of
is returned.
• This can only be used for data type float32.
Sine
SIN(
)
Sine of
(-1 - +1) is returned. Specify arbitrary formula to represent
angle (units in radian) for argument
.
• This can only be used for data type float32.
Cosine
COS(
)
Cosine of
(-1 - +1) is returned. Specify arbitrary formula to
represent angle (units in radian) for argument
.
• This can only be used for data type float32.
Tangent
TAN(
)
Tangent of
(-1 - +1) is returned. Specify arbitrary formula to
represent angle (units in radian) for argument
.
• This can only be used for data type float32.
Arcsine
ASIN(
)
Arcsine of
(-1 - +1) in radian value (-π/2 - +π/2) is returned.
Specify arbitrary formula for argument
.
• This can only be used for data type float32.
Arccosine
ACOS(
)
Arccosine of
(-1 - +1) in radian value (0 - π) is returned.
Specify arbitrary formula for argument
.
• This can only be used for data type float32.
Arctangent
ATAN(
);
Arctangent of
(-1 - +1) in radian value (-π/2 - +π/2) is returned.
Specify arbitrary formula for argument
.
• This can only be used for data type float32.
Conversion
from Angle to
Radian
RAD(
);
Value of
is converted from degree (°) to radian, and the value is
returned.
• This can only be used for data type float32.
Conversion
from Radian
to Angle
DEG(
);
Value of
is converted from radian to degree (°), and the value is
returned.
• This can only be used for data type float32.
Function
Format
Description
Conversion
from BCD to
Binary
BCD2BIN(
)
BCD value of
is returned in binary value.
• This can be used with data types BIN16 (+), BIN16 (+/-), BIN32 (+), and
BIN32 (+/-).
Conversion
from Binary to
BCD
BIN2BCD(
)
Binary value of
is returned in BCD value.
• This can be used with data types BIN16 (+), BIN16 (+/-), BIN32 (+), and
BIN32 (+/-).
Conversion
from float32
to Binary
FLOAT2BIN(
)
Float32 value of
is returned in binary value.
Values under the decimal point is truncated.
• This can be used with data types BIN32 (+) and BIN32 (+/-).
Conversion
from Binary to
float32
BIN2FLOAT(
)
Binary value of
is returned in float32 value.
• This can be used with data types BIN32 (+) and BIN32 (+/-).
Conversion
from Decimal
to String
character
DEC2ASCII(
,
)
Decimal number value
is converted to a character string, and store
in order with
as a beginning device.
• This can be used with data types BIN16 (+), BIN16 (+/-), BIN32 (+),
BIN32 (+/-), BCD4, and BCD8.
Conversion
from String
character to
Decimal
ASCII2DEC(
)
Character string
is returned as decimal number value.
• This can be used with data types BIN16 (+), BIN16 (+/-), BIN32 (+),
BIN32 (+/-), BCD4, and BCD8.
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
b
b
a
a
a