A – predefined constants, Using the envpc simulator (cont’d) – Rockwell Automation 2708-NBD VBASIC Language Development Kit User Manual

Page 42

Advertising
background image

Chapter 5

A-B VBASIC Application Library

5–5

Since that is all that your BASIC program would input.

TAB C or ALT C:

Com port manual input. You key in a record which
simulates an input record from your RS-232 or
RS-422 com port. Note that Master, Submaster, and
Concentrator workstations cannot use the com port
since it is in use by the network.

TAB A or ALT A:

Aux port manual input. A manual input record from
RS-232 or AUX port.

TAB D or ALT D:

Puts the display in 40 column mode (FOR COLOR
MONITORS ONLY!). The next TAB or ALT
command will switch back to 80 column mode.

TAB L or ALT L:

Starts or stops logging. When logging is enabled, all
output to all devices (except the display and front
panel LEDs), and all input (except from the
keyboard) is recorded in a file (usually named
LINXIO.LOG). The log file contains a timestamp
and device name for each I/O record.

TAB F or ALT F:

Opens a device input file. The Barcode, Host, Com,
and Aux devices may each have an open device
input file. Each time you press ALT N, the next
record can be input from that file instead of keying
in the records by hand. This can be a big time saver
when simulating a complex application. You will be
asked for the device that you want to input for (BC,
H, C, or A) and you select the letter. You are then
asked for a file name to input from. Make sure you
enter the correct name or the emulator will
terminate.

TAB N or ALT N:

If only a single device input file is open, then this
will perform a device read from that file. If more
than one device input file is open, then you will be
prompted for the device which you want to input for
(BC, H, C, or A).

A – Predefined Constants

Predefined constants are available in Env.BAS and EnvPC.BAS.

TRUE and FALSE may be assigned to integer variables which are used as
boolean variables.

Using the ENVPC Simulator
(cont’d)

Advertising