EasyManua.ls Logo

IDEC MICRO/I HG1P-ST32 Series - Page 1134

IDEC MICRO/I HG1P-ST32 Series
1665 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4 Script Definition Method
20-24 WindO/I-NV4 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(F).
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(F).
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(F).
Tangen t
TAN( )
Tangen t 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(F).
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(F).
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(F).
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(F).
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(F).
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(F).
Function Format Description
Conversion
from BCD to
Binary
BCD2BIN( )
BCD value of is returned in binary value.
This can be used with data types UBIN16(W), BIN16(I), UBIN32(D), and
BIN32(L).
Conversion
from Binary to
BCD
BIN2BCD( )
Binary value of is returned in BCD value.
This can be used with data types UBIN16(W), BIN16(I), UBIN32(D), and
BIN32(L).
Conversion
from Floating
point to Binary
FLOAT2BIN( )
Float32 value of is returned in floating point value.
Values under the decimal point is truncated.
This can be used with data types UBIN32(D) and BIN32(L).
Conversion
from Binary to
Floating point
BIN2FLOAT( )
Binary value of is returned in floating point value.
This can be used with data types UBIN32(D) and BIN32(L).
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 address.
This can be used with data types UBIN16(W), BIN16(I), UBIN32(D),
BIN32(L), BCD4(B), or BCD8(EB).
Conversion
from String
character to
Decimal
ASCII2DEC( )
Character string is returned as decimal number value.
This can be used with data types UBIN16(W), BIN16(I), UBIN32(D),
BIN32(L), BCD4(B), or BCD8(EB).
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

Table of Contents

Related product manuals