C – basic language development kit limitations, D – pc simulation constants and variables, Using the envpc simulator (cont’d) – Rockwell Automation 2708-DH5B2L_DH5B4L Attended Workstation User Manual

Page 119

Advertising
background image

Chapter 13

A-B VBASIC Application Library

13–7

MODIFIED%:

True when a read changes the default value

. . . . . .

TIMEOUT%:

YOU set to 100th seconds before a timeout for reads

. . . . . . .

BLOBALMASK%:

YOU set mask used for ReadStr%, ReadStrField%,

. .

ReadInt% etc.
GLOBALATTR%:

YOU set attributes use for ReadStr%,

. . .

ReadInt%, etc.
INSERTMODE%:

YOU set FALSE to disable insert mode on Read...

. . .

C – BASIC Language Development Kit Limitations

The BASIC Language Development Kit (Catalog No. 2708-NBD)
subroutines provide access to all of the devices supported by the workstation.
The following are some of the I/O methods that they do not support.

If ENV is unable to provide exactly the kind of support you require,
MODIFY BOTH ENV.BAS AND ENVPC.BAS to add the special support
you need. This way you can continue to debug your program under the
Visual BASIC Environment before you download it to the workstation.

You don’t have to use ENV or any part of it. We recommend it because it
greatly speeds development and provides a common base for many
workstation applications.

D – PC Simulation Constants and Variables

Note: Device numbers #20 and up are reserved for use by ENV.BAS.

PcMode

is TRUE when running under the emulator

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

(ENVPC.BAS)

DSPWIDTH%

is set to 40

. . . . . .

EmAltAccess is TRUE. Set it to FALSE to allow your program to access
ALT keys. These are normally trapped by the emulator for device I/O access.

Bar code data is collected with the subroutine TestEvent%. The subroutine
will return a BadgeEvent when the data has been read into InBuf$. Examine
BadgeType for barcode inputs to get the bar code type (“Code 3 of 9”, “I25”,
“UPC”, “CBAR”, or “C128”).

Using the ENVPC Simulator
(cont’d)

Advertising
This manual is related to the following products: