Write dis play vari able com mand 34, Cre ate dis play vari able com mand 34, Set cur sor po si tion com mand 34 – Maple Systems MAP450D User Manual
Page 35: Read cur sor po si tion com mand 34, Create display variable 34, Read cursor position 34, Set cursor position 34, Write display variable 34, Read cursor position control command 34, Set cursor position control command 34

Write Display Variable Command
ESC
v text terminator
text:
ASCII characters to be written to the display variable
Response: none
Description: Allows the host controller to change the contents of a display variable.
The old contents of the display variable are not erased until a new character overwrites
the old character. If the text is longer than the display variable, the excess characters
are ignored.
Example: PRINT CHR(27); “V12345”; CHR(2)
Create Display Variable Command
ESC
w length terminator
length:
1 to 40, defaults to 4 if not specified
Response: none
Description: Allows the host controller to create a display variable at the current cursor
position. The area allocated for the display variable is cleared and the cursor is placed
to the right of the field. When the host controller writes to the display variable using the
Write Display Variable control command, the display variable is updated accordingly.
Example: PRINT CHR(27); “W10”; CHR(2)
Set Cursor Position Command
ESC
x column line terminator
column:
0 = no change, 1 to 40 = specified column#
line:
0 = no change, 1 = line #1, 2 = line #2
Response: none
Description: Allows the host controller to move the cursor without affecting the display
contents.
Example: PRINT CHR(27); “x32”; CHR(2)
Read Cursor Position Command
ESC
y terminator
Response: column line terminator
column:
01 to 40 = cursor’s current column#
line:
1 = line #1, 2 = line #2
Description: Allows the host controller to determine the cursor’s current position.
Example: PRINT CHR(27); “y”; CHR(2)
Appendix A: Control Commands
34
1010-0101, Rev. 00