Hyundai HI4 operation manual String Function

Models: HI4

1 427
Download 427 pages 29.73 Kb
Page 406
Image 406

11. Robot Language Explanation

------------------------------------------------------------------------------------------------

11.4.2 String Function

The functions that have the string returned, are called the string functions.

Function Name

Description

Example

 

 

 

CHR$(a)

Returns a character which has the character code

CHR$(7)

 

of a.

 

STR$(a)

Returns a decimal string corresponding to number

STR$(13.25)

 

a.

 

BIN$(a)

Returns a binary string corresponding to a number

BIN$(&B0010)

 

a.

 

HEX$(a)

Returns a hexa string corresponding to a number

HEX$(&H7A2F)

 

a.

 

MIRROR$(a)

Returns the reverse string corresponding to a

MIRROR$("HELLO")

 

binary string a.

 

LEFT$(a, b)

Returns a string of b characters of string a.

LEFT$("HELLO", 2)

 

 

 

MID$(a, b, c)

Returns a string of c characters from bth

MID$("HELLO", 1, 3)

characters of string a.

 

 

 

 

 

RIGHT$(a, b)

Returns a string of b characters from the back

RIGHT$("HELLO", 2)

 

of string a.

 

DATE$

Returns a current date string (YY/MM/DD)

DATE$

 

 

 

TIME$

Returns a current time string (HH:MM:SS)

TIME$

 

 

 

11.4.3 Robot Language corresponding to a existing MIT Function Code.

The same result of each operation of existing MIT function code can be obtained by using the robot language command instructions in appropriate places. The followings are the examples of such cases. The code corresponding to the other command instruction are indicated by the background color.

----------------------------------------------------------------------------------------

11 - 41

Page 406
Image 406
Hyundai HI4 operation manual String Function