CPCL Programming Manual
CPCL Programming Manual
Proprietary Statement
This manual contains proprietary information of Zebra Technologies Corporation. It
is intended solely for the information and use of parties operating and maintaining
the equipment described herein. Such proprietary information may not be used,
reproduced, or disclosed to any other parties for any other purpose without the
expressed written permission of Zebra Technologies Corporation.
Product Improvements
Since continuous product improvement is a policy of Zebra Technologies Corpora-
tion, all specifications and signs are subject to change without notice.
Liability Disclaimer
Inasmuch as every effort has been made to supply accurate information in this
manual, Zebra Technologies Corporation is not liable for any erroneous information
or omissions. Zebra Technologies Corporation reserves the right to correct any such
errors and disclaims liability resulting therefrom.
No Liability for Consequential Damage
In no event shall Zebra Technologies Corporation or anyone else involved in the
creation, production, or delivery of the accompanying product (including hardware
and software) be liable for any damages whatsoever (including, without limitation,
damages for loss of business profits, business interruption, loss of business
information, or other pecuniary loss) arising out of the use of or the results of use of
or inability to use such product, even if Zebra Technologies Corporation has been
advised of the possibility of such damages. Because some states do not allow the
exclusion of liability for consequential or incidental damages, the above limitation
may not apply to you.
Copyrights
The copyrights in this manual and the systems described therein are owned by
Zebra Technologies Corporation. All rights are reserved. Unauthorized reproduction
of this manual or the software in any of the system modules may result in imprison-
ment of up to one year and fines of up to $10,000 (17 U.S.C.506). Copyright
violators may be subject to civil liability.
All products and brand names are trademarks of their respective companies. All
rights reserved.
{} Required item
[] Optional item
() Abbreviated command
Application Number
Report appears only
on units with wireless
options installed. (see
RF LAN section below
and next page)
Units with no wireless
options will print an
empty line and resume
the report.
RF LAN Section
(Network Printers
only) Refer to
Section 12.
SRRF Software
version
SRRF settings
IR Software version
Resident Fonts
Pre-scaled or Scalable
Fonts (if any) loaded in
Memory
Instructions on
entering
Communications
Diagnostics (Dump)
Mode. Refer to P1-6
(831, 0)
4" Printer [1246,0]
(383, 0)
(447, 0)
(575, 0)
2" Printer [574,0]
[1246,y]
(831,y)
(575, y)
[862,y]
(447, y)
[670,y]
(383, y)
[574,y]
Notes:
1. Coordinates refer to the actual printing area of the printers.
2. y =the available label height which varies with the resident
application. (See Getting Printer Information, Page P1-2.)
Format:
<!> {offset} <200> <200> {height} {qty}
where:
maximum ht. =
d - .062 d
[1.5mm]
Input (HELLO.LBL):
Output:
PRINT Command
Format:
{command}
where:
{command}: PRINT
Format:
{command}
where:
{command}: FORM
Input: FORM.LBL
! 0 200 200 3 1
IN-CENTIMETERS
CENTER
TEXT 4 1 0 .5 Form Command
FORM
PRINT
Format:
{command}
where:
{command}: JOURNAL
Format:
{command}
where:
Input 1 (UNITS1.LBL):
Output 1:
Input 2 (UNITS2.LBL):
Output 2:
Input (COMMENT.LBL):
! 0 200 200 25 1
IN-MILLIMETERS
JOURNAL
; Center justify text
CENTER
; Print the words 'A COMMENT'
TEXT 5 1 0 5 A COMMENT
; Print the label and go to top of next form
FORM
PRINT
Output:
Format:
where:
Input (TEXT.LBL):
Output:
Format:
where:
{command}: FG
Input (FG.LBL):
Output:
where:
Input (CONCAT.LBL):
Output:
Format:
{command} {height}
{text} {font} {size} {x} {y}
{data}
{data}
<ENDMULTILINE>
where:
Input (MULTIL.LBL):
Output:
Format:
where:
{command}: COUNT
Input (COUNT.LBL):
Output:
Format:
where:
{command}: SETMAG
Input (SETMAG.LBL):
Output:
Format:
where:
Input (SCALE.LBL):
Output:
Format:
where:
Input (STF.LBL):
! 0 200 200 100 1
IN-MILLIMETERS
CENTER
; Fit a text string into an area 40mm wide by 10mm
; high
SCALE-TO-FIT PLL_LAT.CSF 40 10 0 10 SALE
; Fit a longer text string into the same 40mm wide
; by 10mm high area
SCALE-TO-FIT PLL_LAT.CSF 40 10 0 20 SALE PRICE
; Fit SALE text into a 40mm wide by 20mm high
; area
SCALE-TO-FIT PLL_LAT.CSF 40 20 0 30 SALE
FORM
PRINT
Output:
Format:
Input (STC.LBL):
Output:
Format:
{command} {angle}
where:
Input (ROTATE.LBL):
Output:
UPC-A UPC-E
EAN-13 EAN-8
CODE 39 CODE 93
I 2 OF 5 CODE 128
UCC-128 CODABAR
CODABAR
Codabar is ideal for applications that contain mostly
numeric symbols that may vary in length from bar code to
bar code. It can encode the digits from 0 to 9, the char-
acters -(dash), $(dollar sign), : (colon), / (forward
slash), . (period), and + (plus) as well as start/stop
characters A through D.
One optional checksum is automatically appended as
the least significant digit in the barcode data directly
before the stop character. The barcode symbology speci-
fication contains all the information on calculating the
checksum. As a short example, our data will be
A37859B where A and B are start/stop characters. The
characters 0 through 9 are assigned the numerical values
0 through 9 respectively. - is 10, $ is 11, :is 12, / is
13, . is 14, + is 15, and start/stop characters A B C and
D are 16, 17, 18, and 19 respectively.
CODABAR SPECIFICATIONS
Ideal Ideal
Barcode Barcode Wide/Narrow Narrow Checksum
Symbology Type Input Length Characters Ratio Dot Width C a l c u l a t i o n
Ideal Ideal
Barcode Barcode Wide/Narrow Narrow C h e c k s u m
Symbology Type Input Length Characters Ratio Dot Width C a l c u l a t i o n
Format:
where:
Input (BARCODE.LBL):
Output:
Format:
where:
{command}: BARCODE-TEXT
(or BT)
Input (BARTEXT.LBL):
Output:
Format:
where:
{command}: COUNT
Input (COUNT.LBL):
Output:
MaxiCode
MaxiCode was originally designed by the United Parcel
Service to help them automate package delivery and sort
packages coming down a quick conveyor belt. It consists
of a bulls eye to help the imaging system target the
barcode and an array of hexagons to represent the data
stored in the barcode. It can contain a maximum of 93
alphanumeric characters or 138 numeric characters, has
two different error correction modes, seven different
storage modes, the capability to use character sets other
than ASCII, and the capability to link several MaxiCodes
together. Since there are so many different modes, it is
suggested that you contact AIM for the symbol specifica-
tion. If you are developing software to be used with the
UPS MaxiCode shipping system, contact UPS for infor-
mation on how to order the information on the Maxicode
shipping system.
Format:
where:
{type}: PDF-417
PDF417 Example
Input (PDF.LBL):
! 0 200 200 210 1
B PDF-417 10 20 XD 3 YD 12 C 3 S 2
PDF Data
ABCDE12345
ENDPDF
T 4 0 10 120 PDF Data
T 4 0 10 170 ABCDE12345
FORM
PRINT
Output:
{tag} {options}
<ENDMAXICODE>
where:
{command}: BARCODE or B
Prints bar code.
{type}:
MAXICODE
{x}:
Horizontal starting position
{y}:
Vertical starting position
{tag}:
Tags not supplied will be filled with default values. Use
only the tags that you require. Tags can be in any order.
<ENDMAXICODE> Final tag in Maxicode barcode.
Output:
Decodes to:
028860000[GS]057[GS]057[GS]This is a
MAXICODE low priority message.
Output:
Output:
Decodes to:
Input (BOX.LBL):
! 0 200 200 210 1
BOX 0 0 200 200 1
FORM
PRINT
0,0
Output:
200,200
Format:
where:
Input (LINE.LBL):
Output: 0,0
200,0
0,200 200,200
Format:
{command} {x0 } {y0 } {x1} {y1} {width}
where:
{command}: Choose from the following:
INVERSE-LINE Prints a line over an existing
(or IL) field to invert the image.
{x0 }: X-coordinate of the top-left corner.
Input 1 (INVERSE1.LBL):
Output 1:
Input 2 (INVERSE2.LBL):
Output 2:
Format:
where:
{command}: PATTERN
Input (PATTERN.LBL):
Output:
Format:
where:
Input (GRAPHIC.LBL):
Output:
Format:
where:
{command}: PCX
EXAMPLE 1
Input 1 (STARTPCX.LBL):
Input 2 (IMAGE.PCX)
Input 3 (ENDPCX.LBL)
FORM
PRINT
Output:
EXAMPLE 2
In this example , the PCX image has been loaded into the
printers flash file system and given the name
IMAGE.PCX. The !< operator can now be used to
instruct the printer to get the data stored in the file
Image.PCX and use it for building the image.
Input 2 (IMAGE.LBL):
Output:
Input (JUSTIFY.LBL):
! 0 200 200 210 1
CENTER 383
TEXT 4 0 0 75 C
LEFT
TEXT 4 0 0 75 L
RIGHT 383
TEXT 4 0 0 75 R
FORM
PRINT
Output:
The printer assumes that the page width is the full width
of the printer. The maximum height of a print session is
determined by the page width and the available print
memory. If the page width is less than the full width of
the printer, the user can increase the maximum page
height by specifying the page width.
Format:
{command} {width}
where:
Input 1 (PW1.LBL):
! UTILITIES
SETLP 7 0 15
PW 300
PRINT
Output 1:
Input 2 (PW2.LBL):
! UTILITIES
SETLP 7 0 15
PW 200
PRINT
Output 2:
Format:
{command}
where:
{command}: PACE
Input (PACE.LBL):
Output:
Where:
{command}: AUTO-PACE
Input (APACE.LBL):
format: {command}
Input (NO-PACE.LBL):
Format
{command} {delay-time}
where:
{command}: WAIT
INPUT (WAIT.LBL):
format: {command}
REWIND-OFF
REWIND-ON
INPUT (REWIND.LBL):
Input (TENSION.LBL):
! 0 200 200 150 1
PRE-TENSION 30
TEXT 5 0 0 20 ADJUSTS TENSION
{command}: SPEED
Input (SPEED.LBL):
Format:
{command} {spacing}
where:
{command}: SETSP
SETSP CommandExample
Input (SETSP.LBL):
Output:
Input (OOP.LBL):
Format:
{command} {action}
where:
{command}: ON-FEED
Input (ONFEED.LBL):
Output:
Format:
{command} {length}
where:
{command}: PREFEED
Input (PREFEED.LBL):
Format:
{command} {length}
where:
{command}: POSTFEED
Input (POSTFEED.LBL):
Input (PRESENT-AT.LBL):
Format:
{command} {name}
where:
{command}: COUNTRY
USA
GERMANY
FRANCE
SWEDEN
SPAIN
NORWAY
CHINA
ITALY
CP850
UK
Input (COUNTRY.LBL):
! 0 200 200 80 1
IN-MILLIMETERS
JOURNAL
CENTER
; Set the country as USA
COUNTRY USA
; Now Print Text From ISO sub-
stitution Table
TEXT 4 0 0 8 COUNTRY IS USA
TEXT 4 0 0 15 #$@[\]^{|}~
; Set country for France and
print the same text
COUNTRY FRANCE
TEXT 4 0 0 28 COUNTRY IS FRANCE
TEXT 4 0 0 35 #$@[\]^{|}~
PRINT
Output:
Input (NOFORMAT.LBL):
Output:
Input (FORMATF.LBL):
! DF SHELF.FMT
! 0 200 200 210 1
CENTER
TEXT 4 3 0 15 \\
TEXT 4 0 0 95 \\
BARCODE UPCA 1 1 40 0 145 \\
TEXT 7 0 0 185 \\
FORM
PRINT
Input (FORMATD.LBL):
! UF SHELF.FMT
$22.99
SWEATSHIRT
40123456784
40123456784
Format:
{command} {beep_length}
Where:
{command}: BEEP
Input (BEEP.LBL):
Format:
{command}
where:
{command}: CUT
CUT Example
Input (CUT.LBL):
Format:
{command}
where:
{command}: PARTIAL-CUT
PARTIAL-CUT Example
Input (PCUT.LBL):
Format:
{command} {length}
Where:
{command}: CUT-AT
Input (CUTAT.LBL):
! U
SETLP 7 0 24
PAGE-WIDTH 720
PRINT
This line is printed as raw text.
These lines are in font 7 size 0
! U1 SETLP 7 0 24
! U1 PAGE-WIDTH 720
This line is printed as raw text.
These lines are in font 7 size 0.
The ! UTILITIES command, or ! U for short, must be
ended by the terminator PRINT followed by a CR/LF
(Carriage Return/Line Feed, or Enter) to end the utility
session. The ! U1 command only executes one utility
command and must be followed by a CR/LF. Also, the !
U1 command can be placed ANYWHERE in a text line to
execute the command.
Example:
Although this text is all on the same
line, ! U1 SETLP 5 0 24 (CR/LF)
this font is new.
Format:
<!> <UTILITIES>
{command}
<PRINT>
where:
You can set the printer font multiple times when using
the line printer to make a receipt. For example, to put the
company name in a larger font at the top of a label,
change to font 5 size 2 and then to font 7 size 0.
Example:
! U1 SETLP 5 2 46
AURORAS FABRIC SHOP
! U1 SETLP 7 0 24
123 Castle Drive, Kingston, RI 02881
(401) 555-4CUT
1
TrueType is a registered trademark of Apple Computers, Inc.
Input (SETLF2.LBL):
! U SETLP 4 0 40
SETLF 40
PRINT
Output 2
Text line
Text line
Text line
Output :
! U1 X {unit value}
! U1 Y {unit value}
! U1 XY {x unit value} {y unit value}
! U1 RX {unit x value to move relative to present
position}
! U1 RY {unit y value to move relative to present
position}
! U1 RXY{unit x value to move relative to present
position} {unit y value to move relative to present posi-
tion}
! U1 SETBOLD {value}
where {value} is an offset number from 0 to 5.
Example:
! U1 SETBOLD 2
This text is in bold ! U1 SETBOLD 0
but this text is normal.
Example:
Normal Text ! U1 SETSP 5
SPREAD OUT TEXT
The printer lets you control both the width and height of
the page through use of the PAGE-WIDTH and PAGE-
HEIGHT commands. The Encore four inch printers, for
example, will take any size stock up to four inches wide.
If the stock is three inches wide, use the PAGE-WIDTH,
or PW command.
! U1 PW {unit width}
! U1 PH {unit height}
Backspace
Input (SETFF.LBL):
! UTILITIES
IN-MILLIMETERS
SETFF 25 2.5
PRINT
Format:
{command} {d}
where:
{command}: SET-TOF
Input (SETTOF.LBL):
! UTILITIES
SET-TOF 101
PRINT
Input (SETTOF2.LBL):
! UTILITIES
SET-TOF 0
PRINT
PRESENT-AT Command
CUT-AT Command
CUT Command
PARTIAL-CUT Command
! U1 CUT
! U1 PARTIAL-CUT
Bar Codes:
The printer can make any 1-D barcode in line print
mode. The BARCODE command works just like it would
in a label file. See Section 5 of this manual on the BAR-
CODE command for more details.
Graphics:
The printer can print PCX formatted graphics files in
line print mode. This is not recommended, however, in
order to keep print times to a minimum. The graphic
should be loaded into the flash file system on the printer
Example:
! U1 PCX {x coordinate} {y coordinate} !<
{filename.pcx}
SETLP-TIMEOUT Command
If the printer does not receive any characters after a set
time, it will begin to print. This delay can be set with the
SETLP-TIMEOUT command.
Designing a Receipt
Example 1:
! U1 JOURNAL
! U1 SETLP 4 0 47
YOURCO RETAIL STORES
! U1 SETLP 7 0 24
14:40 PM Thursday, 06/04/20
! U1 SETSP 5
Total:! U1 SETSP 0
$4.41
TOTAL: $189.70
! U1 SETLP 7 1 48
PLEASE BRING THIS RECEIPT TO THE CASHIER
SUBTOTAL: $187.10
RHODE ISLAND SALES TAX 7.00%: $2.60
Note: Text printed in italic type refers to data sent to the printer.
Text printed in bold type refers to data sent from the printer.
Format:
<!> <UTILITIES>
{command}
<PRINT>
where:
{command}: VERSION
VERSION Example
Input (VERSION.LBL):
! UTILITIES
VERSION
PRINT
Format:
<!> <UTILITIES>
{command}
<PRINT>
where:
{command}: CHECKSUM
CHECKSUM Example
Input (CHECKSUM.LBL):
! UTILITIES
CHECKSUM
PRINT
Format:
<!> <UTILITIES>
{command} {name.ext}
<PRINT>
where:
{command}: DEL
Format:
<!> <UTILITIES>
{command}
<PRINT>
where:
{command}: DIR
Format:
where:
{command}: DF
Input (DF.LBL):
! DF AUTOEXEC.BAT
! UTILITIES
SETFF 200 20
PRINT
! UTILITIES
SETFF 200 20
PRINT
Format:
<!> <UTILITIES>
{command} {name.ext}
<PRINT>
where:
{command}: TYPE
Format:
<!> <UTILITIES>
{command} {baud}
<PRINT>
Note that <PRINT> must be sent at the new baud rate
where:
{command}: BAUD
BAUD Example
Input (BAUD.LBL):
! UTILITIES
BAUD 19200
PRINT
Format:
<!> <UTILITIES>
{command} {name}
<PRINT>
where:
{command}: COUNTRY
USA
GERMANY
FRANCE
SWEDEN
SPAIN
NORWAY
CHINA (double byte encoding)
ITALY
CP850
UK
BIG5 (Traditional Chinese; double byte encoding)
JAPAN-S (Simplified Japanese fonts; double byte
encoding)
! UTILITIES
; Tell the printer to use font 4 size 0
; for line printer mode with 5 millime-
ters
; line spacing
IN-MILLIMETERS
SETLP 4 0 5
COUNTRY USA
PRINT
! UTILITIES
COUNTRY ITALY
PRINT
Output:
Note: The printer must be configured with fonts that contain the
extended character sets used in the selected country.
P10-11 Mobile Printer Programming Manual
ANNOUNCE Utility
Format:
<!> <UTILITIES>
{command} {message}
<PRINT>
where:
{command}: ANNOUNCE
{message}: Choose from the following:
Input (ANNOUNCE.LBL):
! UTILITIES
ANNOUNCE 1 2 . 2 5
PRINT
Output:
Format:
<!> <UTILITIES>
{command} {time}
<PRINT>
where:
{command}: TIMEOUT
Input (TIMEOUT.LBL):
! UTILITIES
TIMEOUT 960
PRINT
Format:
{command} {beep_length}
Where:
{command}: BEEP
Input (BEEP.LBL):
! UTILITIES
BEEP 16
PRINT
Where:
{command}: LT
{mode}: Choose from the following.
CR: Carriage-return (0x0D) character is the
line terminator.
LF : Line-feed (0x0A) character is the line
terminator.
CR-LF: Carriage-return/line-feed (0x0D 0x0A)
characters are the line terminator.
CR-X-LF: Line terminator is a carriage-return
(0x0D) followed by any number of char-
acters followed by the line-feed (0x0A)
character. Characters found between the
carriage-return and line-feed characters
are discarded.
LT Command Examples
Set the printer to require line-feeds only as a terminating
character.
! UTILITIES LT LF PRINT
Format:
<!> <UTILITIES>
{command} {time-stamp}
<PRINT>
where:
{command}: SET-TIME
time-stamp}: hh:mm:ss
hh = hours (00 23)
mm = minutes (00 59)
ss = seconds (00 59)
Format:
<!> <UTILITIES>
{command}
<PRINT>
where:
{command}: GET-TIME
Printer output: hh:mm:ss\0
hh = hours (00 23)
mm = minutes (00 59)
ss = seconds (00 59)
\0 = null terminator (00H)
<!> <UTILITIES>
{command}
<PRINT>
where:
{command}: GET-DATE
Example:
Input (TIME.LBL)
Output:
14:47:23
Example:
Input (DATE.LBL)
Output:
02-24-1998
The RXD LED of the printer will blink while the MCR is
active. When the MCR times out or after a successful
read (provided the MCR is not in MULTIPLE read mode,)
the MCR will deactivate, thereby returning the RXD LED
back to its normal state.
Format
Where:
{command}: MCR
Track Options:
T1 :Read Track 1. (can specify one or
more tracks to read).
T2 :Read Track 2.
Frequency Options:
MULTIPLE: Read multiple swipes. MCR
will continue to read and report card
swipes until the MCR times out.
SINGLE read is the default mode.
Debugging Options
ECHO: The printer will print the MCR
data by internally routing it to the line-
printer module, forcing the data to be
printed, as well as being transmitted to
the host computer.
! U1 MCR 80 T1 T2
If the printer times out or the card can not be read, the
printer will not return anything to the host (because ER-
RORS option is not specified in this example).
continued
Format
{command}
Where:
{command}: MCR-QUERY
! U1 MCR-QUERY
MCR-CAN Command
The MCR-CAN command will terminate the current MCR
activity, and if error message reporting is enabled via the
MCR command ERROR option, will transmit the Cancel
error message to host.
{command}
Where:
{command}: MCR-CAN
! U1 MCR-CAN
Format
{Command } { Operation } { Options }
where:
{command}: S-CARD
Operation
The Operation command is a required element. An error
will be returned if an invalid operation is specified (see S-
CARD Command Response for error codes). The pos-
sible Operation commands are:
CT_ATR: Each smart card has a unique Answer
To Reset, or ATR. This ATR contains
information relevant to data transmis-
Example:
! U1 S-CARD CT_DATA 10 8010000008
Explanation of response:
<ACK> = Successfully send command to
the card and received a response.
<LENGTH> = The response length. This
length is for data only (i.e. SW1 and
SW2 are not included in response
length).
<DATA> = This is the response from the
card (in binary form).
continued
Error Codes
Errors from the S-CARD command are of the following
format:
<NAK><ERROR CODE>
Where any of the following are possible error codes:
<0x02> = Protocol not supported (card is
not using T=1 protocol)
<0x10> = No card detected
<0x11> = Invalid drive type (currently
Traceability command:
! U1 S-CARD CT_DATA 10 8010000008
Note: When the printer actually sends
this command to the printer, it converts
the command to binary, adds the appro-
priate T=1 header and computes the
overall command checksum. Then the
printer sends this command to the smart
card.
Response:
<ACK><08>< C9 1C 92 AA 66 19 A0 00><90><00>
CT_CLOSE command
! U1 S-CARD CT_CLOSE
continued
BHT-BAUD Command
The printers support 9600 and 19200 BPS baud rates.
The default baud rate for communication with Zebra
mobile printers is 9600 BPS. Configuring a BHT baud
rate will set both the IR and the cable transmit speeds to
that rate. You must insure that both the printer and the
BHT are set to the same baud rate. This can also be
changed in an AUTOEXEC.BAT file with the BHT-BAUD
<baud-rate> command. (Refer to the BHT-BAUD com-
mand example at the end of this section. )
continued
continued
Zebra mobile printers will only print files with the .DAT
extension sent from the BHT. The following example file
CIS.DAT contains a label file that can be loaded from a
PC into the BHT via a serial cable using the TU3.EXE
utility provided by DENSO. The file can then be sent to a
Zebra mobile printer to produce a label. Files with a .DAT
extension contain records composed of one or more
record fields. For CIS.DAT, each record will be specified
as having only one field with a width of 40 bytes. The 40
byte width was chosen because no single line in the
example CIS.DAT file exceeds 40 bytes. The resulting
records transferred to the BHT will each contain a single
field 40 bytes wide. The BHT and BHT-IR protocol will
add space characters as needed to any field containing
less than 40 bytes. Thus the CIS.DAT file contains 24
lines that will be interpreted as 24 records containing a
single field of 40 bytes.
Note that while the example uses the TU3.EXE utility to
download the file from a PC, these files could also be
created under control of an application program execut-
ing directly on the BHT.
The command line that will transfer this file into the BHT
is: TU3 +MPC +B9600 CIS.DAT +F40
The BHT will now contain the file CIS.DAT.
Interrupted Transmissions
If a transmission from the terminal to the printer is inter-
rupted, the user should wait at least five seconds before
attempting another transmission. During this delay, the
printer will discard any partial data received from the
interrupted transmission and reset itself to receive a new
transmission.
continued
Output:
Input: PROBHT.CBL
! DF AUTOEXEC.BAT
! UTILITIES
SRF-ACCESS
BHT-PROTOCOL BHT
BHT-PROTOCOL CABLE
BHT-BAUD 19200
BHT-MODE STRIP-ADD-CRLF
END-SRF-ACCESS
PRINT
continued
This command will set both the IR and the cable transmit
speeds. You must insure that both the printer and the
BHT are set to this same baud rate. This can also be
changed in an AUTOEXEC.BAT file with the BHT-BAUD
<baud-rate> command.
Format:
{command} {baud rate}
where:
{command}: BHT-BAUD
! DF AUTOEXEC.BAT
! UTILITIES
SRF-ACCESS
BHT-MODE STRIP-SPACES
BHT-BAUD 19200
END-SRF-ACCESS
PRINT
{mode}: STRIP-ADD-CRLF
Each data field in a record has any
trailing spaces stripped and a CR/LF
(carriage return/line feed) pair added.
The data field (stripped of trailing
spaces and with an appended CR/LF
pair) is then passed to the printer for
processing. This is the default way to
handle data sent to the printer.
RAW
The RAW mode accepts all characters
that make up each data field. Using this
method, any trailing spaces in a data
field will be INCLUDED as data for the
printer to process.
COUNTED STRING
This mode is based on the first charac-
ter of a data field being interpreted as a
count of data bytes that follow. In the
counted string mode, the number of
bytes specified by the count will be
transferred into the printer. The count
byte's maximum value is limited to the
data field size minus 1.
STRIP-SPACES
This mode eliminates trailing spaces in
continued
Input: ADDCRLF.BAT
! DF autoexec.bat
! UTILITIES
SRF-ACCESS
BHT-MODE STRIP-ADD-CRLF
END-SRF-ACCESS
PRINT
Output:
Data Record:
|----10----|---8----|--------20----------
|
Comtec^^^^ ^Info^^^ ^Systems^^^^^^^^^^^^
Input: SENDRAW.BAT
! DF autoexec.bat
! UTILITIES
SRF-ACCESS
BHT-MODE RAW
END-SRF-ACCESS
PRINT
Output:
Data Record:
|----10----|---8----|--------20----------
|
Comtec^^^^ ^Info^^^ ^Systems^^^^^^^^^^^^
! DF autoexec.bat
! UTILITIES
SRF-ACCESS
BHT-MODE COUNTED-STRING
END-SRF-ACCESS
PRINT
Data Record:
|----10----|---8----|--------20----------
|
6Comtec^^^ 6^Info^^ 7Systems^^^^^^^^^^^^
Input: SSPACES.BAT
! DF autoexec.bat
! UTILITIES
SRF-ACCESS
BHT-MODE STRIP-SPACES
END-SRF-ACCESS
PRINT
Output
Data Record
|----10----|---8----|--------20----------
|
Comtec^^^^ ^Info^^^ ^Systems^^^^^^^^^^^^
continued
Input: PROBHT.CBL
! DF AUTOEXEC.BAT
! UTILITIES
SRF-ACCESS
BHT-PROTOCOL BHT
BHT-PROTOCOL CABLE
BHT-BAUD 19200
BHT-MODE STRIP-ADD-CRLF
END-SRF-ACCESS
PRINT
INPUT: PROBHT.IR
! DF AUTOEXEC.BAT
! UTILITIES
SRF-ACCESS
BHT-BAUD 19200
BHT-PROTOCOL BHT
BHT-MODE STRIP-ADD-CRLF
END-SRF-ACCESS
Input: PROBHTIR.CBL
! DF AUTOEXEC.BAT
! UTILITIES
SRF-ACCESS
BHT-BAUD 19200
BHT-PROTOCOL BHTIR
BHT-PROTOCOL CABLE
BHT-MODE STRIP-ADD-CRLF
END-SRF-ACCESS
PRINT
Input: PROBHTIR.IR
! DF AUTOEXEC.BAT
! UTILITIES
SRF-ACCESS
BHT-BAUD 19200
BHT-PROTOCOL BHTIR
BHT-MODE STRIP-ADD-CRLF
END-SRF-ACCESS
PRINT
Set CCL Code: ESC (0x1b) '}' (0x7D) 'W' (0x57) '1' (0x31) <new code>
(SETCCL.LBL)
The printer will retain the new CCL code for as long as it
remains powered. If the printer is powered off and back
on again, it will revert back to normal operations and will
expect '!' as the CCL code.
Read CCL Code: ESC (0x1b) '}' (0x7D) 'R' (0x52) '1' (0x31)
(READCCL.LBL)
Format:
where:
Bit Description
4 Printer reset (0=reset cleared, 1=printer reset)
3 Battery status (0=voltage OK, 1=low battery)
2 Latch status (0=latch closed, 1=latch open)
1 Paper status (0=paper present, 1= out of paper)
0 Printer status (0=printer ready, 1=printer busy)
Bit Description
7 Ribbon status: 0=ribbon detected, 1=no ribbon
detected
6 Paper supply status: 0=paper supply is OK
1=paper supply is low
5 Presentation (peeler) sensor: 0=last label re
moved, 1=last label not removed yet
4 Reserved
3 Reserved
2 Reserved
1 Reserved
0 Reserved
LAN Command
Format:
LAN { Operation } { Options }{ Operation } { Options }
Application: Network
Printers will have
HTLAN prefix.
I.P Address
Radio Software
Version
Unit is associated with
LAN : Yes/No
SSID Address
I.P Address
Introduction:
QL series printers with the LCD control panel option use
the WML language to create screens or cards for the
display. This section explains the WML tags and com-
mands used to create a menu for the LCD. The file should
be named INDEX.WML. This file can be sent to the
printer via an FTP session or by using Label Vista. By
using a line like $(vnd.zo.parameter name) you
can display the value of that parameter name as seen in
example 1. Refer to Section 14 of this manual for com-
plete information on available parameters.
Refer to Table 1 at the end of this section for information
on WML tags used by the QL series display.
The first card to be displayed should always be called
main. The following example demonstrates the timer
function and uses this to refresh the LCD to give a cur-
rent battery voltage, head latch status, and paper out
status. In the example each line is followed by a CR/LF
(0x0D/0x0A).
Example 1:
This is a complete menu that demonstrates most of
the tags from Table 1 at the end of this section. The
<do> tag is shown is Example 2.
LanguageTag
<wml>
Direct output to the LCD screen
<display>
Begin card named netset, with no title and a 10-second delay go back
to the main card.
<card id=netset title= ontimer=#main>
<timer value=100"></timer>
Display the IP address
<p>IP:$(vnd.zo.ip.addr)</p>
Line Break
<br/>
continued on next page
P13-1 Mobile Printing Programming Manual
Display the PORT number
<p>TCP Port:$(vnd.zo.ip.port)</p>
Line Break
<br/>
Display the ESSID
<p>eSSID:$(vnd.zo.wlan.current_essid) </p>
Line Break
<br/>
Display the associated status
<p>Associated:$(vnd.zo.wlan.associated) </p>
Display a link back to the main card
<p><a href=#main>back</a></p>
Close the card tag
</card>
<wml>
<display>
<card id=netset title= ontimer=#main>
<timer value=100"></timer>
<p>IP:$(vnd.zo.ip.addr)</p>
<br/>
<p>TCP Port:$(vnd.zo.ip.port)</p>
<br/>
<p>eSSID:$(vnd.zo.wlan.current_essid) </p>
<br/>
<p>Associated:$(vnd.zo.wlan.associated)
</p>
<p><a href=#main>back</a></p>
</card>
<card id=main title=Zebra QL 320,Status
ontimer=#main><br/>
<timer value=10"></timer>
<p>Battery:$(vnd.zo.power.voltage)
V($(vnd.zo.power.status)) </p>
<br/>
<p>Latch:$(vnd.zo.head.latch)</p>
<br/>
<p>Paper:$(vnd.zo.media.status) </p>
<p> <a href=#netset>more</a></p>
</card>
</display>
</wml>
Zebra QL 320
Status Battery:7.80V(ok)
Latch:ok Paper:ok more
IP:10.14.4.97
TCP Port:6101
eSSID: ZebraNet
Associated:yes back
P13-7
<p> </p> Paragraph
<timer value=nnn></timer> Sets the timer value nnn = duration to wait in 10ths of a
second for the check to be press before going to the
card specified in the ontimer option of the card tag.
<do type=accept label=xxx> <setvar name=vnd.zo.{option} Preforms specific action when label xxx is selected
value=yyy/><refresh/> </do> from the menu. The {option} is specified the same way
as the SETVAR command detailed in the Section 14.
The value is the new value desired. The tag <refresh/>
is used to refresh the screen after the command is
issued.
Introduction
The following section covers a set of commands to con-
figure and query printer parameters and perform various
printer control functions. Examples of this set of com-
mands include setting printers IP address, querying
printers baud rate, or instructing the printer to advance
its media to top of form. This set of commands is referred
to as the set/get/do commands, and is available in the
printer applications version 40 and above. The software
version can be ascertained by performing a two-key reset
as described in Section 1 of this manual. The number in
the Software: listing on the second report must end in
40 or above (e.g. Software: HTLK40d)
These commands follow a standard format described as
follows:
Input:
! 0 200 200 250 1
JOURNAL
CENTER
T 5 0 0 110 !<vnd.zo.ip.addr
B 128 1 1 50 10 50 !<vnd.zo.ip.addr
PRINT
Output:
getvar Command
The getvar command is used to get the current value of
printer parameters. This command must be terminated by
a CR/LF (0x0D, 0x0A). The printer will respond with the
parameter value of ? if the parameter does not exist
(usually due to incorrect spelling of the parameter name)
or it has not been configured yet. The parameter name
should be specified in lower case.
Format:
getvar {parameter name}
setvar Command
The setvar command is used to set parameter values in
the printer. This command must be terminated by a CR/
LF (0x0D, 0x0A). The parameter name must be in lower
case. Parameter values must be specified in lower case,
unless the parameter value itself is case sensitive, such
as a printers WLAN eSSID.
Format:
setvar {Parameter name} {Value}
do Command
The do command can be used to instruct the printer to
perform predefined actions. Some do commands require
one or more parameters. These parameters should be
enclosed in double quotes. This command must be termi-
nated by a CR/LF (0x0D, 0x0A). The printer will perform
the specified function immediately after receiving the
command.
Format:
do {Action name} {parameter}
Commands / Parameters
Following are descriptions of each set/get/do command
in detail, including the required parameters, if any, and
possible choices for parameter values. Each set/get/do
command described below also includes examples to
demonstrate proper syntax and usage.
appl.name
Type: getvar
This parameter refers to the printers application name.
appl.version
Type: getvar
This parameter refers to the printers application version.
bluetooth.address
type: getvar
This parameter is the Bluetooth device address - pro-
grammed into each radio.
getvar result Returns the printers Bluetooth address.
Example Description Get printers Bluetooth address.
Syntax ! U1 getvar bluetooth.address
Result 00:80:37:16:87:71
bluetooth.authentication
type: getvar; setvar
This parameter sets Bluetooth authentication mode.
When authentication is on a PIN is required that is gen-
erated from the friendly-name.
getvar result Current authentication mode setting, off, on.
Example Description Get the current Bluetooth authenti
cation mode.
Syntax ! U1 getvar
bluetooth.authentication
Result off
setvar choices off, on
Default off
Example Description Enable Bluetooth authentication.
Syntax ! U1 setvar
bluetooth.authentication on
Result Printer will enable Bluetooth
authentication.
bluetooth.discoverable
type: getvar; setvar
This parameter sets the Bluetooth discoverable mode. If
set to on (the default) the printer can be discoverd by a
Bluetooth device inquiry, and linked to a master device.
When set to off, the printer can only be linked manually.
bluetooth.local_name
type: getvar
This parameter is the local name that will be provided
during service discovery. It is a combination of the printer
model name and the friendly_name
getvar result Returns the printers name.
Example Description Get printers local name.
Syntax ! U1 getvar bluetooth.local_name
Result Encore3 XXEN02-01-0317
getvar result Printers comm. port parity. See setvar choices for
possible values.
Example Description Get printers comm. parity setting.
Syntax ! U1 getvar comm.parity
Result n
setvar choices n (none), eeven), and o (odd)
Default n
Example Description Set printers comm. port parity to
None (no parity).
Syntax ! U1 setvar comm.parity n
Result Printer will change its comm. ports
parity to None.
comm.baud
type: getvar; setvar
This parameter refers to the printers comm (cable) baud
rate.
Note: Once the printers comm. port parameters have been changed, the host
terminal must also be configured to match the new printer settings before the
host can communicate again
device.reset
type: do
Instructs the printer to perform a soft reset.
do parameters None
Example Description Perform a soft reset.
Syntax ! U1 do device.reset
Result The printer will perform a soft
reset.
display.backlight
type: getvar; setvar
This parameter refers to the printer display backlight.
file.dir
type: getvar
This parameter refers to the printer file directory.
file.print
type: do
This command can be used to print the contents of
printer files.
file.run
type: do
This command can be used to execute a batch file or la-
bel file stored in the printers file system.
file.type
type: do
This command can be used to retrieve contents of a file.
media.status
type: getvar
This parameter refers to the paper status.
memory.flash_free
type: getvar
This parameter refers to the amount of available Flash
memory.
getvar result Flash memory available.
Example Description Get current availably Flash
memory.
Syntax ! U1 getvar memory.flash_free
Result 1345000 Bytes Free
memory.ram_size
type: getvar
This parameter refers to the total amount of Random Ac-
cess Memory.
getvar result RAM size.
Example Description Get RAM size.
Syntax ! U1 getvar memory.ram_size
Result 2097151 Bytes
memory.ram_free
type: getvar
This parameter refers to the amount of available RAM.
getvar result Available RAM.
Example Description Get current availably RAM.
Syntax ! U1 getvar memory.ram_free
Result 456000 Bytes Free
power.dtr_power_off
type: getvar; setvar
This parameter refers to the remote printer power control.
DTR power off is used for power management. When
DTR is enabled the printer can be powered on and off via
the DSR signal. When DTR-power off is enabled, a low to
high transition will cause the printer to turn ON and a high
to low transition will cause the printer to turn OFF. The
printer will stay ON as long as DSR is high unless it
reaches low battery shutdown or receives a command to
shut down.
NOTE: The inactivity time-out is disabled while DSR is active.
power.low_battery_timeout
type: getvar; setvar
This parameter refers to the low battery timeout. When
the printer reaches the low battery state this timeout will
become active. The printer will shut down after the speci-
fied low battery time out
power.low_battery_warning
type: getvar
This parameter refers to the low battery warning level.
power.percent_full
type: getvar
This parameter refers to the battery status.
power.status
type: getvar
This parameter refers to the battery status.
do parameters None.
Example Description Perform form feed.
Syntax ! U1 do test.feed
Result Printer will advance to top-of-form.
test.print_diags
type: do
This command can be used to print a diagnostics report.
do parameters None.
Example Description Print diagnostics report.
Syntax ! U1 do test.print_diags
Result Printer will print a diagnostics
report.
test.report_diags
type: do
This command can be used to retrieve a diagnostics re-
port from the printer.
do parameters None.
Example Description Retrieve diagnostics report.
Syntax ! U1 do test.report_diags
Result Zebra QL 320 V79.40 02/01/02
CHK FFFF
...
...
End of report.
ip.addr
type: getvar; setvar
This parameter refers to the IP address of the printer. The
DHCP setting must be off to change the printers IP ad-
dress.
ip.ftp.enable
type: getvar; setvar
This parameter refers to the FTP protocol setting.
getvar result This will return the gateway setting in the printer.
Example Description This command instructs the printer
to respond with the gateway
address.
Syntax ! U1 getvar ip.gateway
Result 10.19.5.1
setvar choices Any valid gateway address.
Default 0.0.0.0
Example Description This command instructs the printer
to change the gateway address to
38.10.4.1
Syntax ! U1 setvar ip.gateway 38.10.4.1
Result This will set the gateway address to
38.10.4.1 upon cycling the power
or issuing the device.reset.
ip.http.enable
type: getvar; setvar
This parameter refers to the HTTP protocol / web sever
setting.
getvar result This will return the HTTP protocol status (on or
off).
Example Description This command instructs the printer
to respond with the HTTP setting.
Syntax ! U1 getvar ip.http.enable
Result on
setvar choices on, off
Default on
Example Description This command instructs the printer
to enable the HTTP protocol.
Syntax ! U1 setvar ip.http.enable on
Result The HTTP protocol will be turned
on upon cycling the power or
issuing the device.reset.
getvar result This will return the LPD protocol status. (on or off)
Example Description This command instructs the printer
to respond with the LPD value.
Syntax ! U1 getvar ip.lpd.enable
Result on
setvar choices on, off
Default on
Example Description This command instructs the printer
to enable the LPD protocol.
Syntax ! U1 setvar ip.lpd.enable on
Result The LPD protocol will be turned on
upon cycling the power or issuing
the device.reset.
ip.netmask
type: getvar; setvar
This parameter refers to the subnet mask address. This
value is ignored if DHCP is enabled.
ip.pop3.enable
type: getvar; setvar
This parameter refers to whether the printer will query a
POP3 mailbox for mail.
getvar result This will return the POP3 enable status (on or off)
Example Description This command instructs the printer
to respond with the POP3 setting
Syntax ! U1 getvar ip.pop3.enable
Result on
setvar choices on, off
Default off
Example Description This command instructs the printer
to disable the POP3 querying.
Syntax ! U1 setvar ip.pop3.enable on
Result This will turn on the POP3 query-
ing upon cycling the power or
issuing the device.reset.
get var results This will return the poll frequency in seconds
Example Description This command instructs the printer
to respond with the POP3 poll fre-
quency (in seconds).
Syntax ! U1 getvar ip.pop3.poll
Result 240
set var choices 0 through 65535 A value of 0 will cause the
printer to only query the POP3 mailbox once on
printer power up.
Default 240
Example Description This command instructs the printer
to poll the POP3 mailbox every four
minutes.
Syntax ! U1 setvar ip.pop3.poll 240
Result This will set the pop3 polling fre
quency to 240 seconds (4 min-
utes).
getvar result Returns the pop3 print body status (on or off)
Example Description Instructs the printer to respond
whether or not the it will print the
body of e-mail retrieved via POP3.
Syntax ! U1 getvar ip.pop3.print_body
Result on
set var choices on, off
Default Off
Example Description Instructs the printer
not to print the body of the e-mail
retrieved via POP3.
Syntax ! U1 setvar ip.pop3.print_body
off
Result Turns off the pop3 print body pa-
rameter.
ip.pop3.print_headers
type: getvar; setvar
This parameter refers to whether the headers (From,
Date, and Subject fields) of the e-mail are to be printed.
This only applies if the ip.pop3.enable is set to on.
getvar result Returns the status of the pop3 print headers (on
or off).
Example Description Instructs the printer to respond with
the POP3 print_headers value.
Syntax ! U1 getvar ip.pop3.print_headers
Result off
setvar choices on, off
Default off
Example Description Instructs the printer to enable the
POP3 print_headers.
Syntax ! U1 setvar ip.pop3.print_headers
on
Result Turns the pop3 print headers on.
getvar result This will return the pop3 save attachments status
(on or off)
Example Description This command instructs the printer
to respond with the POP3 save at-
tachments value
Syntax ! U1 getvar
ip.pop3.save_attachments
Result off
setvar choices on, off
Default on
Example Description This command instructs the printer
to disable POP3 save attachments.
Syntax ! U1 setvar
ip.pop3.save_attachments off
Result This will turn the pop3 save attach-
ments off.
ip.pop3.server_addr
type: getvar; setvar
This parameter refers to the POP3 server IP address the
printer contacts when checking for new mail. This only ap-
plies if ip.pop3.enable is set to on.
getvar result This will return the POP3 server address setting.
Example Description Instructs the printer to respond with
the server address.
Syntax ! U1 getvar ip.pop3.server_addr
Result 0.0.0.0
setvar choices Any valid POP3 server address
Default 0.0.0.0
Example Description Instructs the printer to change the
POP3 server address to 10.19.3.1.
Syntax ! U1 setvar ip.pop3.server_addr
10.19.3.1
Result Sets the POP3 server address to
10.19.3.1
ip.pop3.verbose_headers
type: getvar; setvar
This parameter refers to whether all the e-mail headers of the
e-mail will be printed. This only applies if ip.pop3.enable and
ip.pop3.print_headers are set to on.
getvar result This will return the pop3 verbose headers status
(on or off).
Example Description This command instructs the printer
to respond with the POP3 verbose
header value.
Syntax ! U1 getvar
ip.pop3.verbose_headers
Result off
setvar choices on, off
Default off
Example Description Instructs the printer to enable
POP3 verbose headers.
Syntax ! U1 setvar
ip.pop3.verbose_headers on
Result Turns POP3 verbose headers on.
All e-mail headers will be printed.
ip.remote
type: getvar; setvar
This parameter refers to the remote server address or
name.
getvar result Returns the current remote server address
or name.
Example Description Instructs the printer to respond with
the currently stored remote server
address or name.
Syntax ! U1 getvar ip.remote
Result 0.0.0.0
setvar choices Any IP Address or name up to 39 characters long.
Default 0.0.0.0
Example Description Instructs the printer to change the
remote IP address to 10.14.4.235.
Syntax ! U1 setvar ip.remote
10.14.4.235
Result This will change the remote server
to 10.14.4.235.
ip.smtp.server_addr
type: getvar; setvar
This parameter refers to the IP address of the SMTP
server used for sending e-mail.
getvar result Returns the IP address of the SMTP server
used for sending e-mail.
Example Description Instructs the printer to respond with
the current SMTP server address.
Syntax ! U1 getvar ip.smtp.server_addr
Result 0.0.0.0
setvar choices Any valid IP address assigned to the SMTP
server.
Default 0.0.0.0
Example Description Instructs the printer to change the
SMTP server address to
10.10.10.10.
Syntax ! U1 setvar ip.smtp.server_addr
10.10.10.10
Result Changes the SMTP server
address the printer uses to
send e-mail to 10.10.10.10
ip.snmp.get_community_name
type:getvar; setvar
This parameter is used when making SNMP queries. The
SNMP client must supply the get community name that
matches the printers get community name in order to
query any SNMP data.
getvar result Returns the SNMP community name.
Example Description Instructs the printer to get the
SNMP get community string.
Syntax ! U1 getvar
ip.snmp_get_community_name
Result public
setvar choices Any string up to 20 characters long
Default public
Example Description Instructs the printer to set the
SNMP set community string.
Syntax ! U1 setvar
ip.snmp_get_community_name
private
Result Changes the community name to
private.
ip.tcp.enable
type: getvar; setvar
This parameter refers to the TCP socket protocol.
getvar result Returns the TCP protocol status. (on or off)
Example Description Instructs the printer to respond with
the TCP setting.
Syntax ! U1 getvar ip.tcp.enable
Result on
setvar choices on, off
Default on
Example Description Instructs the printer to enable the
TCP protocol.
Syntax ! U1 setvar ip.tcp.enable on
Result The TCP protocol will be turned on
upon cycling the power or issuing
device.reset.
ip.udp.enable
type: getvar ;setvar
This parameter refers to the UDP socket protocol.
getvar result Returns the UDP protocol status. (on or off)
Example Description This command instructs the printer
to respond with the UDP setting.
Syntax ! U1 getvar ip.udp.enable
Result on
setvar choices on, off
Default on
Example Description This command instructs the printer
to enable the UDP protocol.
Syntax ! U1 setvar ip.UDP.enable on
Result The UDP protocol will be turned on
upon cycling the power or issuing
the device.reset.
wlan.associated
type: getvar
This parameter refers to whether the printer is associated
with an access point (AP).
getvar result This will return yes if the printer is associated
and no if the printer is not associated with the
access point.
Example Description This command instructs the printer
to respond with yes or no.
Syntax ! U1 getvar wlan.associated
Result yes
wlan.auth_type
type: getvar;setvar
This parameter selects the authentication service to be
used between the printer and the Access Point. Open
System and Shared Key are the two types of authentica-
tion services.
NOTE: Symbol does not support Shared Key authentication.
wlan.current_tx_rate
type: getvar
This parameter retrieves the current transmit (tx) rate
(mbps). This rate will vary depending on several factors
such as the Access Points settings and the printers dis-
tance from the AP. Possible values are 1, 2, 5.5,
and 11.
getvar result This will return the current encryption key index
that is in use by the printer.
Example Description This command instructs the printer
respond with the encryption key
index value.
Syntax ! U1 getvar wlan.encryption_index
Result 1
setvar choices 1, 2, 3, or 4
Default 1
Example Description Instructs the printer to set the en-
cryption key index.
Syntax ! U1 setvar wlan.encryption_index
1
Result Sets the encryption key index to 1.
wlan.leap_username
type: getvar; setvar
This parameter refers to the LEAP user name. The user
name must correspond to a user profile established on
the RADIUS/AAA server in use.
getvar result This will return the LEAP user name.
Example Description This command instructs the printer
to respond with the LEAP user
name.
Syntax ! U1 getvar wlan.leap_username
Result user
setvar choices 0-32 ASCII characters.
Default user
Example Description This command instructs the printer
to set the LEAP user name to
user.
Syntax ! U1 setvar wlan.leap_username
user
Result The LEAP user name will be set to
user.
wlan.station_name
type: getvar
This parameter refers to the station name. The station
name reported is the printers serial number.
getvar result The printer will return its station name. The sta
tion name is the printers serial number.
Example Description Instructs the printer to respond with
the value of its station name.
Syntax ! U1 getvar wlan.station_name
Result XXQT02-02-0001
! UTILITIES
TIMEOUT n
END
! DF AUTOEXEC.BAT
! UTILITIES
SETLP 5 1 40
PRINT
Input (RUN.LBL):
! DF RUN.BAT
! 0 200 200 210 1
CENTER
BARCODE-TEXT 7 0 5
BARCODE 128 1 1 50 0 90 \\
RE-RUN
FORM
PRINT
Output:
Format:
{command}
where:
{command}: Choose one of the following:
GAP-SENSE # (0-255)
BAR-SENSE # (0-255)
Input (GAPSENSE.LBL):
! UTILITIES
GAP-SENSE
SET-TOF 0
PRINT
Symbols
! U1 Command. See UTILITIES Command
.cpf files. See fonts: pre-scaled
A
Acknowledge Printer Reset P11-3. See also Printer Escape Com-
mands
Advanced Control Commands P8-1
Advanced Utilities
examples P10-1
ALL CHRS.LBL P1-6
ANNOUNCE Command P10-12
AUTOEXEC.BAT P9-2, P10-36, P15-7
B
Backspace P9-10
BAR-SENSE Command P9-10, P15-11
BARCODE Command P5-16, P9-15
BARCODE-TEXT P5-18, P6-5
Barcodes, standard
samples P5-2
BATCH FILES P15-7. See also AUTOEXEC.BAT
BAUD Command P10-9
BEEP Command P8-27, P10-15
BHT MODE Commands P10-47
COUNTED STRING P10-47
RAW P10-47
STRIP-ADD-CRLF P10-47
STRIP-SPACES P10-47
BHT PROTOCOL Command P10-51
BHT Mode P10-51
BHTIR Mode P10-51
CABLE Mode P10-51
BHT Terminal P10-36
configuring for cable communications P10-41
BHT-BAUD command P10-38, P10-46
BHT-PROTOCOL Command P10-38
Bluetooth commands. See also Parameters, Bluetooth
using set/get/do parameters P14-7
Bluetooth encryption P14-7
C
CENTER. See Justification Commands
CHECKSUM P10-3. See also Advanced Utilities
Checksum calculation,
Codabar P5-11
Code 128 P5-10
Code 39 P5-6
Code 93 P5-8
Interleaved 2 of 5 P5-9
Postnet P5-13
UPC/EAN P5-4
Codabar barcode P5-11
Code 128 barcode P5-9
Code 39 barcode P5-6
Code 93 barcode P5-8
Comments P2-8
Communications Diagnostics P1-6
COMPRESSED-GRAPHICS Command. See Graphics Commands
CONCAT P3-8. See TEXT Concatenation Commands
CONTRAST Command P8-1
COUNT command P3-12, P5-20
COUNTRY Command P8-22, P10-10
CUT Command P8-28, P9-15
CUT-AT Command P8-30, P9-14
D
Date stamp
Printing P10-22
DEFINE-FORMAT. See Format File Commands
DEL P10-4. See also Advanced Utilities
Denso Barcode Handy Terminal. See BHT Terminal
DF Command P10-6
DIR P10-5. See also Advanced Utilities
do Command P14-5
do parameters
device.reset P14-13
device.restore_defaults P14-14
file.delete P14-17
file.print P14-17
E
Error messages
LAN P12-8
EXPANDED-GRAPHICS. See Graphics Commands
F
Facing Identification Mark (FIM) P5-13
FEED. See ON-FEED Command
FG command P3-6
Flash Memory P8-26
Font
monospaced P9-17
TrueType P9-4
Font group. See FG command
fonts
pre-scaled P1-8
FORM command P2-4
Form Feed P9-10
Format File Commands P1-8, P8-24, P8-25, P8-26
G
GAP-SENSE Command P9-10, P15-11
Get Extended Printer Status P11-4, P14-24
Get Printer Information P11-4. See also Printer Escape Commands
Get Printer Status P11-3. See also Printer Escape Commands
GET-DATE command P10-20
GET-TIME command P10-18
getvar Command P14-4
getvar parameters
appl.date P14-6
appl.name P14-6
appl.version P14-6
bluetooth.address P14-7
bluetooth.authentication P14-7
bluetooth.baud P14-8
bluetooth.discoverable P14-8
I
IGNORE. See ON-FEED Command
IN-CENTIMETERS. See Units Utility Commands
J
JOURNAL Command P14-24
JOURNAL command P2-5
Justification Commands P8-3, P9-15
L
Label Coordinate System P1-7
Label Height P1-2
Label Height,
maximum P2-2
Label Vista P1-8, P5-1, P9-4, P9-16, P13-1
LAN Command P12-1. See also Network Printers
error messages. See Error messages: LAN
gateway IP address
setting P12-2
getting configuation settings P12-4
getting status of P12-3
hard resetting WLAN card P12-5
IP address P12-2, P12-5, P12-7
obtaining P12-6
saving P12-6
Mode setting
LPD P12-3, P12-7
TPC P12-3
Remote IP address
setting P12-2
soft resetting WLAN card P12-5
SSID setting P12-3, P12-7
subnet mask
setting P12-3
TCP port
setting P12-6
LEFT. See Justification Commands
LINE command P7-2
line print mode P9-1, P11-1
Line-terminator characters P10-16
LMARGIN Command P9-7
Low-Battery Timeout P15-5. See POWER MANAGEMENT
Low-Power Mode P15-6
LT command P10-16
M
MaxiCode P6-2, P6-6
downlading to printer P15-3
encoded tags P6-6P6-8
publication: Guide to bar Coding P6-8
MCR Command P10-23
Data Reporting Options P10-25
Debugging Options P10-25
Error Reporting Options P10-27
Frequency Options P10-24
Track Data Transmit Options P10-25
Track Options P10-24
MCR-CAN Command P10-30
MCR-QUERY Command P10-30
Messages, resident P10-12. See also ANNOUNCE Command
Miniature Printer Utilities Program P15-1
MSI Plessey barcode P5-12
MULTILINE Commands P3-10
N
Network Printers P12-1. See also LAN Command
QL series
FTP sessions P13-1
safety considerations P12-1
setting IP address P12-7
WLAN operating modes
infrastructure mode P14-64
WlLAN operating modes,
ad hoc mode P14-64
Networking commands
using set/get/do parameters P14-32
NO_PACE Command P8-9
NW7 barcode P5-12
O
Off Command P15-6
ON-FEED Command P8-16
ON-OUT-OF-PAPER Command P8-15
Q
QL series printers
LCD control panel P13-1
R
RE-RUN command P15-10
READCCL.LBL P11-1
REPRINT. See ON-FEED Command
REWIND Command P8-11
REWIND-OFF. See REWIND Command
REWIND-ON. See REWIND Command
Ribbon status. See Get Extended Printer Status
RIGHT. See Justification Commands
ROTATE Commands P4-8
RUN.BAT Command P15-8
S
S-CARD Command P10-32
Scalable Concatenation Commands P3-8, P4-6
SCALE TO FIT Commands P4-4
SCALE-TEXT Commands P4-2
SET-DATE command P10-19
SET-TIME command P10-17
SET-TOF Command P9-12, P14-23
set/get/do commands P14-1
Bluetooth parameters P14-7
networking parameters P14-32
SETBOLD Command P9-8
SETCCL.LBL P11-1
SETFF Command P2-4, P9-11
T
TENSION Commands P8-12
TEXT Command P3-4, P6-5
Text Concatenation Commands P3-8, P4-6
Time stamp
Printing P10-21
TIMEOUT Command P10-14
TONE Command P8-2
top-of-form. See SET-TOF Command. See SET-TOF Command
U
UCC-128 Shipping Standard P5-10
Units Commands P2-6, P9-3, P9-8
UPC and EAN/JAN barcodes
number system character P5-3
Plus2 and Plus 5 Extensions P5-5
UPC-E barcode P5-4
USE-FORMAT. See Format File Commands
UTILITIES Command P9-2
V
VBARCODE. See BARCODE command
VCOMPRESSED-GRAPHICS Command. See Graphics Commands
VCONCAT P3-8. See TEXT Concatenation Commands
VERSION P10-2. See also Advanced Utilities
VEXPANDED-GRAPHICS Command. See Graphics Commands
VSCALE-TEXT. See SCALE-TEXT Commands
VSCALE-TO-FIT. See SCALE TO FIT Commands
W
WAIT Command P8-10
Wireless Network Printers. See Network Printers
WML language P13-1
tags used for LCD display P13-7
X
X and Y Values,
moving with P9-6
Q. The first label I print is fine, but the next one starts
printing not as close to the top of the label form,
then sometimes skips a label, then prints a good
label.
A. Make sure that you only have one carriage return/
line feed pair after the PRINT statement in your
label. If there is more than one CR/LF pair, the
printer prints the label, then sees the extra CR/LF
pairs as data to be printed in line print mode. This
advance causes the next label to be registered
incorrectly when a new label file is sent.
Signal Names
Pin 9 1 (Vcc) 1 Pin 9
2 (TXD) 2
3 (RXD) 3
4 (DSR) 4
5 (GND) 5
Pin 1 6 (DTR) 6 Pin 1
7 (CTS) 7
DB-9 Pin 8 (RTS) 8 DB-9 Pin
Female Plug 9 No Connect 9 Male Plug
(to PC) (to Printer)
Pin 18
10'
Pin 36
Pin 1
Pin 25
Pin 14
Pin 13
Pin 9
PC Signals Printer Signals
3
(TXD) 3 1 (RXD) 7 5
8 2
(RXD) 2 2 (TXD)
6
(RTS) 7 3 (CTS) 1
4
Pin 1 (CTS) 8 4 (RTS)
(GND) 5 5 (GND)
DB-9 Pin (DTR) 4 7 (DSR) 8 Pin
Female Plug (DSR) 6 8 (DTR) Male Plug
(to P.C.) Shield Shield (to printer)
COMPSEE
Apex II BL12093-3 8 Coiled RJ45 8 Pin DIN
LXE
MX1,MX3 BL17757-000 6/Straight 9 Pin DB 8 Pin DIN
1380,1390,1590 BL17757-000 6/Straight 9 Pin DB 8 Pin DIN
2325 BL12093-1 8/Coiled RJ45 8 Pin DIN Power On/Off (+5V)
INTERFACE CABLES
NORAND
A-22
RT1100/1700 Series BL12804-1 8 /Coiled 6 Pin MiniDIN 8 Pin DIN -Locking
RT1100/1700 Series BL13298-1 8 /Coiled 6 Pin MiniDIN 8 Pin DIN Over-molded Auto ON/OFF
RT1100/1700 Series BL13309-1 8 /Coiled 6 Pin Mini DIN 8Pin DIN Auto ON/OFF
6400 BL11757-000 6/Straight 9 Pin DB 8 Pin DIN
SYMBOL
APPENDIX B (continued)
SYMBOL (CONT.)
SPT1700 Series BL15483-1 9 /Coiled Cradle 8 Pin DIN No Power On/Off (DTR Line)
SPT2700 Series BL15482-1 9 /Coiled Cradle 8 Pin DIN Power On/Off (DTR Line)
LRT/LDT3800 Series CC11371-3 6 /Coiled PIM Optical 8 Pin DIN S Printers Only
LRT/LDT3800 Series CC11371-14 6 / Coiled PIM Optical 8 Pin DIN S Printers Only
(2 Way)
INTERFACE CABLES
A-23
TEKLOGIC
7030 ILR BL13285-2 Coiled 36 Pin IDC Fem 8 Pin DIN
7025 ILR BL13285-1 Coiled 15 Pin DB male 8 Pin DIN
TELXON
960 BL11122-1 8 /Coiled RJ45 8 Pin DIN
APPENDIX B (continued)
3
7 5
8 2
6
4
1
1 2 3
FONT HEIGHTS
FIXED-WIDTH FONTS
The following table contains the font widths for the fixed-
width fonts. Only one width is given for each font/size
combination since every character in that font/size combi-
nation has the same width. The proportional-width fonts
follow, with a separate table for each. The space charac-
ter will be substituted for empty values in these tables.
The width values are in pixels.
* Refer to the discussion of this particular barcode in Section Five for more information.
**To make a HIBCC compliant bar code, use bar code type F39C. See the document "The Health
Industry Bar Code (HIBC) Supplier Labeling Standard" from the Health Industry Business Council,
5110 N. 40th Street, Suite 250, Phoenix, Arizona 85018.
MEDIA SUPPLIES
MAINTENANCE SUPPLIES
TECHNICAL SUPPORT
In Europe:
Zebra Technologies Europe, Ltd.
Zebra House
The Valley Centre, Gordon Road
High Wycombe
Buckinghamshire HP13 6EQ, United Kingdom
Telephone: +44 (1) 494 768298
FAX: +44 (1) 494 768210
e-mail: [email protected]
Ask for Customer Support