Keyboard functions – Rockwell Automation 1747-PBASE BASIC Development Software Programming Manual User Manual

Page 125

Advertising
background image

Publication 1746-PM001A-US-P

BASIC Macro Library A-3

Keyboard Functions

The following table describes the macro CALLs that you use to perform keyboard
functions.

background_black()

Prints text with the background black.

None

None

background_red()

Prints text with the background red.

None

None

background_green()

Prints text with the background green.

None

None

background_yellow()

Prints text with the background yellow.

None

None

background_blue()

Prints text with the background blue.

None

None

background_magenta()

Prints text with the background magenta.

None

None

background_cyan()

Prints text with the background cyan.

None

None

background_white()

Prints text with the background white.

None

None

blink_off()

Has no special attributes.

None

None

lines()

Shows the user how fancy screens can be drawn.

None

None

Table A.1 Operation Macros

Screen Macro CALLs

Macro

Inputs

Outputs

Table A.2 Keyboard Macros

Keyboard Macro CALLs Macro

Inputs

Outputs

hit_any_key()

Prints

Hit any key to continue

, then waits on a program

port key to be hit.

None

None

get_key(%1)

Gets the next key typed and places its ASCII decimal value in %1.

None

%1 = next key typed

get1_key(%1)

Gets the next character from PRT1.

None

%1 = next character

get2_key(%1)

Gets the next character from PRT2.

None

%1 = next character

Advertising