Printronix SL4M Guida All'Installazione Rapida
50
Chapter
4
Using BarCode 2000 XML Direct
Configuration File & Print Destination Table
You can use an editor to edit the configuration file manually. This section will
explain how to setup the configuration file. The
explain how to setup the configuration file. The
BARCODE 2000 XML
DIRECT Configuration File, BC2000.cfg, contains configuration data for the
site. It is stored in the “unibar base directory”. Normally, the Java
site. It is stored in the “unibar base directory”. Normally, the Java
BARCODE
2000 XML DIRECT Configuration Module updates it. However, if the Label
Formatter is running on a system without a Java runtime the user can change
the file with any text editor.
Formatter is running on a system without a Java runtime the user can change
the file with any text editor.
The file is delivered with examples of all possible settings, many of which are
commented out. The user will often be able to make changes simply by
commenting out lines or un-commenting lines. *.cfg files should always be
saved in text (ASCII) format.
commented out. The user will often be able to make changes simply by
commenting out lines or un-commenting lines. *.cfg files should always be
saved in text (ASCII) format.
General Format
The pound sign ‘#’ is used as a comment delimiter. When placed on a line in
BC2000.cfg, the remainder of the line is ignored.
BC2000.cfg, the remainder of the line is ignored.
The file is divided into sections. For example, the Printer Destination Table
section, shown below describes the printer destinations configured for the
site.
section, shown below describes the printer destinations configured for the
site.
Each section begins with a header in square brackets. The section continues
until either a new section header is encountered or the end of the file is
reached.
until either a new section header is encountered or the end of the file is
reached.
Each section consists of a set of elements. A simple element sets one value,
for example “DEFAULT=Shipping”. A complex element consists of a set of
simple elements. For example, the complex element PRT_DEST consists of
three simple elements, as shown below in the Printer Destination Table
section.
for example “DEFAULT=Shipping”. A complex element consists of a set of
simple elements. For example, the complex element PRT_DEST consists of
three simple elements, as shown below in the Printer Destination Table
section.
Printer Destination Table
The output of the
BARCODE 2000 XML DIRECT programs (Designer,
Formatter …) is a print stream that can be sent to one of three types of
destinations:
destinations:
1. Sent directly to a device, (e.g., “/dev/lp0”)
2. Piped to a program, (e.g., “lp -d LabelPrinter”)
3. Written to a file
The user can define a number of printer destinations in BC2000.cfg. Each
entry consists of a logical name, a physical name and a destination type. This
provides a way to use a simple logical name to refer to a sometimes-complex
physical destination (such as “lp -d LabelPrinter -m -q 3 -s “).
entry consists of a logical name, a physical name and a destination type. This
provides a way to use a simple logical name to refer to a sometimes-complex
physical destination (such as “lp -d LabelPrinter -m -q 3 -s “).
This also provides a way to change physical printer destinations without
changing the application program. Simply update the BC2000.cfg file and the
applications and operators continue to use the logical names they used
before.
changing the application program. Simply update the BC2000.cfg file and the
applications and operators continue to use the logical names they used
before.
To print to a particular printer destination, the user specifies the logical name
of that printer. If no logical printer is specified, the program uses the default as
specified in the BC2000.cfg file.
of that printer. If no logical printer is specified, the program uses the default as
specified in the BC2000.cfg file.