A – source file specification, Invoking the compiler (cont’d) – Rockwell Automation 2708-DH5B2L_DH5B4L Attended Workstation User Manual
Page 95
CROSS-COMPILER (LXB)
Chapter 11
The A-B VBASIC
11–3
Examples:
LXB
In the case above, the operator is prompted for 3 file names.
LXB Prog1
In this case, the file Prog1.BAS is read, and Prog1.LXE is the product. (This
is the fastest compile option.)
LXB Prog1,Prog1,Prog1
File Prog1.BAS is the source, Prog1.LXE and Prog1.LST are generated.
LXB Prog1,Download,PRN
Generate Download.LXE, and send listing directly to the printer (PRN).
LXB Prog1,Startnow,Prog1,Wait
Generate Startnow.LXE and Wait.PGM output files, and Prog1.LST as the
listing file.
A – Source File Specification
The A-B VBASIC compiler requires a plain ASCII text file. By default, the
Visual BASIC editor saves the source text in a compacted format. Be sure to
use the SAVE AS option in Microsoft’s Visual BASIC to save the source as
an ASCII file. LXB cannot recognize the compacted representation.
For a tutorial on BASIC programming, please refer to Microsoft’s “Learning
and Using Microsoft Visual BASIC”, and “Programming in BASIC”, both of
which are supplied with the Application Generator Software (Catalog No.
2708-NAG) and BASIC Language Development Kit Software (Catalog No.
2708-NBD). A list of the STATEMENTS & FUNCTIONS supported by A-B
VBASIC can be found in Appendix M of this manual.
Invoking the Compiler
(cont’d)