Invoking the compiler – Rockwell Automation 2708-DH5B2L_DH5B4L Attended Workstation User Manual

Page 94

Advertising
background image

CROSS-COMPILER (LXB)

Chapter 11

The A-B VBASIC

11–2

The LXB compiler is executed on a PC by entering the following command.
You must be in the right directory, or have the directory containing the
LXB.EXE file set in your PATH. Optional parameters are in parentheses:

LXB param 1 (,param2) (,param3) (,param4)

The parameters are:

param1

Source filename (Default extension: .BAS)

param2

Download filename (Default extension: .LXE)

param3

Listing filename (Default extension: .LST)

param4

Secondary download filename (Automatic extension .PGM)

Entering the LXB command without any parameters will cause the compiler
to prompt for the source, download, and list file names, offering defaults as
appropriate. The default file extensions are in most cases the only allowable
ones, and should not be specified or overwritten:

A.BAS source file extension is assumed. The source filename must always
be specified.

The .LXE file is always generated. If the .LXE filename is omitted, it
assumes the same name as the source file, and has the extension LXE.

If the .LST filename is omitted, the compiler will not generate a listing. Use
a comma to hold its place if you want to specify a 4th parameter but don’t
want to enter the filename for the .LST file.

If the .PGM filename is omitted, the compiler will not generate a secondary
download file. If it is specified, LXB will output (in addition to the regular
.LXE file) a download file which contains the necessary network directives
to cause the program to be stored in RAM and not immediately executed
upon download. This feature is used for programs which will be CHAINed to
later on. The RAM filename for the CHAIN statement will be the one
specified in this parameter. In order for the fourth file to be generated, the
.LXE file’s default extension of “.LXE” MUST NOT be overridden.

Invoking the Compiler

Advertising
This manual is related to the following products: