B – global variables, Using the envpc simulator (cont’d) – Rockwell Automation 2708-NBD VBASIC Language Development Kit User Manual

Page 43

Advertising
background image

Chapter 5

A-B VBASIC Application Library

5–6

The lower ASCII characters from 0 to 31 and 127 are named. These are:

NUL = 0

BS = 8

DLE = 16

CAN = 24

SOH = 1

HT = 9

DC1 = 17

EM = 25

STX = 2

LF = 10

XON = 18

SB = 26

ETX = 3

VT = 11

XON = 19

ESC = 27

EOT = 4

FF = 12

XOFF = 20

FS = 28

ENQ = 5

CR = 13

NAK = 21

GS = 39

ACK = 6

SO = 14

SYN = 22

RS = 30

BEL = 7

SI = 15

ETB = 23

VS = 31

DEL = 127

The function keys are named F1..F10. The SHIFTED and ALT function keys
are available as ShiftF1..ShiftF10 and AltF1..AltF10.

Alt letters are available as AltA..AltZ. Note that ENVPC uses the Alt keys
for control.

Special key equates are:

ClearKey, ExitKey, EnterKey, Up, Left, InKey, OutKey, Right, and Down

Note: Left is identical to BS (backspace) on the workstation.

B – Global Variables

InBuf$:

Filled when SlotEvent WandEvent occurs

. . . . . . . . . . . .

InCom$:

Filled when ComEvent or AuxEvent occurs

. . . . . . . . . . .

InNet$:

Filled when NetEvent occurs

. . . . . . . . . . . .

DSPWIDTH%:

Width of the display in characters (40/16) (set in

. . . . . .

OpenLINX)

ONLINE%:

Set to TRUE when Master is polling (set by

. . . . . . . . .

TestEvent%)

MEMFULL%:

Set to TRUE when File or QUE memory is almost

. . . . . .

gone

PENDING%:

Set to TRUE when a Send will pause

. . . . . . .

COMOPEN%:

TRUE if this is a normal workstation

. . . . . .

(set in OpenLINX)

TERMNUM%:

Number of this workstation (set in OpenLINX)

. . . . . .

TERMTYPE$:

Type of workstation (set in OpenLINX)

. . . . . .

EXITEVENT%:

Event code of the last event from a Read%

. . . . .

EXITOFFSET%:

Offset in a menu or string from ReadStrField% and

. . . .

Menu%

Using the ENVPC Simulator
(cont’d)

Advertising