![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429067.webp)
57
<x> is an expression in radian units.
Example:
A = TAN(3.141592/2)
4-2-6
Character String Functions
ASC Function
Purpose:
To return the ASCII character code of the first character of the
given string
Format: ASC(<x$>)
Example:
A = ASC(A$)
Remarks:
An empty string cannot be specified. The CHR$ function performs the in-
verse operation.
CHR$ Function
Purpose:
To return a character corresponding to the specified character
code
Format:
CHR$(<i>)
Example:
A$ = CHR$(&H41)
Remarks:
<i> must be from 0 to 255. If <i> is a real number, it will be rounded off and
converted into an integer. The ASC function performs the inverse operation.
HEX$ Function
Purpose:
To return a string which represents the hexadecimal value of the
decimal argument
Format: HEX$(<x>)
Example:
A$ = HEX$(52)
Remarks:
If the value of the decimal number includes a decimal point, the INT function
is internally executed to round it off to an integer.
INSTR Function
Purpose:
To return the position of the first occurrence of string <y$> within
string <$x>
Format:
INSTR([<i>,]<x$>,<y$>)
<i> is the position from where the search starts. <i> must be be-
tween one and 255.
<x$> is the string to be searched.
<y$> is the desired string.
Example:
A = INSTR(5,B$,“BASIC”)
Remarks:
If <i> is omitted, the search begins with the first character in <x$>. If the data
cannot be found, 0 is returned as the function value. If <y$> is an empty
string, INSTR returns <i> or 1.
LEFT$ Function
Purpose:
To return the specified number of characters beginning from the
leftmost character of the character string
BASIC Language
Section 4-2
Содержание SYSMAC C200H-ASC02
Страница 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Страница 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Страница 122: ...Appendix B Specifications 115 130 35 100 5 ...
Страница 167: ...Cat No W165 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...
Страница 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...