
232
____________________________________________________________________
I/O statement
LOCATE
Moves the cursor to a specified position and changes the cursor shape.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
Syntax 1:
LOCATE [column][,row[,cursorswitch]]
Syntax 2:
LOCATE,,cursorswitch
Parameter:
Parameter:Parameter:
Parameter:
A numeric expression which returns a value given below.
Screen mode Screen font
column row
cursorswitch
Single-byte
ANK Mode
Standard-size
font
Small-size font
1 to 22
1 to22
1 to 8
1 to 10
0 to 2, and 255
Two-byte Kanji
Mode
Standard-size
font
Small-size font
1 to 17
1 to 22
1 to 7
1 to 9
0 to 2, and 255
0 to 2, and 255
Description:
Description:Description:
Description:
LOCATE moves the cursor to a position specified by column number and row number as
coordinates on the LCD. It also changes the cursor shape as specified by
cursorswitch.
• The cursor location in the upper left corner of the LCD is 1, 1 which is the default.
• cursorswitch specifies the cursor shape as listed below.
cursorswitch value Cursor shape
0 Invisible
1 Underline cursor (default)
2 Full block cursor
255 User-defined cursor
• If some parameter is omitted, the current value remains active. If you omit column, for
example, the cursor stays in the same column but moves to the newly specified row
position.
Komentarze do niniejszej Instrukcji