Create display variable command, Set cursor position command, Read cursor position command – Maple Systems STEPware-100 User Manual

Page 66

Advertising
background image

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

A-9

1010-0096, Rev. 04

Advertising