S
MART
AXIS P
RO
/ L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
13-13
13: S
CRIPTS
Data type conversion
Data comparison and copy
Arcsine
ASIN(
)
Arcsine of
(-1 to +1) in radian value (-
/2 to +
/2) is returned.
Specify arbitrary formula for argument
.
This can only be used for data type F (float).
Arccosine
ACOS(
)
Arccosine of
(-1 to +1) in radian value (0 to
) is returned.
Specify arbitrary formula for argument
.
This can only be used for data type F (float).
Arctangent
ATAN(
);
Arctangent of
(-1 to +1) in radian value (-
/2 to +
/2) is returned.
Specify arbitrary formula for argument
.
This can only be used for data type F (float).
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 F (float).
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 F (float).
Function
Format
Description
Conversion from
BCD to Binary
BCD2BIN(
)
BCD value of
is returned in binary value.
This can be used with data types W (word), I (integer), D (double word), and L
(long).
Conversion from
Binary to BCD
BIN2BCD(
)
Binary value of
is returned in BCD value.
This can be used with data types W (word), I (integer), D (double word), and L
(long).
Conversion from
float to Binary
FLOAT2BIN(
)
Float value of
is returned in binary value.
Values after the decimal point is truncated.
This can be used with data types W (word), I (integer), D (double word), and L
(long).
Conversion from
Binary to float
BIN2FLOAT(
)
Binary value of
is returned in float value.
This can be used with data types D (double word) and L (long).
Conversion from
Decimal to String
character
DEC2ASCII(
,
)
Decimal number value
is converted to a character string, and store in order with
as a starting device.
This can be used with data types W (word), I (integer), D (double word), and L
(long).
Conversion from
String character to
Decimal
ASCII2DEC(
)
Character string
is returned as decimal number value.
This can be used with data types W (word), I (integer), D (double word), and L
(long).
Function
Format
Description
Data
comparison
MEMCMP(
,
,
)
: Starting device of comparison target 1
: Starting device of comparison target 2
: Range of comparison (in words)
Values of device
for
words and values of device
for words
are
compared.
1 is returned if all the values of devices match, and 0 is returned if any of the value does
not match.
Specified range is compared in word unit, and result is returned.
Up to 64 words can be compared.
Function
Format
Description
Summary of Contents for SmartAXIS FT9Z-1A01
Page 1: ...FT9Y B1378 7...
Page 10: ...TABLE OF CONTENTS Preface 9 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 212: ...7 DEVICE ADDRESSES 7 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 230: ...8 INSTRUCTIONS FUNCTION BLOCKS REFERENCE 8 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 344: ...13 SCRIPTS 13 36 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378...
Page 386: ...APPENDIX Appendix 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 Japanese Font JIS X0201...
Page 393: ......