Printronix, Inc. makes no representations or warranties of any kind regarding
this material, including, but not limited to, implied warranties of
merchantability and fitness for a particular purpose. Printronix, Inc. shall not
be held responsible for errors contained herein or any omissions from this
material or for any damages, whether direct, indirect, incidental or
consequential, in connection with the furnishing, distribution, performance or
use of this material. The information in this manual is subject to change
without notice.
This document contains proprietary information protected by copyright. No
part of this document may be reproduced, copied, translated or incorporated
in any other material in any form or by any means, whether manual, graphic,
electronic, mechanical or otherwise, without the prior written consent of
Printronix, Inc.
Copyright 1998, 2002 Printronix, Inc.
All rights reserved.
Trademark Acknowledgements
ANSI is a registered trademark of American National Standards Institute, Inc.
Centronics is a registered trademark of Genicom Corporation.
Dataproducts is a registered trademark of Dataproducts Corporation.
Epson is a registered trademark of Seiko Epson Corporation.
IBM and Proprinter are registered trademarks and PC-DOS is a trademark of
International Business Machines Corporation.
MS-DOS is a registered trademark of Microsoft Corporation.
Printronix, IGP, PGL, LinePrinter Plus, and PSA are registered trademarks of
Printronix, Inc.
QMS is a registered trademark and Code V is a trademark of Quality Micro
Systems, Inc.
Loading the Table ......................................................................... 67
The Default.................................................................................... 69
The Skip to Channel Command .................................................... 70
Downloading The EVFU (Using The PI Line)................................ 71
A Standard ASCII Character Set ........................... 75
Table of Contents
B Conversion Tables ............................................. 77
C Glossary ............................................................. 85
Table of Contents
1Introduction
About This Manual
This manual lists the ANSI® commands and explains how to configure the
printer when this emulation is loaded in your printer.
Audience
This book assumes you are an experienced programmer and are familiar with
the ANSI emulation.
Warnings and Special Information
Read and comply with all information highlighted under special headings:
WARNING
CAUTION
IMPORTANT
Conditions that could harm you as well as damage the equipment.
Conditions that could damage the printer or related equipment.
Information vital to proper operation of the printer.
NOTE: Information affecting printer operation.
Related Product Information
The User’s Manual describes the keys on the control panel and provides
quick reference information on daily printer operations such as loading paper
and replacing ribbons. This book also provides configuration instructions and
descriptions and troubleshooting guidelines.
Software Features
The ANSI emulation software provides the following features:
•Graphics and a selection of print densities. You can enable graphics
mode and specify a density mode (dots per inch).
•Print Attributes. Characters can be bold, italic, double high, double wide,
etc.
•Page Formatting. American National Standards Institute (ANSI)
commands allow you to set line spacing, page length, and vertical forms
control.
9
Chapter1Installing Printer Emulations
•Font Typefaces. Also referred to as print modes. The five typefaces
include Near Letter Quality (NLQ), Data Processing (DP), High Speed
(HS), OCR A, and OCR B.
•Character Sets. Fifty-one character sets are available. You can print the
character sets in the different print modes.
•Bar codes. Several bar codes are available: Code 3 of 9, Industrial 2 of 5,
Interleaved 2 of 5, UPC A, EAN 8, EAN 13, UCC 128, and Codabar.
•Expanded/Oversize print modes.
•Forms Positioning. Several commands are available to set print position
(relative or absolute).
Installing Printer Emulations
Printer emulation software is stored in flash memory. Flash memory is
contained in single in-line memory modules (SIMMs) located on the controller
board. Printer emulation and operating system software are loaded into flash
memory at the factory, but you will install software in some situations:
•A printer software upgrade is installed
IMPORTANT
•The printer controller board has been replaced
•The flash memory SIMM has been replaced
Emulation and operating system software are stored on a CD. You will copy
the appropriate file to your computer’s hard disk, then download that file to the
printer. You can load software through the serial, parallel, or Ethernet NIC
port of the printer.
NOTE: If the NIC is installed, you must download the code through the NIC
port using ftp.
NOTE: Each printer type, line matrix, laser, and thermal, has its own CD with
the specific file types for that printer. Be sure to use the appropriate
CD for your printer type when downloading software.
When downloading emulation and operating system software to the
printer, all other optional font files, customer-supplied logos, setup files,
and TIFF files will be erased. You will then need to reload those files.
Before starting a download procedure, be sure that you have all the
necessary files on hand.
•Serial or Parallel Port: If you are going to load memory through the
serial or parallel port of the printer, see “Downloading Software Through
the Serial or Parallel Port” on page 11. The load commands are different,
depending on the printer port you use. These differences are explained in
the note following step 22., page 13.
10
•NIC: If the printer has the NIC installed, see “Downloading Software
Through the Network Interface Card (NIC)” on page 14.
•Font Files: If you need to load optional font files, see “Downloading
Optional Font Files to Flash Memory” on page 16.
Downloading Software Through the Serial or Parallel Port
Downloading Software Through the Serial
or Parallel Port
1. Make a printout of all saved configurations. (Installing new software
erases all saved configurations. You will use the printouts to restore the
printer configurations.)
2. Set the printer power switch to O (Off).
3. If the printer is already connected to the serial or parallel port of an
IBM-compatible computer running the PC-DOS™ or MS-DOS operating
system, go to step 9. If not, go to step 4.
4. Unplug the AC power cord from the printer.
5. Disconnect all data input cables from the printer interfaces.
6. Connect a parallel data cable to the LPT1 port or a serial data cable to the
COM1 port of an IBM-compatible computer running the PC-DOS or
MS-DOS operating system.
NOTE: You can connect the cable to the LPT2 port if the LPT1 port is already
in use. The load commands are different if you use this port, as
described in the note after step 22.
7. Connect the data cable to the appropriate I/O port of the printer.
8. Plug the AC power cord into the printer.
9. On the printer control panel, press and hold down the ONLINE + PAPER ADVANCE keys. Without releasing the keys, power the printer on.
Continue holding down the keys.
10. When you see “TESTING HARDWARE PLEASE WAIT” on the LCD,
release the keys.
11. Wait until you see “WAITING FOR PROGRAM DOWNLOAD” on the LCD
before proceeding. This can take up to 30 seconds to appear, depending
on the emulations and interfaces installed in the printer.
12. Press the
PORT=CENTRONICS” appears on the LCD.
NOTE: The default port is CENTRONICS; this is the standard load through
14. When the printer download port you want to use displays on the LCD,
press the ENTER key. “WAITING DOWNLOAD / PORT = <your selection>” appears on the display.
⇒ (NEXT) key. “SELECT DOWNLOAD
the parallel port. If you want to use the default, continue at step 14..
⇒ (NEXT) again to cycle through the download ports available in
11
Chapter1Installing Printer Emulations
15. Using Windows Explorer, create a directory named download at the root
level of your C: hard drive.
16. Insert the printer emulation software CD into your computer.
Figure 1. Navigating to the Appropriate Emulation File on the CD
17. Using Windows Explorer, navigate to the appropriate file on the CD based
on the printer model number and desired emulation, e.g., T5000
(See Figure 1.)
18. Make note of the file name, which is a six digit number plus .exe
e.g., 123456.exe.
This is the file you will download into the printer.
4IGP.
12
Downloading Software Through the Serial or Parallel Port
Figure 2. Copying the Emulation File to the Download Directory
19. Copy the file to the download directory.
NOTE: You may need to hold Ctrl to make sure a + appears to the right of
the pointer. (See Figure 2.)
20. Start a command prompt session. (The Start Menu icon is usually labeled
MS-DOS Prompt or Command Prompt.)
21. At the command prompt type:
C:<Enter>
cd \download<Enter>
22. At the command prompt on the computer type:
filename.exe -pb<Enter>
where filename.exe is the file name you noted in step 18. This command
decompresses the file on the hard drive and copies it as a binary file into
the flash memory on the printer controller board.
NOTE: If you are loading the file using the LPT2 port on the computer, enter
the following command:
filename.exe -pb2 <Enter>
The 9600 baud rate is the only selection older versions of MS-DOS
can use. The baud rate information entered in the following
commands must match the selection you made in step 13.
If you are loading the file through the printer serial port, enter the
following commands:
mode COM1:9600,N,8,1,P<Enter>
filename.exe -pbc1<Enter>
13
Chapter1Installing Printer Emulations
CAUTION
Do not interrupt the downloading process once it has started.
Interrupting a download will damage the flash memory on the controller
board and NIC.
While the file is copied into memory, the printer LCD informs you of the
load process and status.
23. When the new program has successfully loaded into memory and the
printer has reset itself, set the printer power switch to O (Off).
24. Unplug the AC power cord from the printer.
25. Remove the CD from the host computer and store it with the printer.
26. Power off the computer.
27. If you had to install a data cable to the computer and printer in step 6,
disconnect it from the computer and printer.
28. If required, reconnect the data input cable(s) to the printer.
Using the configuration printout(s) you made in step 1, reconfigure the printer
and reload any optional font files.
Downloading Software Through the
Network Interface Card (NIC)
1. Make a printout of all saved configurations. (Installing new software
erases all saved configurations. You will use the printouts to restore the
printer configurations.)
2. Set the printer power switch to O (Off).
3. On the printer control panel, press and hold down the ONLINE + PAPER ADVANCE keys. Without releasing the keys, power the printer on.
Continue holding the keys down.
4. When you see “TESTING HARDWARE PLEASE WAIT” on the LCD,
release the keys.
5. Wait until you see “WAITING FOR PROGRAM DOWNLOAD” on the LCD
before proceeding. This can take up to 30 seconds to appear, depending
on the emulations and interfaces installed in the printer.
6. Using Windows Explorer, create a directory named download at the root
level of your C: hard drive.
7. Insert the printer emulation software CD into your computer.
14
Downloading Software Through the Network Interface Card (NIC)
IMPORTANT
Figure 3. Navigating to the Appropriate Emulation File on the CD
8. Using Windows Explorer, navigate to the appropriate file on the CD (using
the Unzipped directory) based on the printer model number and desired
emulation, e.g., Unzipped
You must use the Unzipped directory, since this contains the
uncompressed files necessary for NIC download.
9. Make note of the file name, which is a six digit number plus .prg
e.g., 123456.prg.
This is the file you will download into the NIC.
10. Copy the file to the download directory.
11. Start a command prompt session. (The Start Menu icon is usually labeled
MS-DOS Prompt or Command Prompt.)
12. At the command prompt type:
C:<Enter>
cd \download<Enter>
13. Start the FTP protocol by typing:
ftp xxx.xxx.xxx.xxx<Enter>
(where xxx.xxx.xxx.xxx represents the IP Address of the printer.)
14. Log in to the printer by typing:
root<Enter>
You are given a password prompt.
4T50004IGP. (See Figure 3.)
15
Chapter1Installing Printer Emulations
NOTE: The default is no password. If the FTP program requires a password,
contact your system administrator.
15. At the password prompt, press <Enter>.
16. Once logged in, type the following sequence at the command prompt to
download the filename.prg file to the printer:
cd dest<Enter>
cd d1prn<Enter>
bin<Enter>
put filename.prg<Enter>
(where filename.prg is the file name you noted in step 9.)
CAUTION
Do not interrupt the downloading process once it has started.
Interrupting a download will damage the flash memory on the controller
board and NIC.
17. As the file downloads, the FTP program shows the progress as a
percentage. Once the download is complete, exit out of the FTP program
by typing:
quit<Enter>
18. When the new program has successfully loaded into flash memory and
the printer has reset itself, set the printer power switch to O (off).
19. Unplug the AC power cord from the printer.
20. Remove the CD from the host computer and store it with the printer.
21. Using the configuration printout(s), reconfigure the printer and reload any
optional font files.
Downloading Optional Font Files to Flash Memory
Optional font files are stored on a 3.5 inch floppy diskette that contains file
names comprised of a part number with a .dwn extension. You will insert the
diskette in your IBM-compatible computer and use either the parallel or serial
port to download the desired font file(s) to the printer’s flash memory.
1. Set the printer power switch to O (off).
2. Connect a parallel data cable to the LPT1 port or a serial cable to the
COM1 port of an IBM-compatible computer running the PC-DOS or
MS-DOS operating system.
16
NOTE: You can connect the cable to the LPT2 port on the computer if the
LPT1 port is already in use. The load commands are different if you
use this port, as described in the notes after step 16.
3. Verify that the data cable is connected to the appropriate I/O port on the
printer and to the host computer.
4. Power on the computer and allow it to boot up.
5. On the printer control panel, press and hold down the ONLINE + PAPER ADVANCE keys while powering the printer on. Continue holding the keys
down.
6. When you see “TESTING HARDWARE PLEASE WAIT” on the LCD,
release the keys.
Downloading Optional Font Files to Flash Memory
7. Wait until you see “WAITING FOR PROGRAM DOWNLOAD” on the LCD
before proceeding. This can take up to 30 seconds to appear, depending
on the emulations and interfaces installed in the printer.
NOTE: The printer default port is CENTRONICS; if you want to use this port,
10. When the printer download port you want to use displays on the LCD,
press the ENTER key. “WAITING DOWNLOAD / PORT” = <your selection> appears on the display.
11. Insert the optional font diskette into diskette drive A (or B) of the
computer.
12. Start a command prompt session. (The Start Menu icon is usually labeled
MS-DOS Prompt or Command Prompt.)
13. Make the diskette drive the active drive by typing:
A:<Enter> (if the diskette is in drive B, type B:<Enter>)
14. List the contents of the diskette at the command prompt by typing the
following:
⇒ (NEXT) key; “SELECT DOWNLOAD PORT =
⇒ (NEXT) key again to cycle through the download ports
dir<Enter>
You will see a directory listing containing files with a .dwn extension, e.g.,
94021.dwn, 94022.dwn, 94023.dwn.
15. Make note of the file name with the .dwn extension of each file you want
to download to the printer.
NOTE: The numeric portion of the file name will match the numbers of the
font typefaces listed in the PGL and VGL Programmer’s Reference
Manuals and provide you with a description and print sample of the
typeface.
16. At the command prompt type:
copy /b filename.dwn LPT1<Enter>
(where filename.dwn is file name you noted in step 15.)
NOTE: If you are loading the file using the LPT2 port on the computer, type
the following command:
copy /b filename.dwn LPT2<Enter>
(where filename.dwn is a file you noted in step 15.)
17
Chapter1Installing Printer Emulations
If you are loading the file using the serial port on the computer, type
the following commands:
(where filename.dwn is a file you noted in step 15.)
The 9600 baud rate is the only selection older versions of MS-DOS can
use. The baud rate information entered in the above commands must
match the selection you made in step 9.
You can download the optional font files one at a time by entering one file
name per the copy command or you can copy multiple files in one copy
command.
To download one file at a time, enter the following at the command
prompt:
copy /b filename.dwn LPT1<Enter>
To download multiple files, enter the following at the command prompt,
for example:
17. While the font file is copied into flash memory, the printer LCD informs
you of the load process and status. When the new file is successfully
loaded into memory, the printer will reset itself and go online.
18. To verify that the optional fonts have been downloaded:
a. Perform a configuration printout.
— OR —
b. Select MAINT/MISC
names will appear with the same part number file name you
downloaded, but with an .sf extension.
NOTE: The optional font typefaces cannot be selected via the printer control
panel. They can only be selected via a software command from the
host.
NOTE: Press the ONLINE key to place the printer online and return the
printer to normal operation.
4File Systems4View Files List. The new file
18
Flash Memory Message Guide
Flash Memory Message Guide
MessageExplanationRequired Action
CLEARING PROGRAM
FROM FLASH
DIAGNOSTIC PASSEDThe printer passed its
ERROR: DC PROGRAM
NOT VALID
ERROR: DRAM AT
ADDRESS XXXXXXXX
ERROR: EC PROGRAM
NOT VALID
The program successfully
loaded into printer RAM and
the checksum matched. The
old program is now being
deleted from flash memory.
memory and hardware
initialization tests.
Printer cannot find the data
controller program or the
validation checksum is
corrupt.
The printer found a defective
memory location.
Printer cannot find the engine
controller program or the
validation checksum is
corrupt.
None
None
1. Download the program
again.
2. If the message occurs
again, replace the flash
memory.
Replace the DRAM.
1. Download the program
again.
2. If the message occurs
again, replace the flash
memory.
ERROR: EC STOPPED AT
STATE XXXX
ERROR: FLASH DID NOT
PROGRAM
ERROR: FLASH NOT
DETECTED
ERROR: NO DRAM
DETECTED
ERROR: NVRAM FAILUREThe non-volatile memory has
ERROR: PROGRAM NEEDS
MORE DRAM
Hardware fault in the engine
controller.
The printer could not find any
flash memory.
The printer could not find any
flash memory.
The printer could not find any
DRAM.
failed.
The printer requires more
DRAM memory in order to run
the downloaded program.
Replace the CMX controller
board.
1. Download the program
again.
2. If the message occurs
again, replace the flash
memory.
Install flash memory before
attempting to download this
program.
Check DRAM on CMX. If
present, reseat DRAM. If
missing, install DRAM.
Replace the CMX controller
board. (Do NOT attempt to
replace NVRAM.)
Add DRAM or use a smaller
emulation program.
19
Chapter1Installing Printer Emulations
MessageExplanationRequired Action
ERROR: PROGRAM NEEDS
MORE FLASH
ERROR: PROGRAM NOT
COMPATIBLE
ERROR: PROGRAM NOT
VALID
ERROR: SECURITY PAL
NOT DETECTED
ERROR: SHORT AT
ADDRESS XXXX
ERROR: WRITING TO
FLASH
The printer requires more
flash memory in order to run
the downloaded program.
The printer is not compatible
with the downloaded
program.
The printer does not see a
program in flash memory.
The security PAL is not
present or has failed.
Hardware failure in DRAM or
CMX controller circuitry.
Hardware or software fault in
flash memory.
Add flash memory or use a
smaller emulation program.
Use the correct emulation
software option(s) for this
model.
There is no program in printer
memory. Download the
program again.
Check the security PAL at
location U54 on the CMX
controller. If the PAL is
absent, install correct PAL. If
security PAL is present,
replace the CMX controller
board.
Replace DRAM. If message
occurs with new DRAM,
replace CMX controller board.
1. Download the program
again.
ERROR: WRONG
CHECKSUM
ERROR OCCURRED
FLUSHING QUEUES *
LOADING PROGRAM FROM
PORT XX%
The printer received the
complete program but the
checksum did not match. The
data were corrupted during
download.
This is an interim message
that displays while the printer
discards host data it cannot
use because a fault condition
exists. While this message
displays, the asterisk (*)
rotates.
The new program is loading
into printer RAM. XX
indicates how much of the
program has loaded.
2. If the message occurs
again, replace the flash
memory.
Download the program again.
Wait. When the asterisk (*)
stops rotating, a different fault
message will appear:
troubleshoot the final
message.
None
20
Flash Memory Message Guide
MessageExplanationRequired Action
LOADING PROGRAM INTO
FLASH
PLEASE WAIT...RESET IN
PROGRESS
RESTORING BOOT CODENormal download initialization
SECURITY CODE
VIOLATION
SENDING PROGRAM TO
EC PROCESSOR
TABLE MISMATCH
DOWNLOAD AGAIN
The printer has deleted the
previous program from flash
memory and is loading the
new program into flash
memory.
The printer finished loading
the program into flash
memory and is automatically
resetting itself.
message.
The software running or being
downloaded does not match
the security PAL code.
The printer is loading the
engine controller program into
the engine controller.
EC software update in
process.
None
None
None
Install the correct PAL or
program. (PAL and program
must match.)
None
Download the program again.
21
Chapter1Installing Printer Emulations
22
2ANSI Emulation
Overview
This chapter describes the American National Standards Institute (ANSI) host
control codes that are supported on your printer. “Emulation” refers to the
ability of a printer to execute the commands of a particular printer control
language. A printer control language is the coding system used to convey,
manipulate, and print data. In this manual, the terms “emulation”, “printer
protocol”, and “printer control language” are synonymous.
In the ANSI emulation mode, the printer can print files coded for the ANSI
printer control language. To select the ANSI emulation as the active printer
emulation, refer to your User’s Manual.
The ANSI emulation provides many adjustable parameters. The default
parameter values for this emulation are shown in Table 1. You can modify
these parameter values in two ways:
•The ANSI host control codes. A set of ANSI control code commands
can be sent to the printer from an attached host computer via the printer
I/O port. This chapter describes these ANSI control code commands.
•The printer configuration menus. You can modify a subset of the ANSI
emulation parameters using the configuration menus and the control
panel keys, as described in your User’s Manual.
NOTE: A parameter value set by a host control code overrides a value set
from the printer control panel.
Configuration values selected from the menus or via host control codes can
be saved to memory so that they will not be lost when you power off the
printer. The menu selection for saving a configuration to memory is described
in your User’s Manual.
ANSI Emulation Default Settings
The ANSI factory settings are shown in Table 1 on page 24. Table 2 on page
25 lists additional factory settings for parameters provided by the LinePrinter
®
Plus
formatting menus. (The EMULATION menu options are described in
the User’s Manual). Host control codes can override many of the settings for
these menu options.
23
Chapter2Overview
CPI10.0
LPI6.0
TypefaceData Processing
Proportional SpacingDisable
Bold PrintDisable
Slash ZeroDisable
Left Margin0 columns
Right Margin0 columns
Top Margin0 lines
Table 1. ANSI Menu Option Factory Settings
CharacteristicDefault Setting
Bottom Margin0 lines
Form Length66 lines
Form Width136 characters
Define CR CodeCR = CR
Auto LFDisable
Define LF CodeLF = CR + LF
Character SetLatin 1 8859-1
Printer SelectON = DC1/OFF = DC3
ESC c sequenceEnable
Reset Cmd CFG LdDisable
Received CRObserve
Received DelObserve
Private ModeSet 2
Pos. on BC/OvrSzSet to top
BC check digitBy host
24
Barcode DarkmodeEnable
PUM DefaultDecipoints
Truncate PI SlewTruncate at TOF
ANSI Emulation Default Settings
Table 2. LinePrinter+ Menu Option Factory Settings
CharacteristicDefault Setting
CPI10.0
LPI6.0
Host CommandEnable
TypefaceData Processing
Proportional SpacingDisable
Bold PrintDisable
Italic PrintDisable
Slashed ZeroDisable
Text PositionTop of Line
Left Margin0 columns
Right Margin0 columns
Bottom Margin0 lines
Perforation SkipDisable
Form Length11.0 inches
279.4 millimeters
66 lines
Form Width13.6 inches
345.4 millimeters
136 characters
Reset Cmd CFG LdDisable
25
Chapter2Configuring The ANSI Emulation
Configuring The ANSI Emulation
Control codes transmit information other than printable characters to the
printer. They occupy the first 32 locations on the ASCII code chart (shown in
Appendix A) and are represented by two- or three-letter abbreviations. The
control code LF (decimal 10, hex 0A), for example, is usually interpreted as a
line feed. The response of the printer to other control codes will depend on the
emulation.
NOTE: Commands and control codes sent from a host system generally
override previous settings that result from the configuration menus.
However, any configuration settings from host control codes will be
gone once the printer is powered off (or reset to the default values),
unless you have saved them to memory using the configuration
menus. The User’s Manual describes the configuration menu option
for saving changes.
Control Codes
ACK (Acknowledge 06H)
A received ACK is ignored. A transmitted ACK is used as part of the serial
interface ETX/ACK protocol. Upon the end of transmission of a block of data
terminated with an ETX, the host stops sending data until the printer interface
sends an ACK back to the host.
BEL (Bell 07H)
Receipt of a BEL code causes the beeper to sound for approximately 1
second.
BS (Backspace 08H)
A BS permits overprinting of characters. This command moves the character
position one character width to the left. If the current print position is at column
one, this command is ignored.
CR (Carriage Return 0DH)
If configured CR=CR+LF, the line will print, the paper will advance to the next
line, and the print position will move to column one.
If configured CR=CR, the print position is set at column one of the current line.
Any subsequent printable data preceding a paper motion command will
overstrike previously printed data. If it is set to ignore by the panel, then the
CR will be ignored.
26
DC1 (Device Control-1 11H)
Switches the printer from local to on-line mode and enables the printer to
receive data. If the serial interface is selected, DC1 acts as a data stream
control code. When the buffer is empty, the printer will send a DC1 (XON) to
the host computer, which will send data to the printer until the printer sends a
DC3 (XOFF) to the host computer.
Control Codes
DC3 (Device Control-3 13H)
Switches the printer from on-line to local mode. Causes the printer to ignore
all data except a DC1. If the serial interface is selected, DC3 acts as a data
stream control code. When the buffer is full, the printer will send a DC3
(XOFF) to the host computer, which will stop sending any data to the printer
until the printer sends a DC1 (XON) to the host computer.
DEL (Delete 7FH)
The delete character causes the character at this location in the current
character set to print. In graphics mode, the delete character is treated as
data. If it is set to ignore by the panel, then the DEL will be ignored.
ESC (Escape 1BH)
Escape signals the beginning of a special sequence. Characters in a valid
escape sequence are not printed.
FF (Form Feed 0CH)
Form Feed is a line terminator. All data received since the last line terminator
are printed and the paper is advanced to the next top-of-form.
HT (Horizontal Tab 09H)
An HT causes one of two actions. If a horizontal tab table is present, each HT
received is replaced by the number of space characters required to move the
current print position to the next tab location. If a horizontal tab table is not
present, a space is substituted for the HT character.
LF (Line Feed 0AH)
An LF code causes the line to be printed and the paper is advanced to the
next line, and the print position will remain at the same character column.
If the LF code is received in the horizontal graphics mode, paper is advanced
one or two dot rows depending on the vertical dot density.
If the LF is received in the vertical graphics format, paper is advanced after
the six dot rows are printed.
Vertical graphics spacing is 12 LPI for low vertical density and 24 LPI for high
vertical density.
VT (Vertical Tab 0BH)
A VT code causes the line to print and the paper to advance to the next tab
stop if a vertical tab is set.
If a tab position is at the current line, the paper advances to the next tab
position.
If there are no tab positions between the current line and the end of the form,
the paper advances to the next line at the current line spacing.
If the current position is at the bottom margin and a VT is sent, the paper will
advance to the next top-of-form.
27
Chapter2Configuring The ANSI Emulation
NOTE: Channel 12 is always used with the VT character. See Chapter 3,
“Vertical Page Formatting,” for more details.
Format For Control Code Descriptions
The following information is listed for each control code (where applicable):
NameThe title or function of the command.
ASCII Code The ASCII mnemonic for the command is shown for the printer
and the ANSI protocol. Command sequences are in 7-bit (ASCII)
form.
Hex CodeThe code or command sequence in hexadecimal numbers.
Dec CodeThe code or command sequence in decimal numbers.
Expression The control codes used in the BASIC programming language.
PurposeThe function(s) of the control code.
Discussion A discussion of the uses of the code or command sequence,
including exceptions or limitations to its use.
ExampleA sample program written in BASIC programming language is
provided when it is possible to illustrate the effect of a control
code or if a specific syntax is required.
Examples are shown below of escape sequences as written in the text, shown
with parameters filled in, and written in the BASIC program language.
NOTE: If you specify parameters for a control code other than the ones
defined in the control code description, unpredictable results may
occur.
NOTE: Throughout this chapter the term “decipoints” is used. A decipoint
equals 1/720 inch and is used as a standard of measurement for
parameters associated with distances.
28
Format For Control Code Descriptions
p
r
Escape Control Codes Overview
Printer capability is greatly increased by the use of escape control code
sequences. Escape sequences always begin with the ASCII escape
sequence introducer, ESC (hex 1B). Many of the ASCII control codes
described in this chapter are escape sequences.
IMPORTANT
An Escape code can occur anywhere in the data stream and is acted
upon immediately if it precedes a valid command.
An ESC sequence introducer in the data stream signals the printer to wait for
special instructions, even if it is ready and printing. The character codes
following the ESC character tell the printer what to do.
NOTE: For readability, code sequences appear in this manual with spaces
inserted between command elements. Do not insert spaces between
code characters when you are programming unless the ASCII space
character (SP) is part of a code sequence. For example, a code
sequence printed in this manual as ESC [ 1 is programmed as ESC[1.
An escape sequence uses two or more bytes to define a specific printer
control function. The format for an escape sequence is
ASCII
Hex
ESCX
1B
Escape
Sequence
Introduce
00 - 5F
Character(s)
0 - FF
Numerical
parameter(s)
After the ESC character are one or more characters which indicate the action
of the control code. One or more numerical parameters may in turn follow
these characters. For example, the sequence ESC [ p g tells the printer to
clear all horizontal tabs if p is a 3, or to clear all vertical tabs if p is a 4.
If the characters following the ESC code are not within the defined ranges, or
if they are within the defined ranges but are not recognized as a function of
this printer, the entire sequence is ignored.
29
Chapter2Configuring The ANSI Emulation
Control Codes Index
The following index lists the control codes by ASCII sequence, function and
page number. Some control code functions can also be selected at the control
panel.
FUNCTIONSEQUENCEPAGE
Character Sets, InternationalESC[p1 x31
Expanded ModeESC[p1;p2 SP B33
Forms Length, Top Margin,
Bottom MarginESC[p1;p2;p3 r34
Graphic RenditionESC[p1;p2...;pn m35
Line SpacingESC[p1;p2 SP G36
Margins, Left and RightESC[p1;p2 s37
Private Mode, DisableESC[>5l38
Private Mode, EnableESC[>5h38
Proportional Print ModeESC[6 m38
ResettingESC c39
SubscriptESC K40
SuperscriptESC L40
Tab, ClearESC[p1 g40
Tab Set, Multiple HorizontalESC[p1;p2...;pn u41
Terminate Loading of DataESC \42
Vertical Position AbsoluteESC[p1 d42
Vertical Position RelativeESC[p1 e42
Graphics Commands
Dot GraphicsESC P46
Repeat Graphics CharacterESC[p1 b46
Select Graphics ModeESC[p1;p2;p3 q47
Entering and Exiting Bar Codes ESC[p1 t48
Setting Bar Code ParametersESC[p1;p2...;p10}48
Oversized Character
Font OptionESC[p1 |56