advertisement
Model 8900 Series Printer
Technical Reference Manual
5321 Buffalo Road • Erie, PA 16510
800-570-4533 • www.fastprinters.com
Contents
Preface ............................................................................................... v
1 General Information
Introduction .................................................................................... 1-2
Paper-Handling System .................................................................. 1-2
Printer Features ............................................................................... 1-3
Printer Quality ................................................................................ 1-4
Raster Graphics .............................................................................. 1-6
2 Printer Setup
Introduction .................................................................................... 2-3
Model 8900 Series Emulation Modes ............................................ 2-5
Miscellaneous Setup Parameters .................................................. 2-14
Test Features ................................................................................. 2-18
3 Character Sets and Global Commands
Introduction .................................................................................... 3-2
Character Code Table ..................................................................... 3-2
Character Sets ................................................................................. 3-3
Control Characters ........................................................................ 3-16
Printer Commands ........................................................................ 3-18
Global Command Set .................................................................... 3-19
Global Command Descriptions .................................................... 3-19
4 TI Model 880 Printer Emulation
Introduction .................................................................................... 4-4
Model 880 Printer Emulation Commands ...................................... 4-6
Model 880 Command Descriptions .............................................. 4-10
5 TI Model 855 Printer WP Emulation
Introduction .................................................................................... 5-4
Motion Indexes ............................................................................... 5-5
Model 855 WP Commands............................................................. 5-6
Model 855 WP Command Descriptions ......................................... 5-9 ii
Contents
6 Tl Model 855 Printer DP Emulation
Introduction .................................................................................... 6-3
Model 855 DP Command Descriptions .......................................... 6-7
7 IBM Proprinter XL Emulation
Introduction .................................................................................... 7-4
IBM Proprinter XL Emulation Commands .................................... 7-5
IBM Proprinter XL Command Descriptions .................................. 7-7
8 Epson FX Printer Emulation
Introduction .................................................................................... 8-5
Epson FX Printer Emulation Commands ....................................... 8-7
Epson FX Emulation Command Descriptions ............................. 8-10
9 Optional Emulation Commands
Introduction .................................................................................... 9-2
DEC LA120 Emulation Commands ............................................... 9-2
Answerback Memory Function ...................................................... 9-5
New Line Mode .............................................................................. 9-5
Auto Wrap ...................................................................................... 9-6
Answerback Memory Message Load ............................................. 9-6
10 Communication Interfaces
Introduction .................................................................................. 10-3
Data-Transfer Operations ............................................................. 10-4
Parallel Communication Interface ................................................ 10-6
Serial Communication Interface ................................................. 10-14
Optional Communication Interfaces ........................................... 10-21
Appendix
Application Instructions ................................................................ A-1
Index
iii
Copyright © 2001 by Lake Erie Systems
All Rights Reserved — Printed In U.S.A.
Model 8900 Series Printers
Technical Reference Manual
Part No. 2557824-0002
Original Issue: August 1989
Revision F: January 2001
Changes may be periodically made to the information in this publication.
Such changes will be incorporated in new editions of this manual.
Record the serial number, purchase date, and firmware revision number in the spaces provided below. The serial number and firmware revision are recorded on the label affixed to the rear of the unit. All correspondence concerning your unit should include the serial number, firmware revision, and date of purchase.
Serial Number: ____________ Purchase Date: ____________
Firmware Revision: ___________________________________
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopy, recording, or otherwise, without the prior written permission of Lake Erie Systems.
This printer, as well as the programs that Lake Erie Systems has created to use with it, are tools that can help people better manage the information used in their business: but tools—including Lake Erie Systems products—cannot replace sound judgment nor make the manager’s business decisions.
Consequently, Lake Erie Systems cannot warrant that its products are suitable for any specific customer application. The manager must rely on judgment of what is best for his or her business.
Page Finder, Z-Axis control, and Rapid Print are trademarks of Lake Erie Systems.
Epson is a registered trademark of Seiko Epson Corporation.
IBM is a registered trademark and Proprinter is a trademark of International
Business Machines Corporation.
iv
Preface
This manual contains technical information about the Model 8900
Series Printers. This information supplements the information contained in the Model 8900 Series Printer User’s Manual Part No.
2557785-0002 and is essential to programmers, system managers, and other technically oriented people.
The information in this manual is presented in individual sections so you can skip pages with information you already know or that does not apply to your particular application.
Symbols Used in This Manual
Two international symbols are used throughout this manual to advise you of important information.
This symbol indicates a Note concerning operating procedures or information you should know to help you operate your printer.
!
This symbol alerts you to a Warning or Caution which can prevent you from causing a hazard to yourself or to your printer.
Contents
Chapter 1 — General Information provides a general description of the Model 8900 Series Printer and brief information about some of the principals of dot-matrix printing.
Chapter 2 — Printer Setup provides information about printer configuration. Specifically, this chapter describes the control panel switch functions and the setup/test menu. This information supplements the information contained in Chapter 4 of the Model 8900 Series
Printer User’s Manual, Part No. 2557785-0002.
v
Chapter 3 — Character Sets and Global Commands provides general information about character sets and their use in the Model
8900 Series Printer and describes the commands that are valid for all emulation modes, both standard and optional. These commands provide control of the basic features of the Model 8900 Series
Printer.
Chapter 4 — Texas Instruments Model 880 Printer Emulation describes the commands of the Model 880 Printer command set and provides information about operating the Model 8900 Series Printer in the Model 880 Printer emulation mode.
Chapter 5 — Texas Instruments Model 855 Printer WP Emulation describes the commands of the Model 855 Printer WP emulation command set and provides information about operating the Model
8900 Series Printer in the Model 855 Printer WP emulation mode.
Chapter 6 — Texas Instruments Model 855 Printer DP Emulation describes the commands of the Model 855 Printer DP emulation command set and provides information about operating the Model
8900 Series Printer in the Model 855 Printer DP emulation mode.
Chapter 7 — IBM Proprinter XL Emulation describes the commands of the IBM Proprinter XL command set and provides information about operating the Model 8900 Series Printer in the
IBM Proprinter XL emulation mode.
Chapter 8 — Epson FX Printer Emulation describes the commands of an Epson FX printer command set and provides information about operating the Model 8900 Series Printer in the Epson FX printer emulation mode.
Chapter 9 — Optional Emulation Commands describes optional emulation commands available for the Model 8900 Series Printer.
Chapter 10 — Communication Interfaces describes the standard parallel and serial communication interfaces used with the Model
8900 Series Printer.
vi
Appendix — Application Instructions explains how to use the Z-axis printhead adjustment escape sequence and how to clean the automatic page finder sensor.
Other Manuals About the Printer
The following manuals are available to help you learn more about your printer and to help you operate and maintain the printer.
Title Part Number
Model 8900 Series Printer Quick Reference Guide 2557786-0002
Model 8900 Series Printer User’s Manual 2557785-0002
Model 8900 Series Printer Maintenance Manual
Model 8900 Series Printer Safety Instructions
2557788-0001
2557807-0002
Supplies
2551152-0011 Ribbon Cartridge, Black
2551152-0014 Ribbon Cartridge, Color
You can order the Model 8900 Series Printers, manuals, ribbons and spare parts from LAKE ERIE SYSTEMS AND SERVICES by calling toll free: 1-800-570-4533 or online at www.fastprinters.com
Purchase Orders can be sent to:
LAKE ERIE SYSTEMS
5321 Buffalo Road
Erie PA 16510 or may be faxed to: 814-899-1384 vii
1
General Information
Introduction .................................................................................... 1-2
Paper-Handling System .................................................................. 1-2
Printer Features ............................................................................... 1-3
Print Quality ................................................................................... 1-4
Raster Graphics .............................................................................. 1-6
General Information 1-1
Introduction
The Model 8900 Series Printer is one of a family of rugged, highperformance, dot-matrix impact printers, which forms letters, numbers, and other symbols by printing dot patterns. The printer offers a variety of common and unique features, such as multiple paper paths and paper-feed methods, selectable print-quality settings, zero paper tear-off to prevent waste of paper and forms, and color printing.
This chapter provides general information about the printer.
Paper-Handling System
Both models (8930 and 8920) of the Model 8900 Series Printer can print heavy-duty multipart continuous forms. In addition, the 8930 can accept hand-inserted cut-sheet paper. Upon completion of a printing operation, the printer automatically positions the tear-off perforation even with the tear-off bar to allow removal of the printed document.
A useful feature of the printer is its ability to park continuous paper out of the print station area for unloading the paper supply or for switching to another paper-handling mode. This feature lets you switch instantly from continuous paper operation to cut-sheet paper insertion (Model 8930).
Each time you load continuous paper or insert cut-sheet paper, the printer automatically positions the paper and adjusts the printhead.
The Page Finder ™ sensor (located on the printhead carriage) detects the top, left, and right edges of the paper and sends this information to the printer electronics. The printer uses this information to adjust the paper to the top-of-form position and to adjust the printhead to operate within the left and right boundaries of the paper, regardless of the paper width. The Z-Axis Control ™ motor adjusts the printheadto-paper (z-axis) clearance to its optimum value, regardless of the thickness of the paper or form set.
General Information 1-2
All paper-handling operations are accessible through the control panel and via the host computer using global commands.
Printer Features
The Model 8900 Series Printer includes the following features.
q Print quality choices — letter-quality (LQ), text, normal draft, and Rapid Print ™ draft q Standard character sets — US ASCII (with 13 international substitution tables), IBM ® PC1, IBM PC2, IBM Multinational,
ISO 8859/1 Multinational and Nordic PC q Character spacing (pitch) — 5.0, 6.0, 7.5, 8.6, 10.0, 12.0, 15.0,
16.7 and 17.1 characters per inch (cpi), depending on the emulation mode in effect q Line length — 13.6 inches (345.44 mm) maximum q Maximum character columns — 136 at 10.0 cpi, 163 at 12.0 cpi,
204 at 15 cpi, and 227 at 16.7 cpi q Line spacing — 3, 4, 6 and 8 lines per inch (lpi) q Line feed modes — forward and reverse full or one-half line (for superscript and subscript characters) q Print enhancements — bold, emphasized, underlined, and expanded with true descenders (for lowercase characters such as
g, j, and y) q Standard fonts — Courier and Gothic q Optional fonts — Prestige Elite, Presenter, Barcode 3 of 9,
Interleave 2 of 5, OCRA, OCRB and PostNet
General Information 1-3
q Graphics capabilities — vertical raster graphics (all points addressable) q Color printing — up to seven colors, including black, for both text and graphics (standard on Model 8930 and optional on
Model 8920) q Resident emulation modes — TI 880, TI 855, Epson
® FX and
IBM Proprinter XL q Standard communication interfaces — serial (RS-232 or RS-423 specified by customer when purchasing the printer) and parallel q Optional communication interfaces — RS-422 serial and current loop (TTY)
Print Quality
The dot-matrix impact printhead forms a character by printing dots in a rectangular arrangement of dot cells called a dot matrix.
The following figure shows some examples of dot-matrix characters.
Each character is printed in a 7-dot by 9-dot matrix. Three columns of blank dots at the right side of each character, the intercharacter space, provide the proper horizontal spacing between characters.
General Information 1-4
typical dot-matrix characters
Quality can be improved by increasing the dot density (resolution), as shown in the following figure. Dot density is expressed in dots per inch (dpi).
low-resolution character medium-resolution character effect of increasing dot density high-resolution character
The Model 8900 Series Printer offers four levels of print quality, based on the dot density and the placement of dots on the matrix.
The increased dot density at higher print-quality levels decreases the print speed.
General Information 1-5
The printer offers the following print-quality levels and speeds.
q Letter quality (LQ) — high-resolution, 32-dot by 18-dot characters at 100 characters per second (cps).
q Text quality — medium-resolution, 15-dot by 9-dot characters at
240 cps.
q Normal draft quality — low-resolution, 9-dot by 9-dot characters at 400 cps.
q Rapid Print draft quality — low-resolution, 7-dot by 9-dot characters. This mode is only valid for character spacings
(pitches) of 12 characters per inch (cpi) and 15 cpi. These character pitches allow the printer to print at speeds of 480 cps and 600 cps, respectively.
Raster Graphics
The all-points-addressable raster graphics mode lets you use your printer to produce pictorial material, such as charts, graphs, special characters, or almost any design you can devise. Special commands allow you to design images of any shape by causing the printhead to print dots in the appropriate places. (See Chapters 4 through 8 for information about raster graphics commands.)
The best way to print graphics is to use one of the many commercially available application programs. These programs let you design images by drawing them on your computer monitor and then issuing a command to send them to your printer.
General Information 1-6
2
Printer Setup
Introduction .................................................................................... 2-3
Model 8900 Series Emulation Modes ............................................ 2-5
TI 880 Emulation ....................................................................... 2-6
Execute Commands .............................................................. 2-6
Line Feed and Carriage Return Upon Receipt of LF ............ 2-6
Line Feed and Carriage Return Upon Receipt of CR ........... 2-7
Carriage Return Upon Receipt of LF, VT, or DC2 ............... 2-7
Graphics ................................................................................ 2-7
Shift Out Equals Expanded Print .......................................... 2-7
TI 855 Emulation ....................................................................... 2-8
Processing Mode ................................................................... 2-8
Automatic Line Feed ............................................................ 2-8
IBM Proprinter XL and Epson FX Emulations ......................... 2-8
Automatic Line Feed ............................................................ 2-8
Automatic Carriage Return ................................................... 2-9
Slashed Zeros ........................................................................ 2-9
Hexadecimal Dump Mode ......................................................... 2-9
Interface Parameters ................................................................ 2-10
Port .......................................................................................... 2-10
Buffer Size ............................................................................... 2-10
Baud Rate ................................................................................ 2-11
Data Bits .................................................................................. 2-11
Parity ....................................................................................... 2-11
Flow Control ............................................................................ 2-11
XON/XOFF (transmit-on/transmit-off) ................................... 2-12
Robust XON/XOFF ................................................................. 2-12
ETX/ACK (end-of-text/acknowledge) ............................... 2-13
Connection ............................................................................... 2-13
DTR (Pin 20) ...................................................................... 2-13
PIN 11 ................................................................................. 2-13
Printer Setup 2-1
Miscellaneous Setup Parameters .................................................. 2-14
Character Set ........................................................................... 2-14
Z-Axis Control ......................................................................... 2-15
Ribbon Type ............................................................................ 2-15
Ribbon Adjust .......................................................................... 2-15
Idle Delay................................................................................. 2-16
Power-Up Online ..................................................................... 2-16
Paper Pull-Down Warning ....................................................... 2-16
Graphics Printing Mode ......................................................... 2-17
LCD Language ......................................................................... 2-17
Paper Out Equals Busy ............................................................ 2-17
Limiting Control Panel Operation ........................................... 2-17
Test Features ................................................................................. 2-18
Printer Setup 2-2
Introduction
The Model 8900 Series Printers are compatible with a wide range of computers and application software. The printer menu structure enables you to select and alter the fundamental printer operating parameters to fit the requirements of your computer, its communication interface, and its application software. You can set these parameters via the operator control panel (see the following figure).
To set up the printer, you set the various printer parameters to meet the requirements of your computer system. (Refer to your computer operator’s manual for more information.) After you set the parameters to the required values, the printer stores these settings in its nonvolatile random-access memory (NVRAM). Because the NVRAM retains information even when the printer is without power, the printer retains these settings until you change them.
function switch associated with messages and symbols shown at the left end of the display (loads form on 8930) selects one of ten preset form formats or forms settings report select items shown on the display (loads form on 8920) messages and symbols shown at the display function switch associated with right end of the display allows you to change form format values allows you to select the primary paper path or an alternate paper path selects one of four character spacing choices selects one of three print quality choices allows you to get a report of current printer settings, test basic printer functions, and change printer features selects online or offline operation
F1 Select F2
Paper
Path
Pitch
Form
Select Config.
On Line
Quality Font Clear
Error
Setup/
Test
Status Form
Align
Form
Feed causes the display to show a brief summary of printer status and current printer settings clears error messages from the display selects one of the standard fonts or an optional font advances paper to the top of the next form invokes the form align screen which lets you move the paper up or down in the print station operator control panel
Printer Setup 2-3
Note: The Model 8900 Series Printers User’s Manual (Part No.
2557785-0002) explains the basic use of the operator control panel and its associated menu structure.
The Setup/Test switch on the control panel lets you enter the setup/ test menu. This menu consists of the following submenus containing most of the printer setup parameters and test features.
q Emulation mode — The emulation mode submenu lets you select an emulation mode and set its parameters. This submenu also lets you select the hexadecimal dump mode.
q Interface parameters — The interface parameters submenu lets you set the serial communication parameters to the values required by the host computer and by the communication interface.
q Miscellaneous parameters — The miscellaneous parameters submenu lets you select various printer features, both standard and optional.
q Test mode — The test mode submenu lets you select the printer test features.
The following figure shows the setup/test menu and the following paragraphs describe the setup/test submenus.
Setup/
Test
Emulation setup/test menu
Interface Misc Test Mode
Printer Setup 2-4
Model 8900 Series Emulation Modes
The emulation mode determines how the printer responds to commands from the host computer and determines the specific set of commands to which the printer responds. For example, if you select the TI 880 emulation mode, the printer emulates the functions of the TI Model
880 Printer and responds to the set of commands designed for that printer.
The emulation mode submenu lets you choose one of the following emulation modes or select the hexadecimal dump mode.
q TI Model 880 printer (default) q TI Model 855 printer q IBM Proprinter XL q Epson FX printer q Optional q Hexadecimal dump
Chapters 4 through 8 of this manual describe these emulation modes and their functions. The emulation mode you choose must be compatible with the host computer and its currently installed software.
The following figure shows the emulation mode submenu and the following paragraphs describe the emulation mode setup parameters.
Printer Setup 2-5
Emulation
TI880
Execute
Commands
ON
OFF
LF/CR
ON LF
OFF
OFF
LF/CR
ON CR
ON
OFF
CR W/LF
VT DC2
ON
OFF
TI855
Proc Mode
DP
WP
Auto LF
NO
YES
ProPrinter
Auto LF
NO
YES
Auto CR
NO
YES
Slashed 0’s
NO
YES
Epson
Auto LF
NO
YES
Auto CR
NO
YES
Slashed 0’s
NO
YES optional
Graphics
ON
OFF
SO=
Expand
ON
OFF emulation mode submenu
Hexdump
TI 880 Emulation
The TI 880 emulation submenu contains a group of setup parameters that can be set to either on or off. These parameters determine how your printer responds to certain commands from the host computer.
Execute Commands
When on, this parameter enables the printer to respond to escape sequence commands from the host computer. The default setting is ON.
Line Feed and Carriage Return Upon Receipt of LF
When on, this parameter causes the printer to perform both a line feed (LF) operation and a carriage return (CR) operation upon receiving an LF command from the host computer. The default setting is OFF.
Printer Setup 2-6
Line Feed and Carriage Return Upon Receipt of CR
When on, this parameter causes the printer to perform both an LF operation and a CR operation upon receiving a CR command from the host computer. The default setting is OFF.
Carriage Return Upon Receipt of LF, VT, or DC2
When on, this parameter causes the printer to perform a CR operation upon receiving any of the following commands.
q Line feed (LF) — The printer moves the printhead down to the next print line and returns the carriage to the left margin.
q Vertical tabulation (VT) — The printer prints the remainder of the current print line, moves the printhead down to the next vertical tab stop, and returns the carriage to the left margin.
q Device control 2 (DC2) — The printer moves the printhead down to the print line specified by the DC2 n (Move to Line n) command and returns the printhead to the left margin.
The default setting for the parameter CR W/LF VT DC2 is OFF.
Graphics
When on, this parameter enables the raster graphics escape sequences described in Chapter 4. The default setting is OFF.
Shift Out Equals Expanded Print
When on, this parameter causes the printer to print one line of expanded print after receiving a shift out (SO) command. When this parameter is off, the printer invokes the G1 character set into the GL area of the character table upon receiving SO. The default setting is
OFF.
Printer Setup 2-7
TI 855 Emulation
The TI 855 emulation submenu contains the processing mode (WP/DP) parameter and the automatic line feed parameter, both of which can be set to match the requirements of your computer. The following paragraphs describe these parameters.
Processing Mode
The Tl 855 emulation mode lets you choose either of the following processing modes.
q DP mode — uses commands (described in Chapter 6) similar to those used by a dot-matrix-type printer.
q WP mode — uses commands (described in Chapter 5) similar to those used by a daisy-wheel printer.
The default setting for the processing mode parameter is DP.
Automatic Line Feed
Some software programs send both a CR command and an LF command at the end of each print line, while others send only a CR command.
For software that sends only a CR command at the end of each print line, the printer needs to perform an LF operation automatically. The default setting for the automatic LF parameter is NO.
IBM Proprinter XL and Epson FX Emulations
The IBM Proprinter XL and Epson FX emulation submenus contain the same following parameters.
Automatic Line Feed
This parameter is identical to the automatic LF parameter described for the TI 855 emulation mode. The default setting is NO.
Printer Setup 2-8
Automatic Carriage Return
This parameter is similar to the automatic LF parameter but is turned on for software that does not send a CR command at the end of each print line. If the printer advances from print line to print line but fails to perform a carriage return operation, you need to turn on the automatic CR parameter. The default setting is NO.
Slashed Zeros
When on, this parameter causes the printer to print slashes over all zeros to distinguish them from the letter O. The default setting is NO.
Hexadecimal Dump Mode
The hexadecimal dump (HEXDUMP) mode causes the printer to print the ASCII (hexadecimal) codes for all text characters, control characters, and escape-sequence commands it receives. The resulting printout can be useful as a troubleshooting device or in analyzing a block of data and commands sent from the host computer.
The printer does not respond to any control characters or commands
except when the printer is using the serial or option port and FLOW
CONTROL is set to ETX/ACK; in such a case, the printer interprets and responds to an ETX control character as an end-of-text command.
The ETX character is also included as part of the hex dump.
Note: Chapter 3 describes ASCII codes and control characters;
Chapters 5 and 6 describe the escape-sequence commands for the
TI 855 emulation mode.
Printer Setup 2-9
Interface Parameters
The interface parameters are values associated with serial communication interfaces. When using a serial interface, these parameters must be set to correspond to the capabilities of the host computer and the interface.
The following figure shows the interface submenu and the following paragraphs describe the interface setup parameters.
Port
The port submenu lets you choose the correct communication interface port, depending on whether you are using a serial, parallel, or optional interface. The default setting is SERIAL.
Buffer Size
The buffer size specifies the number of data bytes that the printer’s receive buffer can store. The buffer size parameter can be set to 256,
4000, or 32,000 bytes. The default setting is 32,000.
Printer Setup 2-10
Baud Rate
The baud rate is the rate (in bits per second) at which the interface transfers data. This parameters are 300, 600, 1200, 2400, 4800, 9600, or 19,200 bits per second. The default setting is 9600.
Note: Data transferred over a serial interface consists of either 7- or
8-bit data bytes, each of which is accompanied by a start bit, a stop bit, and a parity bit. The values chosen for the data bits and parity parameters depend upon the requirements of the host. (See Chapters
3 and 10.)
Data Bits
The data bits parameter specifies whether the printer is to print 7- or
8-bit character codes. The default setting is 8. (Refer to Chapters 3 and 10 for information about 7- and 8-bit data.)
Parity
Parity checking (often called simply parity) is a method of verifying that data is not changed in the transfer process. This parameters are
None, Odd, Even, Mark, or Space, depending upon the requirements and capabilities of your computer. The default setting is NONE. If the parity bit is selected, it is in addition to the 7 or 8 data bits.
Flow Control
To ensure the orderly flow of data between the host and printer, the host computer establishes a set of rules commonly known as the ready/busy protocol. This protocol allows the printer to notify the host that it is either ready to receive data or that it is busy and cannot receive data. The following paragraphs describe the flow-control parameters.
Printer Setup 2-11
XON/XOFF (transmit-on/transmit-off)
For this busy-handling protocol, the printer sends a single XON (a
DC1 control character) to indicate that it is ready to receive data and a single XOFF (a DC3 control character) to indicate that it is busy.
The default setting is OFF.
Robust XON/XOFF
For the robust XON/XOFF protocol, the printer sends an XON (DC1 control character) approximately every 5 seconds to indicate that it is ready to receive data until either data is received or another busy condition occurs. The printer sends an XOFF (DC3 control character) when the initial busy condition occurs (buffer overflow) to indicate that it is busy. If the host continues to send data, the printer sends an
XOFF approximately every 20 ms until the hosts stops sending data.
The default setting is OFF.
The following table lists the ready and busy points using the
XON/XOFF protocol.
LCD Display of
Buffer Size
Busy Point
From Empty
Ready Point
After Busy
32,000
4,000
@ 32,000 Bytes
@ 4,000 Bytes
@ 31,250 Bytes
@ 3,250 Bytes
256 @ 256 Bytes @ 128 Bytes
Note: Actual buffer size is 32,768 bytes; overflow error status only occurs after 32,768 bytes.
Printer Setup 2-12
ETX/ACK (end-of-text/acknowledge)
For this busy-handling protocol, the host sends an ETX control character at the end of each data transmission, and the printer responds with an ACK control character to indicate that it is ready to receive additional data. If the printer is busy when it receives the
ETX control character, it delays sending the ACK control character until the busy condition is cleared. The default setting is OFF.
Connection
This feature provides selections for use when connecting the printer directly to the host computer or indirectly via a modem. When you connect the printer to a modem, set the connection parameter to
MODEM. When you connect the printer directly to the host computer or a terminal, select DIRECT and set the busy-handling parameters to conform to the requirements of the computer. The default setting is DIRECT. The following paragraphs describe the direct connection, ready/busy protocol.
DTR (Pin 20)
For this parameter you can choose either READY HIGH or ALWAYS
HIGH. For the READY HIGH setting, the printer sets interface pin
20 high to indicate that it is ready to receive data and low to indicate that it is busy. For the ALWAYS HIGH setting, pin 20 is not used for busy notification; one of the other busy-handling options must be chosen. The default setting is READY HIGH.
PIN 11
For this parameter, you can choose either READY HIGH or READY
LOW. For the READY HIGH setting, the printer sets interface pin 11 high to indicate that it is ready to receive data and low to indicate that it is busy. For the READY LOW setting the printer sets interface pin 11 low to indicate that it is ready to receive data and high to indicate that it is busy. The default setting is READY LOW.
Printer Setup 2-13
Miscellaneous Setup Parameters
The miscellaneous setup parameters are mechanical and operational features that do not fit logically into the other setup categories.
The following figure shows the miscellaneous setup parameters submenu and the following paragraphs describe these parameters.
Character Set
The Model 8900 Series Printers character set repertoire includes 6 standard character sets and 11 international language versions. The default character set is IBM PC1 and the default international language version is U.S. English.
Printer Setup 2-14
Z-Axis Control
The printer adjusts the printhead-to-paper clearance (z-axis) automatically when you load paper into the printer. In addition, the Z-AXIS parameter provides a manual z-axis adjustment. This selection invokes a display that lets you adjust the printhead in or out.
You also can adjust the z-axis using an escape sequence described in the Appendix to this manual.
Ribbon Type
The RIBBON TYPE parameter lets you choose between color printing and black printing. The default setting is COLOR.
Ribbon Adjust
If the printer appears to be printing mixed colors or missing the upper or lower parts of the characters, the ribbon may need adjustment.
The RIBBON ADJ parameter invokes a display that lets you adjust the ribbon up or down.
Printer Setup 2-15
Idle Delay
At the end of a printing operation, if the paper is at top of form, the printer waits for more data and then, after a short delay (idle delay), moves the paper to the tear-off position. The IDLE DELAY parameter invokes a display that lets you adjust the idle delay to a value in the range of 300 milliseconds to 90 seconds.
You can disable the idle delay feature by selecting a value above 90 seconds, in which case the LCD displays DISABLE. When you disable this feature, the printhead “relaxes” (moves away from the paper) after 91 seconds of idle time and the paper is not moved to the tear-off position.
Power-Up Online
The PWRUP ONLINE parameter lets you set the printer to power-up in either its online or offline condition. The default setting is YES
(power-up online).
Paper Pull-Down Warning
This parameter lets you select the type of warning that occurs when the printer is about to pull down tractor-fed paper from its tear-off position to the normal printing position.
The COUNTDOWN option (factory default) causes the printer LCD to display the numerals 9, 8, 7... down to 1, visually warning that paper pull-down is imminent. The pull-down time delay is increased about 3 to 4 seconds.
The BELL option causes a series of nine beeps of increasing duration to indicate paper pull-down. The pull-down time delay is increased about 3 to 4 seconds.
The BOTH option causes the COUNTDOWN and BELL options to occur simultaneously.
The NONE option turns off the pull-down warning.
Printer Setup 2-16
Graphics Printing Mode
The BI-DIR GRAPHIC parameter lets you choose whether the printer prints graphics bidirectionally or from left to right only. The default setting is NO (print graphics from left to right only).
LCD Language
The LCD LANG parameter lets you set the control panel LCD to display its messages in English, French, German, or Spanish. The default setting is ENGLISH.
Paper Out Equals Busy
The PAPER OUT = BUSY parameter, when set to YES, lets the printer send a busy condition signal to the communication interface when the printer runs out of paper. The default setting is YES.
Limiting Control Panel Operation
This parameter enables you to select three levels of control panel functioning, intended to limit operator access to certain printer function. This effectively prevents operator error resulting from incorrect control panel operation. The menu offers four choices from
Level 0 (factory default) to Level 3.
Level 0 is conventional, full control panel operation.
Level 1 permits full offline control panel operation, but when the printer is online only the Online and Clear Error keys function.
Level 2 limits online operation to the Online and Clear Error keys and, when offline, disables the Form Config, Pitch, Quality, Font, and Setup/Test keys.
Level 3 limits online operation to the Online and Clear Error keys and, when offline, disables the Form Select, Form Config, Pitch,
Quality, Font, and Setup/Test, and Form Feed keys.
Printer Setup 2-17
Access the menu to select the four available options as follows.
1. Press and hold the Clear Error switch, then press and hold the
Status switch.
2. Release the Clear Error switch, continue to hold the Status switch, then press and hold the Setup/Test switch.
3. Release the Status switch, continue to hold the Setup/Test switch. The LCD displays Key Access.
4. Press the F2 switch until the level you want is displayed, then press the On Line switch to return the printer to its previous mode.
Test Features
The test mode submenu lets you use the built-in printer test features. The Model 8900 Series Printers User’s Manual, Part No.
2557785-0001, describes the status report and the barberpole test.
Clear
Error press & hold
Status press & hold
Setup/
Test
Key
Access
Level 0
Level 1
Level 2
Level 3 limiting control panel operation menu
Printer Setup 2-18
3
Character Sets and Global Commands
Introduction .................................................................................... 3-2
Character Code Table ..................................................................... 3-2
Character Sets ................................................................................. 3-3
The US ASCII Character Set ..................................................... 3-3
International ASCII Character Sets ........................................... 3-5
The IBM PC1 Character Set ...................................................... 3-6
The IBM PC2 Character Set ...................................................... 3-8
The Nordic PC Character Set .................................................. 3-10
ISO 8859/1 Multinational Character Set ................................. 3-12
IBM Multinational Character Set ............................................ 3-14
Control Characters ........................................................................ 3-16
Printer Commands ........................................................................ 3-19
Global Command Set .................................................................... 3-20
Global Command Descriptions .................................................... 3-20
Barcode Operations ................................................................. 3-21
Set Barcode Parameters ...................................................... 3-21
Print Barcode Text .............................................................. 3-22
Oversize Characters Feature .................................................... 3-22
Set Oversize Character Scale Factor .................................. 3-22
Print Oversize Character ..................................................... 3-22
Color Printing .......................................................................... 3-23
Selecting an Automatic Sheet Feeder Bin ............................... 3-24
Selecting a Form Format ......................................................... 3-24
Defining Raster Graphics ........................................................ 3-25
Selecting a Font’s HMI ............................................................ 3-25
Selecting Characters Per Inch (cpi) ......................................... 3-26
Selecting Print Quality ............................................................ 3-26
Selecting an International Character Set ................................. 3-27
Selecting an Emulator .............................................................. 3-28
Adjusting the Printhead Z-Axis Position ................................. 3-29
Writing to the Printer Display ................................................. 3-29
Paper-Handling Operations ..................................................... 3-29
Character Sets and Global Commands 3-1
Introduction
This chapter describes the standard character sets and provides information about their use in the Model 8900 Series Printers.
The printer can use any of several standard or optional character sets that can be selected via the operator control panel switches or via the host computer. These character sets provide all control characters and graphic characters necessary to implement the various printer emulation modes.
The standard character sets reside in the printer read-only memory
(ROM), and the optional character sets can be plugged into one of the option ROM sockets on the printer logic board.
Character Code Table
The following figure shows the printer character code table. The character code table is an area in the printer memory in which one
8-bit character set or two 7-bit character sets reside.
Character Sets and Global Commands 3-2
Character Sets
Your printer can use any of the following character sets.
q US ASCII (default character set) q IBM PC1 q IBM PC2 q Nordic PC q ISO 8859/1 Multinational q IBM Multinational
Note: The option ROM sockets on the printer logic board let you install additional character sets.
Character Sets and Global Commands 3-3
The US ASCII Character Set
The following table shows the U.S.A. Standard Code for Information
Interchange (US ASCII) character set. This 7-bit character set is defined by the American National Standards Institute document
ANSI X3.4 and is a variant of the ISO 646 character set.
US ASCII Character Set
Character Sets and Global Commands 3-4
International ASCII Character Sets
With a few exceptions, the international versions of the ASCII character set are identical to the US ASCII character set. These international versions can be selected via the operator control panel or via the host computer. The following table lists the variations between the US ASCII character set and the international versions.
Variations Between US ASCII and International ASCII
Character Sets and Global Commands 3-5
The IBM PC1 Character Set
The following two tables show, respectively, the left half and right half of the the IBM PC 1 character set.
IBM PC1 Character Set, Left Half
Character Sets and Global Commands 3-6
IBM PC1 Character Set, Right Half
Character Sets and Global Commands 3-7
The IBM PC2 Character Set
The following two tables show, respectively, the left half and the right half of the IBM PC2 character set.
IBM PC2 Character Set, Left Half
Character Sets and Global Commands 3-8
IBM PC2 Character Set, Right Half
Character Sets and Global Commands 3-9
The Nordic PC Character Set
The following two tables show, respectively, the left half and right half of the Nordic PC character set.
Nordic PC Character Set, Left Half
Character Sets and Global Commands 3-10
Nordic PC Character Set, Right Half
Character Sets and Global Commands 3-11
ISO 8859/1 Multinational Character Set
The following two tables show, respectively, the left half and right half of the ISO 8859/1 Multinational character set. The shaded character positions (128-159) represent the Cl control characters which are not implemented in the Model 8900 Series Printers.
ISO 8859/1 Multinational Character Set, Left Half
Character Sets and Global Commands 3-12
ISO 8859/1 Multinational Character Set, Right Half
Character Sets and Global Commands 3-13
IBM Multinational Character Set
The following two tables show, respectively, the left half and right half of the IBM Multinational character set.
IBM Multinational Character Set, Left Half
Character Sets and Global Commands 3-14
IBM Multinational Character Set, Right Half
Character Sets and Global Commands 3-15
Control Characters
Any character that causes the printer to perform a function is classified as a control character. Note that, although the Cl control characters are available in one of the standard character sets (ISO 8859/Multinational), your printer does not implement them.
American National Standard ANSI X3.4 and International Standard
ISO 646 define the C0 control characters based on the specific function performed by the character. The C0 control characters are divided into the following categories.
q Communication controls - Control characters intended to control or enable data transmissions over communication networks.
q Format effectors - Control characters that control the layout or position of information on the printed page.
q Information separators - Control characters that separate and qualify information in a logical sense.
q Miscellaneous control characters - Control characters whose definitions preclude their inclusion in the preceding categories.
The following table lists and defines the original use of the C0 control characters.
Note: The functions of the control characters can vary from one emulation mode to another. Therefore, these descriptions are included in Chapters 4 through 9.
Character Sets and Global Commands 3-16
C0 Control Characters
Hexadecimal
Char Code
Communication controls:
SOH
STX
ETX
EOT
ENQ
ACK
DLE
NAK
SYN
ETB
01
02
03
04
05
06
10
15
16
17
Format effectors:
BS
HT
LF
VT
FF
CR
FS
Information separators:
GS
RS
US
1D
1E
1F
08
09
0A
0B
0C
0D
1C
Miscellaneous controls:
NUL
BEL
SO
SI
DC1
DC2
DC3
DC4
CAN
EM
SUB
ESC
DEL
14
18
19
1A
1B
7F
00
07
0E
0F
11
12
13
Definition
Start of header
Start of text
End of text
End of transmission
Enquiry
Acknowledge
Data link escape
Negative acknowledge
Synchronous idle
End of transmission block
Backspace
Horizontal tabulation
Line feed
Vertical tabulation
Form feed
Carriage return
File Separator
Group separator
Record separator
Unit separator
Null
Bell
Shift out
Shift in
Device control 1
Device control 2
Device control 3
Device control 4
Cancel
End of medium
Substitute
Escape
Delete
Character Sets and Global Commands 3-17
Printer Commands
The Model 8900 Series Printers receive commands from the host computer in the form of ASCII control character codes and escapesequence codes. In response to these commands, the printer performs one or more operations defined by the command set of the currently selected emulation mode. Chapters 4 through 8 describe the standard emulation modes.
An example of a control character command common to all character sets and all emulation modes is the line feed (LF) character. This control character (designated by hexadecimal code 0A or decimal code 10) causes the printer to advance the paper or form to the next print line. To invoke the line feed operation, the host computer sends the 8-bit code (00001010) identified as the LF character.
An escape-sequence command is a sequence of two or more characters that always begins with the ASCII escape (ESC) control character designated by hexadecimal code 1B. The ESC control character signals the printer that one or more succeeding characters are an escape-sequence command.
An example of an escape-sequence command common to all standard emulation modes is the Set Form Length command ESC C n. This command contains the following elements.
q ESC — the ASCII control character that signals the start of an escape sequence q C — an ASCII character that identifies the escape sequence as a form length command q n — a decimal variable that can be set to a range of values to specify the form length in number lines
Note: Decimal values of variables are designated by lowercase italic letters. ASCII characters and number values of variables are designated by uppercase italic letters.
Character Sets and Global Commands 3-18
Some escape sequence commands, valid for all emulation modes, are called global commands. These are special commands that select or control some basic or specially defined printer operation.
Global Command Set
The following table lists the global commands for the Model 8900
Series Printers. These commands are characterized by an intermediate control character DLE following the ESC character.
Command
Model 8900 Series Printers Global Commands
Command Name
ESC DLE B P t r s ETX
ESC DLE B C text ETX
ESC DLE C C text ETX
ESC DLE C P p1 p2 ETX
ESC DLE c n
ESC DLE E text ETX
ESC DLE EM n
ESC DLE F x
ESC DLE G d1 d2 n1 n2 data
ESC DLE f n
ESC DLE H
ESC DLE P n
ESC DLE p 0
ESC DLE p 1
ESC DLE p 2
ESC DLE p 3
ESC DLE p 4
ESC DLE Q n
ESC DLE R n
ESC DLE STX text ETX
ESC DLE z S NN
Set Barcode Parameters
Print Barcode Text
Print Oversize Characters
Set Oversize Characters Scale Factor
Select Color Printing
Select Emulator
Select Automatic Sheet Feeder Bin
Select Form Format
Define Raster Graphics
Select font
Select Font HMI
Select Characters Per Inch (cpi)
Load from Current Paper Path
Park Continuous Paper
Load Cut-Sheet Paper from Front
Load Continuous Paper
Load Cut-Sheet Paper from Top
Select Print Quality
Select International Character Set
Write to Printer Display
Adjust Printhead Z-axis Position
Global Command Descriptions
The following paragraphs describe the Model 8900 Series Printers global commands.
Character Sets and Global Commands 3-19
Barcode Operations
The barcode commands let you select a barcode font, set its parameters, and print any specified character in the equivalent barcode font.
Note: If the barcode option is not installed, using this ESC sequence causes an ESC SEQ error.
Set Barcode Parameters
Escape sequence: ESC DLE B
Hexadecimal: 1B 10 42
P
50 t t r r s s
ETX
03
This command, where t = type, r = readability, and s = size, lets you select a barcode font and set its associated parameters. The following values are valid for the command variables.
q Type:
0 — Barcode 3 of 9 (default)
1 — Interleaved 2 of 5
3 — Codabar q Readability:
0 — Not human readable (default)
1 — Human readable characters on top
2 — Human readable characters on bottom
3 — Human readable characters on top and bottom q Size:
Vertical height in 8/72 inch increments (default 8/72")
Note: PostNet barcode is available as a font; see “Selecting a Font.”
Character Sets and Global Commands 3-20
Print Barcode Text
Escape sequence: ESC DLE B
Hexadecimal: 1B 10 42
C
43 text text
ETX
03
This command lets you print a character or string of characters specified by the variable text. For example, to print the barcode equivalents of the numerals 0, 1, and 2 from the barcode font set selected by the Set Barcode Parameters command, enter the sequence
ESC DLE B C 0 1 2 ETX.
Oversize Characters Feature
Using this feature, you can increase the size of your selected font from 1 times to 127 times the original size. One global command determines the character size; a second global command prints the oversize characters.
Set Oversize Character Scale Factor
Escape sequence: ESC DLE C
Hexadecimal: 1B 10 43
P
50 p1 p2 p1 p2
ETX
03
This command defines the horizontal and vertical scale factors which determine the size of the characters printed by the Print Oversize
Character command.
The p1 variable is the vertical scale factor (1 byte), from 1 to 127; the default is 2. The p2 variable is the horizontal scale factor (1 byte), from 1 to 127; the default is 2. If either variable is set to less than 1 or more than 127, the value defaults to 2.
Character Sets and Global Commands 3-21
Print Oversize Character
Escape sequence: ESC DLE C
Hexadecimal: 1B 10 43
C
43 text text
ETX
03
This command prints the text contained within the command using the horizontal and vertical scale factors selected by the Set Oversize
Characters command. The text variable is the character string to be printed in oversize characters.
You can use a maximum of 200 characters in a text string; excess characters are treated as normal characters, and the command is limited to printing from the logical start position to the logical end position of a single line of text. Text extending beyond the end of the line is truncated at the logical end position.
Because the ETX control character is used as the command sequence delimiter, if your text string requires an ETX character you must use two consecutive ETX characters within the text string to be recognized.
The printer uses the bit patterns dictated by the print quality selected; draft quality bit patterns in draft mode, text quality bit patterns in text and quality modes.
Color Printing
Escape sequence: ESC DLE c
Hexadecimal: 1B 10 63 n n
The Model 8900 Series Printers can print up to seven different colors
(including black). This feature is standard on the Model 8930 and optional on the Model 8920.
This command selects the color specified by the variable n, where n can be any of the following values.
0 — black
1 — cyan
2 — magenta
3 — yellow
4 — green
5 — purple
6 — orange
Character Sets and Global Commands 3-22
Selecting an Automatic Sheet Feeder Bin
Escape sequence: ESC DLE EM
Hexadecimal: 1B 10 19 n n
This command selects the ASF bin designated by the variable n, where n can range from 30 through 33 hex as follows:
0 (30H) = Load from current bin
1 (31H) = Select & load from bin 1
2 (32H) = Select & load from bin 2
3 (33H) = Load from current bin
If the command is received with paper loaded from a friction feed path, the currently loaded form is ejected, and a form is loaded as defined by this command. If the command is received with paper loaded from the tractor feed path, this command is accepted but ignored.
The ASF option on the Miscellaneous Menu of the printer control panel must be set to “YES” for this function to operate.
Selecting a Form Format
Escape sequence: ESC DLE F
Hexadecimal: 1B 10 46 x x
The Model 8900 Series Printers offer a set of ten predefined form formats. Each of these form formats, designated as A through J, has an associated set of values that defines the parameters of the form. Although these form format parameters are preset at the factory to their default values, the user can select any of the form formats and alter its parameters to fit any specific application. The Model 8900 Series
Printers User’s Manual, Part No. 2557785-0002, describes the preset form format parameters and explains how to select and change them.
The Select Form Format command selects the form format designated by the variable x, where the value of x can be any of the ten predefined form formats A through J.
Character Sets and Global Commands 3-23
Defining Raster Graphics
Escape sequence: ESC DLE G
Hexadecimal: 1B 10 47 d1 d2 n1 n2 data d1 d2 n1 n2 data
This command defines the dots-per-inch (DPI) density, the byte count of bit-image data, and bit-image data of those emulations that currently support raster graphics.
The variable d1 d2 is DPI density, where d1 is LSB and d2 is MSB.
The variable nl n2 is the byte count, where n1 is the LSB and n2 is the MSB. And data is bit-image data. All variables can range from 0 through 255.
DPI density defines the horizontal dots per inch at which the bit image data is printed. Valid DPI values are 60, 72, 80, 90, 100, 120,
135, 144, 150, 180, 200, 240, and 300 dots per inch. Any other value causes an escape sequence error. The DPI density format is d1 + (d2
* 256) = DPI.
The byte count variable indicates the number of bit-image data bytes to follow. The byte count format is n1 + (n2 * 256) = byte count.
A bit-image data byte defines a column of 8-pin raster graphics. The bits of each byte have valid values of 1, 2, 4, 8, 16, 32, 64, and 128.
In a vertical column of dots, the dots are arranged so that the MSB
(bit value = 128) is at the top, and the LSB (bit value = 1) is at the bottom.
Character Sets and Global Commands 3-24
Selecting a Font
Escape Sequence: ESC DLE f
Hexadecimal: 1B 10 66 n n
This command allows you to access type styles not specifically supported by an emulation.
This command selects the font designated by the variable n, where n can range from 0 through 254 decimal as follows:
Font ID No.
Courier 0
Prestige Elite
OCR A
OCR B
Gothic
Presentor
PostNet
6
7
4
5
1
3
Note: Using any value other than the valid font ID number for n, causes the printer to accept and ignore the command, and cause a
FONT NOT AVAILABLE ERROR.
Selecting a Font’s HMI
Escape sequence: ESC DLE H
Hexadecimal: 1B 10 48
This command enables you to access natural pitches of a font that may not be specifically supported by an emulation. The command sets horizontal motion index (HMI) to the currently selected font’s HMI.
The command cancels the double-width print mode, but does not cancel the oversize-character (scalable characters) command. This command resets the Epson variable spacing to zero.
Character Sets and Global Commands 3-25
Selecting Characters Per Inch (cpi)
Escape sequence: ESC DLE P
Hexadecimal: 1B 10 50 n n
This command enables you to access natural pitches of a font that may not be specifically supported by an emulation. The command sets pitch according to the variable n, which can range from 30 through 33 hex.
Unless specified otherwise, the emulation’s default HMI is used.
Character pitch commands are effective immediately upon receipt, thus causing a pitch change within a line.
This command cancels double-wide print mode and compressed print mode. The values of n for cpi selection are listed in the following table.
Value of n Hex Value Pitch*
3
4
1
2
30
31
32
33
*for standard fonts and emulations
10
12
15
16.7
Selecting Print Quality
Escape sequence: ESC DLE Q
Hexadecimal: 1B 10 51 n n
This command enables you to access print quality modes not specifically supported by an emulation. The command selects the print quality mode according the the variable n, which can range from 30 through 33 hex.
This command does not affect the forms configuration draft/rapiddraft setting. However, the fast draft mode setting is valid only in 12 and 15 cpi. If 10 cpi is set, draft mode is selected.
Character Sets and Global Commands 3-26
The values of n for print mode selection are listed in the following table.
Mode Hex Value
Draft
Text
Letter
Fast Draft
30
31
32
33
Selecting an International Character Set
Escape sequence: ESC DLE R
Hexadecimal: 1B 10 52 n n
The ASCII character set contains the C0 control codes, the uppercase and lowercase elements of the Latin alphabet, punctuation symbols, and other commonly used symbols. The international versions of the
ASCII character set are identical to the standard US ASCII version with a few exceptions. (See the paragraph entitled “International
ASCII Character Sets” in Chapter 3.)
This command selects the international ASCII character set designated by the variable n, where the value of n can be any of the hexadecimal values shown in the following table.
Character Set Hex
United States English
French
00
01
German 02
United Kingdom English 03
Italian
Spanish
04
05
Japanese
Norwegian
Swiss
Swedish
French Canadian
All Characters
06
07
08
09
0A
0B
Character Set not used
PC No. l, LH
PC No. 1, RH
PC No. 2, LH
PC No. 2, RH
Multinational LH
Multinational RH
Nordic No. 2, LH
Nordic No. 2, RH
ISO 8859/1 LH
ISO 8859/1 RH
Hex
12
13
14
15
16
0C
0D
0E
0F
10
11
Character Sets and Global Commands 3-27
A character set is defined as 128 character positions. If more than
128 character positions are required, the set is divided in two and is designated left half (LH) for positions 1 through 127 and right half
(RH) for positions 128 through 255. The MSB determines if the character set is placed in the left half (0 through 7F) or the right half
(80 through FF) of the 8-bit character set table. An MSB of zero places the character set in the left half, MSB of one, in the right half.
Note: The hex value 1B (left half) is reserved for use as the ASCII escape control character (ESC). Any graphic defined at this location is not printed.
The error message FONT NOT AVAILABLE occurs if the value of n is not specified or is out of range.
Selecting an Emulator
Escape sequence: ESC DLE E
Hexadecimal: 1B 10 45 text text
ETX
03
The Select Emulator command selects the emulation mode specified by the variable text. To use this command, substitute the name of the emulator for text that appears on the control panel display. If the name does not exactly match one of the following resident emulation modes (or an installed optional emulation mode), the printer ignores this command.
q TI880 q TI855 q PROPRINTER q EPSON q HEXDUMP
Note: When the printer is in the hexadecimal dump mode, the Select
Emulator command is not functional.
Character Sets and Global Commands 3-28
Adjusting the Print head Z-Axis Position
Escape sequence: ESC DLE z
Hexadecimal: 1B 10 7A
S
S
NN
NN
The Adjust Printhead Z-Axis Position command adjusts the printhead in or out by the number of steps specified by the variable
NN, which is a two-digit ASCII value ranging from 00 through 99.
See Appendix A for Application Instructions.
Writing to the Printer Display
Escape sequence: ESC DLE STX text
Hexadecimal: 1B 10 02 text
ETX
03
The Write to Printer Display command lets you write a message of up to 16 characters to the second line of the printer display. For example, to write THIS IS TEXT to the display, enter the sequence
ESC DLE STX THIS IS TEXT ETX. The display then shows the message THIS IS TEXT on the second line. A message is terminated by either ETX or upon reaching the sixteenth character.
Paper-Handling Operations
Escape sequence: ESC DLE p
Hexadecimal: 1B 10 70 n n
The paper-handling commands enable you to clear the current paper path or select various paper-loading options, where n is a value ranging from 30 through 33 hex. The value of n selects the following paper-handling options:
0 (30H) = Load from current paper path
1 (31H) = Clear current paper path
2 (32H) = Load from front friction-feed path
3 (33H) = Load from tractor-feed path
4 (34H) = Load from top friction-feed path
Character Sets and Global Commands 3-29
If the paper is not at the top-of-form position when the printer receives the clear current path command, the printer executes a form feed operation before attempting to park tractor-fed paper and displays a prompt to PLEASE TEAR paper.
If the PAPEROUT=BUSY option in the Setup/Test menu is set to
YES, clearing (parking) the paper causes the printer to send a BUSY signal to the host, which may suspend communication.
The clear-current-paper-path command (n = 1) is executed as follows: q With tractor-fed paper loaded, the printer parks the paper.
q With friction-fed paper loaded, the printer ejects any cut sheets.
q With no paper loaded, the printer accepts but ignores the command.
If tractor-fed paper is currently loaded, only the clear/park command
(n = 1) is executed; any other paper path command is ignored.
If friction-fed paper (cut sheet) is currently selected and loaded, the command functions as follows: q Any command option to select another paper path causes ejection of the current paper before execution of the command.
q A friction-feed command for the currently selected paper path is accepted but ignored.
q A clear/park command (n = 1) causes ejection of the cut sheet.
Character Sets and Global Commands 3-30
4
Texas Instruments Model 880
Printer Emulation
Introduction .................................................................................... 4-4
TI 880 Answer Message Function ............................................. 4-5
TI 880 Response Format Selection ............................................ 4-5
Model 880 Printer Emulation Commands ...................................... 4-6
Model 880 Command Descriptions .............................................. 4-10
The Variables N and n .............................................................. 4-10
Printer Operation Commands .................................................. 4-11
Sound Bell .......................................................................... 4-11
Transmit Configuration Report ........................................... 4-11
Transmit Status Report ....................................................... 4-13
Select Unidirectional Printing ............................................ 4-14
Cancel Unidirectional Printing ........................................... 4-14
Form Format Selection Commands ......................................... 4-14
Set Form Length to N Lines ................................................ 4-14
Set Form Length to n Lines ................................................ 4-15
Load Default Form Parameters ........................................... 4-15
Margin Control Commands ..................................................... 4-17
Set Top Margin at Line N ................................................... 4-17
Set Bottom Margin at Line N .............................................. 4-17
Set Top and Bottom Margins at Lines N1 and N2 .............. 4-17
Set Left Margin at Column N ............................................. 4-18
Set Right Margin at Column N ........................................... 4-18
Set Left and Right Margins at Columns N1 and N2 ........... 4-18
Set Line Width to n Columns ............................................. 4-18
Restore Default Line Width ................................................ 4-18
Horizontal Motion Commands ................................................ 4-19
Backspace ........................................................................... 4-19
Tab Horizontally ................................................................. 4-19
TI Model 880 Printer Emulation 4-1
Move to Column n .............................................................. 4-19
Carriage Return ................................................................... 4-19
Tab Right to Column N ....................................................... 4-20
Tab Right N Columns ......................................................... 4-20
Set Horizontal Tab Stops .................................................... 4-20
Clear All Horizontal Tab Stops .......................................... 4-20
Set Horizontal Tab Stop at Current Position ...................... 4-21
Clear Horizontal Tab Stop at Current Position ................... 4-21
Vertical Motion Commands ..................................................... 4-21
Line Feed ............................................................................ 4-21
Form Feed ........................................................................... 4-21
Tab Vertically ...................................................................... 4-22
Move to Line n.................................................................... 4-22
Tab Vertically to Line N ...................................................... 4-22
Tab Vertically N Lines ........................................................ 4-22
Set Vertical Tab Stops ......................................................... 4-23
Set Vertical Tab Stop at Current Position ........................... 4-23
Clear All Vertical Tab Stops ............................................... 4-23
Clear Vertical Tab Stop at Current Position ....................... 4-23
Character Pitch Commands ..................................................... 4-23
Set Character Pitch to 5 cpi ................................................ 4-23
Set Character Pitch to 8.3 cpi ............................................. 4-23
Set Character Pitch to 10 cpi .............................................. 4-24
Set Character Pitch to 12 cpi .............................................. 4-24
Set Character Pitch to 16.7 cpi ........................................... 4-24
Line Spacing Commands ......................................................... 4-24
Set Line Spacing to 3 lpi ..................................................... 4-24
Set Line Spacing to 4 lpi ..................................................... 4-24
Set Line Spacing to 6 lpi ..................................................... 4-24
Set Line Spacing to 8 lpi ..................................................... 4-25
Set Line Spacing to n/72 Inch ............................................. 4-25
Set Line Spacing to N/ 144 Inch ......................................... 4-25
Set Line Spacing to n/2 16 Inch .......................................... 4-25
Select Double Line Spacing ............................................... 4-25
TI Model 880 Printer Emulation 4-2
Cancel Double Line Spacing .............................................. 4-26
Print Enhancement Commands ................................................ 4-26
Select Expanded (Double-Wide) Print ............................... 4-26
Cancel Expanded (Double-Wide) Print .............................. 4-26
Select Letter-Quality Print .................................................. 4-26
Cancel Letter-Quality Print ................................................ 4-26
Raster Graphics Commands .................................................... 4-27
Set Up Graphics Parameters ............................................... 4-27
Select 60 dpi Graphics ........................................................ 4-28
Select 120 dpi Graphics ...................................................... 4-28
Font Selection Commands ....................................................... 4-29
Select Font N ...................................................................... 4-29
Font Invocation ................................................................... 4-29
Designate G0 Font by ROM Identifier N ........................... 4-29
Designate Gl Font by ROM Identifier N ............................ 4-29
Designate G2 Font by ROM Identifier N ........................... 4-30
Designate G3 Font by ROM Identifier N ........................... 4-30
Select Designated Character From G2 Font ....................... 4-30
Select Designated Character From G3 Font ....................... 4-30
Invoke G0 Font as GL ........................................................ 4-30
Invoke Gl Font as GL ......................................................... 4-30
Invoke G2 Font as GL ........................................................ 4-30
Invoke G3 Font as GL ........................................................ 4-30
Invoke Gl Font as GR ......................................................... 4-30
Invoke G2 Font as GR ........................................................ 4-31
Invoke G3 Font as GR ........................................................ 4-31
TI Model 880 Printer Emulation 4-3
Introduction
The Texas Instruments Model 880 Printer emulation mode is the default emulation mode of your printer. If your printer includes color printing and the automatic sheet feeder, this mode lets you use the global commands described in Chapter 3 for operating these options.
This mode also lets you use the global commands to select the international versions of the ASCII character set. While operating in this mode, the printer can perform all the functions of the Model 880
Printer with the following considerations: q The escape sequence for font selection is ESC f N. q The Model 880 emulation supports all Model 8900 global commands.
q Factory selected power-up defaults for the Model 880 emulation are:
— LF/CR on CR — OFF
— CR with LF, VT, or DC2 — OFF
— Graphics — OFF
— SO = expanded print (1 line) — OFF
— The last selected form setting change made either via the control panel or the host (escape sequence) is retained and restored at power-up.
q Horizontal graphics is not supported.
q The escape sequence ESC P n ESC / to invoke a character set is not supported.
TI Model 880 Printer Emulation 4-4
Tl 880 Answer Message Function
The TI 880 emulation provides, as a TI 880 feature, an answerback message (ABM) that can be programmed with a message of up to 20 characters. If a message is programmed, it is transmitted when the
ASCII character ENQ is received. The ABM is stored in the printer’s nonvolatile memory and is programmable with an escape sequence when the ABM load setup parameter (ABM MSG LOAD) of the
TI 880 emulation is turned on.
Escape sequence: ESC [
Hexadecimal: 1B 5B
Q
51 text text
NUL
00 where text can contain up to 20 ASCII characters, and the NUL character is used as the string terminator.
TI 880 Response Format Selection
The TI 880 emulation provides a response format selection feature
(RESP FMT) allowing the user to select whether the response formats for configuration and status inquiries are preceded by an
ASCII ESC character and if the string terminator is to be preceded by a semicolon. The default selection is W/O ESC. q When the RESP FMT selection is W/O ESC the format of the responses to the configuration and status requests are not preceded by the ASCII ESC character.
Response Examples:
Config:
Status:
[880;14;27;36;41c
[880;24;2Cn q When the RESP FMT selection is W/ ESC the format of the responses to the configuration and status requests are preceded by the ASCII ESC character.
Response Examples:
Config:
Status:
ESC[880;14;27;36;41c
ESC[880;24;2Cn
TI Model 880 Printer Emulation 4-5
q When the RESP FMT selection is W/ ESC; the format of the responses to the configuration and status requests are preceded by the ASCII ESC character and the string terminator is preceded by a semicolon.
Response Examples:
Config:
Status:
ESC[880;14;27;36;41;c
ESC[880;24;2C;n
Model 880 Printer Emulation Commands
When operating in the Model 880 emulation mode, your printer can respond to both escape-sequence commands and the standard US
ASCII C0 control character commands. The following table lists all of these commands.
Note: The functions performed by many of the control characters in the Model 880 emulation mode depend upon the printer configuration parameters selected via the operator control panel.
Command
Printer Operation
BEL
ESC [ c
ESC [ n
ESC u
ESC b
Model 880 Emulation Commands
Command Name
Sound Bell
Transmit Configuration Report
Transmit Status Report
Select Unidirectional Printing
Cancel Unidirectional Printing
Form Format Selection
ESC [ N t
ESC C n
ESC 2 n
ESC P L 0 ESC \
ESC @
Set Form Length to N Lines
Set Form Length to n Lines
Set Form Length to n Lines
Load Default Form Parameters
Load Default Form Parameters
TI Model 880 Printer Emulation 4-6
Model 880 Emulation Commands (continued)
Command Name Command
Margin Control
ESC [ N r
ESC [ ; N r
ESC [ N1 ; N2 r
ESC [ N s
ESC [ ; N s
ESC [ N1 ; N2 s
ESC : n
ESC ;
Horizontal Motion
BS
HT
DC 4 n
CR
ESC [ N ‘
ESC [ N a
ESC [ N1...N16 u
ESC 3 n1...n16 NUL
ESC 3 NUL
ESC [ 2 g
ESC H
ESC [ 0 g
Set Top Margin at Line N
Set Bottom Margin at Line N
Set Top and Bottom Margins at Lines N1 and N2
Set Left Margin at Column N
Set Right Margin at Column N
Set Left and Right Margins at Columns N1 and N2
Set Line Width to n Columns
Restore Default Line Width
Backspace
Tab Horizontally
Move to Column n
Carriage Return
Tab Right to Column N
Tab Right N Columns
Set Horizontal Tab Stops
Set Horizontal Tab Stops
Clear All Horizontal Tab Stops
Clear All Horizontal Tab Stops
Set Horizontal Tab Stop at Current Position
Clear Horizontal Tab Stop at Current Position
TI Model 880 Printer Emulation 4-7
Model 880 Emulation Commands (continued)
Command Name Command
Vertical Motion
LF
FF
VT
DC2 n
ESC [ N d
ESC [ N e
ESC [ N1...N16 v
ESC 1 n1...n16 NUL
ESC J
ESC [ 4 g
ESC [ l g
Line Feed
Form Feed
Tab Vertically
Move to Line n
Tab Vertically to Line N
Tab Vertically N Lines
Set Vertical Tab Stops
Set Vertical Tab Stops
Set Vertical Tab Stop at Current Position
Clear All Vertical Tab Stops
Clear Vertical Tab Stop at Current Position
Character Pitch
ESC P I ESC \
ESC P J ESC \
ESC P C ESC \
ESC 6
ESC P K ESC \
ESC P D ESC \
ESC 7
Line Spacing
ESC P B ESC \
ESC P G ESC \
ESC P A ESC \
ESC 4
ESC 2
ESC P H ESC \
ESC 5
ESC 0
ESC A n
ESC [ N # q
ESC 3 n
ESC P S ESC \
ESC P T ESC \
Set Character Pitch to 5 cpi
Set Character Pitch to 8.3 cpi
Set Character Pitch to 10 cpi
Set Character Pitch to 10 cpi
Set Character Pitch to 12 cpi
Set Character Pitch to 16.7 cpi
Set Character Pitch to 16.7 cpi
Set Line Spacing to 3 lpi
Set Line Spacing to 4 lpi
Set Line Spacing to 6 lpi
Set Line Spacing to 6 lpi
Set Line Spacing to 6 lpi
Set Line Spacing to 8 lpi
Set Line Spacing to 8 lpi
Set Line Spacing to 8 lpi
Set Line Spacing to n/72 Inch
Set Line Spacing to N/ 144 Inch
Set Line Spacing to n/216 Inch
Select Double Line Spacing
Cancel Double Line Spacing
TI Model 880 Printer Emulation 4-8
Model 880 Emulation Commands (concluded)
Command Name Command
Print Enhancement
SO
ESC P M ESC \
ESC P N ESC \
ESC P O ESC \
ESC P P ESC \
Raster Graphics
ESC [ H ; B ; V q
ESC K n1 n2
ESC L n1 n2
Font Selection
ESC f N
ESC ( N
ESC ) N
ESC * N
ESC + N
EM y
GS y
SI
SO
ESC n
ESC o
ESC k
ESC l
ESC m
Select Expanded Print (1)
Select Expanded Print
Cancel Expanded Print
Select Letter-Quality Print
Cancel Letter-Quality Print
Set Up Graphics Parameters
Select 60 dpi Raster Graphics
Select 120 dpi Raster Graphics
Select Font N
Designate G0 Font
Designate Gl Font
Designate G2 Font
Designate G3 Font
Select Designated G2 Character
Select Designated G3 Character
Invoke G0 Font as GL
Invoke Gl Font as GL (2)
Invoke G2 Font as GL
Invoke G3 Font as GL
Invoke Gl Font as GR
Invoke G2 Font as GR
Invoke G3 Font as GR
(1) SO = Expand set to ON.
(2) SO = Expand set to OFF.
TI Model 880 Printer Emulation 4-9
Model 880 Command Descriptions
The following paragraphs describe the Model 880 emulation mode commands. Many of the escape-sequence commands contain one or more variables to specify various command parameters. These variables are italicized in the command formats to indicate that they can be set to more than one value.
Note: For clarity, the individual terms of each escape-sequence are separated by spaces throughout this chapter. When you enter these commands, you must omit these spaces.
The Variables N and n
Many of the Model 880 commands contain variables, represented by the uppercase letter N or the lowercase letter n. The uppercase letter
N represents an ordinary decimal value, consisting of one or more numerals. The lowercase letter n represents a single ASCII character whose value is equivalent to the decimal value from the US ASCII character table.
The following examples illustrate the use of the variables N and n.
Example 1. Use the escape sequence ESC [ N t to set the form length to 50 lines.
Escape sequence: ESC [
Hexadecimal: 1B 5B
5
35
0
30 t
74
In this example, the variable N (50) is represented by the two ASCII characters 5 and 0. From the US ASCII character table, the hexadecimal values of these characters are, respectively, 35 and 30. Thus, to set the value of N to 50, the computer sends the hexadecimal values 35 and 30.
Example 2. Use the escape sequence ESC C n to set the form length to 50 lines.
Escape sequence: ESC C
Hexadecimal: 1B 43
2
32
TI Model 880 Printer Emulation 4-10
From the US ASCII character table, the ASCII character whose decimal value is 50 is the ASCII character 2. Thus, in this example, you set the value of n to 2.
Printer Operation Commands
These commands allow the host computer to control some basic printer functions.
Sound Bell
Control character: BEL
Hexadecimal: 07
This command causes the printer to sound a short tone.
Transmit Configuration Report
Escape sequence: ESC [
Hexadecimal: 1B 5B c
63
The host computer sends this command to request a report of the current printer configuration. A configuration report contains hexadecimal codes that inform the host of the current printer configuration.
Example. The following is a typical configuration report.
[880;14;27;36;41c
Each of the two-digit numbers is a hexadecimal configuration code that indicates the following.
Code Configuration
14
27
36
41
The current printer communication mode is direct-connection with pin 11 of the serial interface active for ready.
The current baud rate setting is 4800 bits per second.
The printer is set for 7-bit operation with even parity checking.
The current ASCII language version is U.S.
TI Model 880 Printer Emulation 4-11
The following table provides a complete list of Model 880 configuration codes.
Code
Model 880 Configuration Codes
Description
Communication Mode
13 Full-duplex modem connect
14
15
Direct connection, pin 11 high for ready
Direct connection, pin 11 low for ready
16
17
Optional communication interface
Parallel communication interface
26
27
28
2A
Baud Rate
23
24
25
300 bps
600 bps
1200 bps
2400 bps
4800 bps
9600 bps
19,200 bps
Parity Checking Mode (7-bit Data Format)
31 Odd, received bits not checked
32
35
Even, received bits not checked
Odd, received bits checked
36
37
38
Even, received bits checked
Mark, received bits not checked
Space, received bits not checked
Parity Checking Mode (8-bit Data Format)
39
3A
3B
No parity checking
Odd, received bits checked
Even, received bits checked
International Language Version
41
42
US ASCII
France
43
44
45
46
United Kingdom
Germany /Austria
Sweden/Finland
Denmark/Norway
47
48
49
Spain/Latin America
Switzerland
Canadian French
TI Model 880 Printer Emulation 4-12
Code
Model 880 Configuration Codes
Description
8A
8B
9A
9B
9C
Miscellaneous Configuration Codes
81 Escape sequence execution enabled
83
84
85
X-on/X-off control (DC1 = ready, DC3 = busy)
LF and CR on receipt of LF
LF and CR on receipt of CR
Pin 20 ready/busy protocol enabled
CR on receipt of LF, VT, or DC2
SO selects expanded print
Power-up online selected
256-byte receive buffer selected
Transmit Status Report
Escape sequence: ESC [
Hexadecimal: 1B 5B n
6E
The host computer sends this command to request a report of the current printer status. A status report contains either hexadecimal error codes to indicate a current printer error or no error codes to indicate that the printer is online and ready to receive data.
Example. The following is a typical status report
[880;24;2Cn
Each of the two-digit numbers is a hexadecimal error code that indicates the following.
Code Error
24
2C
Parity error
Character set not installed
TI Model 880 Printer Emulation 4-13
Code
02
03
04
06
07
12
23
24
29
2A
2B
2C
The following table provides a complete list of Model 880 error codes.
Model 880 Error Codes
Description
ROM error
NVRAM error
UART error
Communication controller error
Standard RAM error
Paper-out condition
Receive buffer overflow condition
Parity error
Invalid escape sequence
Escape sequence not executed
Form length error
Character set not installed
Select Unidirectional Printing
Escape sequence: ESC u
Hexadecimal: 1B 75
This command causes the printer to print subsequent characters from left to right only.
Cancel Unidirectional Printing
Escape sequence: ESC b
Hexadecimal: 1B 62
This command cancels the unidirectional print mode and causes the printer to resume bidirectional (normal) printing.
Form Format Selection Commands
The form format commands let you select and set some form-related parameters.
Set Form Length to N Lines
Escape sequence: ESC [
Hexadecimal: 1B 5B
N
N t
74
The variable N can be any value in the range of 0 through 113
(hexadecimal 00 through 31 31 33).
TI Model 880 Printer Emulation 4-14
Set Form Length to n Lines
Escape sequence: ESC C
Hexadecimal: 1B 43 n n
Escape sequence: ESC 2
Hexadecimal: 1B 32 n n
The variable n can be any value in the range of 0 through 113
(hexadecimal 30 through 71).
Note: The command ESC 2 n is not valid when raster graphics is enabled.
Load Default Form Parameters
Escape sequence: ESC P
Hexadecimal: 1B 50
L
4C
Escape sequence: ESC @
Hexadecimal: 1B 40
0
30
ESC \
1B 5C
These commands reset the print quality, character pitch, line spacing, form length, margins, and perforation skip parameters to their default values (see the following figure for a listing of the defaults).
TI Model 880 Printer Emulation 4-15
TI Model 880 Printer Emulation 4-16
Margin Control Commands
After the margins have been set, changing the line spacing does not affect the top and bottom margins. However, changing the character pitch shifts the left margin to the nearest column of the new pitch value. The right margin shifts in proportion to the change in pitch.
Set Top Margin at Line N
Escape sequence: ESC [
Hexadecimal: 1B 5B
N
N r
72
This command sets the top margin to the line specified by N, where
N can be any value in the range of 1 through the currently selected form length value. For example, if the currently selected form length value is 66 lines, N can be any value in the range of 1 through 66
(hexadecimal 31 through 36 36). If N equals 0, the top margin equals the default value (line 1).
Set Bottom Margin at Line N
Escape sequence: ESC [
Hexadecimal: 1B 5B
;
3B
N
N r
72
This command sets the bottom margin to the line specified by N, where N can be any value in the range of 1 through the currently selected form length value. For example, if the currently selected form length value is 66 lines, N can be any value in the range of 1 through 66 (hexadecimal 31 through 36 36). If N equals 0, the bottom margin equals the current form length value.
Set Top and Bottom Margins at Lines N1 and N2
Escape sequence: ESC [
Hexadecimal: 1B 5B
N1
N1
;
3B
N2
N2 r
72
This command sets the top and bottom margins to the lines specified by N1 and N2, respectively, where N1 can be any value in the range of 1 through the current bottom margin value and N2 can be any value in the range of 1 through the current form length value. If N1 equals 0, the top margin equals the default value; if N2 equals 0, the bottom margin equals the default value.
TI Model 880 Printer Emulation 4-17
Set Left Margin at Column N
Escape sequence: ESC [
Hexadecimal: 1B 5B
N
N s
73
The variable N can be any value in the range of 1 through, the column immediately to the left of the current right margin value, as determined by the line width setting. For example, if the current right margin is at column 80, the valid range of N is 1 through 79. If N equals 0, the left margin equals the default value.
Set Right Margin at Column N
Escape sequence: ESC [
Hexadecimal: 1B 5B
;
3B
N
N s
73
The variable N can be any value in the range of the current left margin value through the value of the right-most column, as determined by the current line width setting. If N equals 0, the right margin equals the default value.
Set Left and Right Margins at Columns N1 and N2
Escape sequence: ESC [
Hexadecimal: 1B 5B
N1
N1
;
3B
N2
N2 s
73
This command sets the left and right margins to the columns specified by N1 and N2, respectively. The N1 and N2 limits are, respectively, the same as for the Set Left Margin at Column N and the Set Right
Margin at Column N commands.
Set Line Width to n Columns
Escape sequence: ESC :
Hexadecimal: 1B 3A n n
The variable n can be any value in the range of 0 through 127 for 7-bits or 0 through 227 for 8-bits.
Restore Default Line Width
Escape sequence: ESC ;
Hexadecimal: 1B 3B
This command sets the line width to the value currently selected by the Form Select switch.
TI Model 880 Printer Emulation 4-18
Horizontal Motion Commands
After the horizontal tab stops have been set, changing from standard print to expanded print does not affect the tab stop positions. However, changing the character pitch alters the tab stop positions in proportion to the change in pitch.
Backspace
Control character: BS
Hexadecimal: 08
This command causes the printer to move the printhead one space to the left within the limits of the current left margin.
Tab Horizontally
Control character: HT
Hexadecimal: 09
This command moves the printhead right, to the next tab stop. If no horizontal tab stops are set between the current logical print position and the right margin, the printer prints the next character at the first column of the next line.
Move to Column n
Control character: DC4 n
Hexadecimal: 14 n
The variable n can be any value within the range of 0 through 255 and within the current line width.
Carriage Return
Control character: CR
Hexadecimal: 0D
If the printer is configured to perform both a line feed and a carriage return upon receiving CR, the printer prints the current line, and then performs a line feed and a carriage return. If the printer is not configured to perform both a line feed and a carriage return upon receiving CR, the printer prints the current line and moves the logical print position to the left margin of the current line.
TI Model 880 Printer Emulation 4-19
Tab Right to Column N
Escape sequence: ESC [
Hexadecimal: 1B 5B
N
N
‘
60
The variable N can represent any column between the current print position and the currently set right margin position.
Tab Right N Columns
Escape sequence: ESC [
Hexadecimal: 1B 5B
N
N a
61
For any value of N that exceeds the right margin limit, the printer performs a line feed and carriage return and prints the next character in column one of the next line.
Set Horizontal Tab Stops
Escape sequence: ESC [
Hexadecimal: 1B 5B
Escape sequence: ESC 3
Hexadecimal: 1B 33
N1...N16
N1...N16
n1...n16
n1...n16
u
75
NUL
00
These commands set up to 16 horizontal tab stops at the columns specified by N1...N16 or n1...n16. The command ESC 3 n1...n16 NUL also clears all previously set horizontal tab stops.
The variable N can be any value in the range of column 1 through column 220. The variable n can be any value in the range of column
1 through 127 for a 7-bits and column 1 through 220 for an 8-bits.
Note: The command ESC 3 n1...n16 is not valid when raster graphics is enabled.
Clear All Horizontal Tab Stops
Escape sequence: ESC 3
Hexadecimal: 1B 33
NUL
00
Escape sequence: ESC [
Hexadecimal: 1B 5B
2
32 g
67
TI Model 880 Printer Emulation 4-20
Set Horizontal Tab Stop at Current Position
Escape sequence: ESC H
Hexadecimal: 1B 48
Clear Horizontal Tab Stop at Current Position
Escape sequence: ESC [
Hexadecimal: 1B 5B
0
30 g
67
Vertical Motion Commands
Vertical tab stops define the line numbers at which the paper stops when performing vertical tab operations. After vertical tab stops have been set, any change of the vertical pitch causes a proportional change in the vertical tab stop positions.
Line Feed
Control character: LF
Hexadecimal: 0A
For either of the following conditions, this command causes the printer to print the current line, advance the paper one print line, and perform a carriage return.
q The printer is configured to perform a carriage return upon receiving an LF control character.
q If the printer is not configured to comply with this condition, LF causes the printer to print the current line and advance the paper one print line without performing a carriage return.
Form Feed
Control character: FF
Hexadecimal: 0C
This command causes the printer to print the current line, advance the paper to the first print line of the next form, and position the printhead at the left margin.
TI Model 880 Printer Emulation 4-21
Tab Vertically
Control character: VT
Hexadecimal: 0B
If the printer is configured to perform a carriage return upon receiving a VT control character, this command causes the printer to print the current line, advance the paper to the next vertical tab stop, and perform a carriage return. If the printer is not configured to perform a carriage return upon receiving VT, the printer prints the current line and advances the paper to the next vertical tab stop without performing a carriage return.
Move to Line n
Control character: DC2 n
Hexadecimal: 12 n
If the printer is configured to perform a carriage return upon receiving a DC2 control character, this command causes the printer to position the printhead at the left margin of the print line specified by n. If the printer is not configured to perform a carriage return upon receiving
DC2, the printer advances the printhead vertically to the specified print line without performing a carriage return. The variable n can be any value in the range of 0 through the current form length setting or through line 113, whichever is less.
Tab Vertically to Line N
Escape sequence: ESC [
Hexadecimal: 1B 5B
N
N d
64
The variable N can be any value in the range of 0 through 113
(hexadecimal 30 through 31 31 33) but must be between the current print position and the bottom margin.
Tab Vertically N Lines
Escape sequence: ESC [
Hexadecimal: 1B 5B
N
N e
65
The variable N can be any value in the range of 0 through 113
(hexadecimal 30 through 31 31 33).
TI Model 880 Printer Emulation 4-22
Set Vertical Tab Stops
Escape sequence: ESC [
Hexadecimal: 1B 5B
Escape sequence: ESC 1
Hexadecimal: 1B 31
N1...N16
N1...N16
n1...n16
n1...n16
v
76
NUL
00
These commands set vertical tab stops at the lines specified by the variables N1 through N16 or n1 through n16, where each of the variables N1 through N16 or n1 through n16 can be any value in the range of 0 through 113. The command ESC 1 n1...n16 NUL also clears all previously set tab stops.
Set Vertical Tab Stop at Current Position
Escape sequence: ESC J
Hexadecimal: 1B 4A
Clear All Vertical Tab Stops
Escape sequence: ESC [
Hexadecimal: 1B 5B
4
34 g
67
Clear Vertical Tab Stop at Current Position
Escape sequence: ESC [
Hexadecimal: 1B 5B
1
31 g
67
Character Pitch Commands
Character pitches of 5, 8.3, 10, 12, and 16.7 characters per inch (cpi) are available in the Model 880 emulation mode.
Set Character Pitch to 5 cpi
Escape sequence: ESC P
Hexadecimal: 1B 50
I
49
Set Character Pitch to 8.3 cpi
Escape sequence: ESC P
Hexadecimal: 1B 50
J
4A
ESC \
1B 5C
ESC \
1B 5C
TI Model 880 Printer Emulation 4-23
Set Character Pitch to 10 cpi
Escape sequence: ESC P
Hexadecimal: 1B 50
C
43
Escape sequence: ESC 6
Hexadecimal: 1B 36
Set Character Pitch to 12 cpi
Escape sequence: ESC P
Hexadecimal: 1B 50
K
4B
Set Character Pitch to 16.7 cpi
Escape sequence: ESC P
Hexadecimal: 1B 50
Escape sequence: ESC 7
Hexadecimal: 1B 37
D
44
ESC \
1B 5C
ESC \
1B 5C
ESC \
1B 5C
Line Spacing Commands
The Model 880 emulation mode provides line spacing values of 3, 4,
6, and 8 lpi.
Set Line Spacing to 3 lpi
Escape sequence: ESC P
Hexadecimal: 1B 50
Set Line Spacing to 4 lpi
Escape sequence: ESC P
Hexadecimal: 1B 50
Set Line Spacing to 6 lpi
Escape sequence: ESC P
Hexadecimal: 1B 50
Escape sequence: ESC 4
Hexadecimal: 1B 34
Escape sequence: ESC 2
Hexadecimal: 1B 32
B
42
G
47
A
41
ESC \
1B 5C
ESC \
1B 5C
ESC \
1B 5C
TI Model 880 Printer Emulation 4-24
Note: The command ESC 2 is valid only when raster graphics is enabled.
Set Line Spacing to 8 lpi
Escape sequence: ESC P
Hexadecimal: 1B 50
Escape sequence: ESC 5
Hexadecimal: 1B 35
Escape sequence: ESC 0
Hexadecimal: 1B 30
H
48
ESC \
1B 5C
Set Line Spacing to n/72 Inch
Escape sequence: ESC A
Hexadecimal: 1B 41 n n
This sequence is valid only if raster graphics is enabled. The valid range of n is 0 through 85.
Set Line Spacing to N/144 Inch
Escape sequence: ESC [
Hexadecimal: 1B 5B
N
N
#
23 q
71
The valid range of N is 0 through 255 (hexadecimal 30 through 32 35
35).
Set Line Spacing to n/216 Inch
Escape sequence: ESC 3
Hexadecimal: 1B 33 n n
This sequence is valid only if raster graphics is enabled. The valid range of n is 0 through 127 for 7-bits and 0 through 255 for 8-bits.
Select Double Line Spacing
Escape sequence: ESC P
Hexadecimal: 1B 50
S
53
ESC \
1B 5C
TI Model 880 Printer Emulation 4-25
Cancel Double Line Spacing
Escape sequence: ESC P
Hexadecimal: 1B 50
T
54
ESC \
1B 5C
Print Enhancement Commands
The print enhancement commands enable your printer to improve or enhance print quality. Print enhancements include expanded and letter quality print.
Select Expanded (Double-Wide) Print
Escape sequence: ESC P
Hexadecimal: 1B 50
M
4D
ESC \
1B 5C
Control character: SO
Hexadecimal: 0E
The SO control character functions in this manner only if SO =
EXPAND is entered from the control panel (set to ON).
Cancel Expanded (Double-Wide) Print
Escape sequence: ESC P
Hexadecimal: 1B 50
N
4E
ESC \
1B 5C
Select Letter-Quality Print
Escape sequence: ESC P
Hexadecimal: 1B 50
O
4F
ESC \
1B 5C
Cancel Letter-Quality Print
Escape sequence: ESC P
Hexadecimal: 1B 50
P
50
ESC \
1B 5C
TI Model 880 Printer Emulation 4-26
Raster Graphics Commands
In the Model 880 raster graphics mode, the printer alternates between the left and right printhead pins and uses only the top eight pins of each column. The graphics feature enables you to create drawings by sending dot patterns (in the form of hexadecimal codes) to the printer.
When the printer receives a hexadecimal code from the host computer, it maps the individual code bits to the individual printhead pins.
Set Up Graphics Parameters
Escape sequence: ESC [
Hexadecimal: 1B 5B
H
H
; B
3B B
; V
5B V q
71
This command sets the horizontal dot density (H) and the vertical line spacing (V) and specifies the number of hexadecimal code bytes
(B) to print. The variables H, V, and B are as follows.
q Horizontal dot density (H) — 60, 72, 120, or 144 dpi. The default value is 60 dpi. If the horizontal dot density is omitted, the printer defaults to the last value selected since the last power-up operation.
q Number of hexadecimal code bytes (B) to print — can be set to any value in the range of 0 to 1958 (for a line width of 13.6
inches and a horizontal dot density of 144 dpi). If this parameter is omitted or set to 0, the printer prints no raster graphics.
q Vertical line spacing (V) — N/144 inch, where the range of N is
0 through 255. A value of 0 indicates that no line feed operation is to occur.
TI Model 880 Printer Emulation 4-27
Select 60 dpi Graphics
Escape sequence: ESC K
Hexadecimal: 1B 4B n1 n1 n2 n2
The variables n1 and n2 specify the number of bytes to print.
Use the following steps to find the values of n1 and n2 for a horizontal line of graphics of a given length in inches.
1. Multiply by 60 the length of the line (in inches) to be printed.
This operation yields the number of bytes (n) required at 60 dots per inch.
2. Divide the number of bytes by 256 (n/256); the quotient and the remainder of n/256 are, respectively, the decimal values of n2 and n1.
3. Convert the decimal values of n2 and n1 obtained in step 1 to their hexadecimal equivalents.
Note: This procedure can be applied to any of the graphics selection commands in this chapter as well as those in Chapters 5 through 8.
Select 120 dpi Graphics
Escape sequence: ESC L
Hexadecimal: 1B 4C n1 n1 n2 n2
The variables n1 and n2 specify the number of bytes to print. Modify the procedure described for the Select 60 dpi Graphics command to determine the values of n1 and n2. In step 1 of this procedure, multiply the line length by 120 instead of 60 to determine the number of bytes required.
Note: ESC K nl n2 and ESC L nl n2 are valid only when raster graphics is enabled.
TI Model 880 Printer Emulation 4-28
Font Selection Commands
Select Font N
Escape sequence: ESC f
Hexadecimal: 1B 66
N
N
The printer can have a maximum of 10 fonts, including the two standard fonts (Gothic and Courier) and up to eight optional fonts.
The variable N can be any value in the range of 0 through 9, where 0 designates Gothic, 1 designates Courier, 2 designates the first font in option ROM 1, 3 designates the second font in option ROM 1, and so on. The range of N for either option ROM depends upon the number of fonts contained in each ROM.
Examples. If option ROM 1 has two fonts and option ROM 2 has three fonts, then the range of N is 2 through 3 for option ROM 1 and
4 through 7 for option ROM 2. If option ROM 1 has four fonts and option ROM 2 has three fonts, then the range of N is 2 through 5 for option ROM 1 and 6 through 8 for option ROM 2.
Font Invocation
The Model 880 Printer emulation enables you to define the contents of the “in-use” font table. The in-use table defines the font currently being printed. The contents of the in-use table can be replaced entirely by an alternate font, or individual characters in the in-use table can be replaced by individual characters invoked from an alternate font. There are four possible alternate sets, called G0, G1,
G2, and G3.
Designate G0 Font by ROM Identifier N
Escape sequence: ESC (
Hexadecimal: 1B 28
N
N
Designate G1 Font by ROM Identifier N
Escape sequence: ESC )
Hexadecimal: 1B 29
N
N
TI Model 880 Printer Emulation 4-29
Designate G2 Font by ROM Identifier N
Escape sequence: ESC *
Hexadecimal: 1B 2A
N
N
Designate G3 Font by ROM Identifier N
Escape sequence: ESC +
Hexadecimal: 1B 2B
N
N
Valid values for N are G for Gothic and C for Courier.
Select Designated Character From G2 Font
Control Character: EM
Hexadecimal: 19
N
N
Select Designated Character From G3 Font
Control Character: GS
Hexadecimal: 1D
N
N
Valid values for N are any font character.
Invoke G0 Font as GL
Control Character: SI
Hexadecimal: 1F
Invoke G1 Font as GL
Control Character: SO
Hexadecimal: 1E
Note: You must set SO to Expand OFF using the control panel before using this command.
Invoke G2 Font as GL
Escape sequence: ESC n
Hexadecimal: 1B 6E
Invoke G3 Font as GL
Escape sequence: ESC o
Hexadecimal: 1B 6F
TI Model 880 Printer Emulation 4-30
Invoke G1 Font as GR
Escape sequence: ESC k
Hexadecimal: 1B 6B
Invoke G2 Font as GR
Escape sequence: ESC 1
Hexadecimal: 1B 6C
Invoke G3 Font as GR
Escape sequence: ESC m
Hexadecimal: 1B 6D
TI Model 880 Printer Emulation 4-31
5
Texas Instruments
Model 855 Printer WP Emulation
Introduction .................................................................................... 5-4
Motion Indexes ............................................................................... 5-5
Model 855 WP Commands............................................................. 5-6
Model 855 WP Command Descriptions ......................................... 5-9
Printer Operation Commands .................................................... 5-9
Select DP Mode .................................................................... 5-9
Select WP Mode ................................................................... 5-9
Suspend Printing ................................................................... 5-9
Select Unidirectional Printing ............................................ 5-10
Cancel Unidirectional Printing ........................................... 5-10
Select Reverse Printing ....................................................... 5-10
Cancel Reverse Printing ..................................................... 5-10
Set Most Significant Bit ..................................................... 5-10
Reset Most Significant Bit .................................................. 5-10
Form Format and Font Selection Commands .......................... 5-11
Set Form Length to nl n2 Lines .......................................... 5-11
Select Font n ....................................................................... 5-12
Margin Control Commands ..................................................... 5-12
Select Right Margin Justification ....................................... 5-12
Cancel Right Margin Justification ...................................... 5-13
Set Top Margin at Current Position .................................... 5-13
Set Bottom Margin at Current Position .............................. 5-13
Set Left Margin at Current Position ................................... 5-13
Set Right Margin at Current Position ................................. 5-13
Horizontal Motion Commands ................................................ 5-14
Backspace ........................................................................... 5-14
Tab Horizontally ................................................................. 5-14
Carriage Return ................................................................... 5-14
Move Back 1/120 Inch ........................................................ 5-15
TI Model 855 Printer WP Emulation 5-1
Tab Horizontally Absolute .................................................. 5-15
Set Horizontal Tab Stop at Current Position ...................... 5-15
Clear All Horizontal Tab Stops .......................................... 5-15
Clear Horizontal Tab Stop at Current Position ................... 5-15
Vertical Motion Commands ..................................................... 5-16
Line Feed ............................................................................ 5-16
Form Feed ........................................................................... 5-16
Tab Vertically ...................................................................... 5-16
Tab Vertically Absolute ...................................................... 5-16
Move Up One Line ............................................................. 5-17
Move Up One-Half Line ..................................................... 5-17
Move Down One-Half Line ................................................ 5-17
Character Pitch Commands ..................................................... 5-17
Set Horizontal Motion Index to (n-l)/120 Inch ................... 5-17
Set Character Pitch to 10 cpi .............................................. 5-17
Set Character Pitch to 12 cpi .............................................. 5-18
Line Spacing Commands ......................................................... 5-18
Set Vertical Motion Index to (n-l)/48 Inch ......................... 5-18
Set Vertical Motion Index to (n-l)/144 Inch ....................... 5-18
Character Set Commands ........................................................ 5-18
Print Special Character ....................................................... 5-18
Print Enhancement Commands ................................................ 5-19
Select Expanded Print ......................................................... 5-19
Cancel Expanded Print ....................................................... 5-19
Select Compressed Print ..................................................... 5-19
Cancel Compressed Print .................................................... 5-19
Select Letter-Quality Print .................................................. 5-19
Cancel Letter-Quality Print ................................................ 5-20
Select Text-Underline Print ................................................ 5-20
Cancel Text-Underline Print ............................................... 5-20
Select Boldface Print .......................................................... 5-20
Cancel Boldface Print ......................................................... 5-20
Select Shadow Print ............................................................ 5-20
Cancel Shadow Print .......................................................... 5-20
Raster Graphics Commands .................................................... 5-21
TI Model 855 Printer WP Emulation 5-2
Select 60 dpi Graphics ........................................................ 5-21
Select 72 dpi Graphics ........................................................ 5-21
Select 120 dpi Graphics ...................................................... 5-21
Select 144 dpi Graphics ...................................................... 5-21
TI Model 855 Printer WP Emulation 5-3
Introduction
This chapter describes the Texas Instruments Model 855 word processing (WP) emulation mode. The Model 855 WP emulation mode allows the Model 8900 Series Printer to accept and respond to commands similar to those for a daisy-wheel printer. This mode allows the printer to emulate most functions of the Model 855 Printer operating in its WP mode with the following considerations.
q The Model 855 WP emulation supports all Model 8900 global commands.
q You can select ribbon color with the command sequence ESC c n or ESC r n. q Factory selected power-up defaults for the Model 855 WP emulation are:
— Processing mode — DP (The WP mode must be selected after power-up.)
— Auto LF — NO
— The last form setting change made via the control panel is retained and restored at power-up.
q The Model 855 WP emulation uses standard pitch and point for superscript and subscript characters.
q The standard character set is the IBM PC2 Character Set.
q The escape sequence to select mosaic graphics by setting the
MSDB to 1 is ESC v.
q The escape sequence to cancel mosaic graphics by setting the
MSDB to 1 is ESC =.
TI Model 855 Printer WP Emulation 5-4
q The escape sequence for font selection is ESC f N. q Selecting or canceling proportional spacing is not supported.
q Disabling the paper-out detection is not supported.
Motion Indexes
The Model 855 WP emulation mode uses motion indexes to specify certain horizontal and vertical parameters. These motion indexes are established by character pitch and line spacing commands described later in this chapter.
The horizontal motion index and vertical motion index are abbreviated, respectively, as HMI and VMI. Their definitions are as follows.
q HMI — The horizontal distance between two adjacent characters.
The HMI range is 0 through 254/120 (0 through 2.12) inches in increments of 1/120 inch.
q VMI — The vertical distance between two adjacent print lines.
The VMI range can be either of the following, depending upon the escape sequence used to establish the VMI.
— 0 through 84/48 (0 through 1.75) inches in increments of
1/48 inch
— 0 through 254/144 (0 through 1.62) inches in increments of
1/144 inch
TI Model 855 Printer WP Emulation 5-5
Model 855 WP Commands
The following table lists the Model 855 WP commands. The paragraphs that follow the table describe these commands.
Command
Printer Operation
ESC @
ESC CR P
ESC SUB I
ESC w
ESC >
ESC <
ESC 6
ESC 5
ESC v
ESC =
Model 855 WP Commands
Command Name
Select DP Mode
Select WP Mode
Select WP Mode
Suspend Printing
Select Unidirectional Printing
Cancel Unidirectional Printing
Select Reverse Printing
Cancel Reverse Printing
Set Most Significant Bit
Reset Most Significant Bit
Form Format and Font Selection
ESC F n1 n2
ESC f n
Set Form Length to n1 n2 Lines
Select Font n
Margin Control
ESC ]
ESC [
ESC +
ESC -
ESC 9
ESC 0
Select Right Margin Justification
Cancel Right Margin Justification
Set Top Margin at Current Position
Set Bottom Margin at Current Position
Set Left Margin at Current Position
Set Right Margin at Current Position
TI Model 855 Printer WP Emulation 5-6
Command Name
Model 855 WP Commands (continued)
Command Name
Horizontal Motion
BS
HT
CR
ESC BS
ESC HT n
ESC 1
ESC 2
ESC 8
Backspace
Tab Horizontally
Carriage Return
Move Back 1/120 Inch
Tab Horizontally Absolute
Set Horizontal Tab Stop at Current Position
Clear All Horizontal Tab Stops
Clear Horizontal Tab Stops at Current Position
Vertical Motion
LF
FF
VT
ESC VT n
ESC LF
ESC D
ESC U
Line Feed
Form Feed
Tab Vertically
Tab Vertically Absolute
Move Up One Line
Move Up One-Half Line
Move Down One-Half Line
Character Pitch
ESC US n
ESC y
ESC z
Line Spacing
ESC RS n
ESC FS n
Set Horizontal Motion Index to (n-1)/120 Inch
Set Character Pitch to 10 cpi
Set Character Pitch to 12 cpi
Set Vertical Motion Index to (n-l)/48 Inch
Set Vertical Motion Index to (n-1)/144 Inch
TI Model 855 Printer WP Emulation 5-7
Command Name
Model 855 WP Commands (concluded)
Command Name
Horizontal Motion
ESC SP
ESC /
Print Special Character
Print Special Character
Print Enhancement
SO
DC4
SI
DC2
ESC q
ESC e
ESC d
ESC I
ESC J
ESC K n
ESC M
ESC Q
ESC R
Raster Graphics
ESC k n1 n2
ESC n n1 r2
ESC j n1 n2
ESC o n1 n2
Select Expanded Print
Cancel Expanded Print
Select Compressed Print
Cancel Compressed Print
Select Letter-Quality Print
Select Letter-Quality Print
Cancel Letter-Quality Print
Select Text-Underline Print
Cancel Text-Underline Print
Select Boldface Print
Cancel Boldface Print
Select Shadow Print
Cancel Shadow Print
Select 60 dpi Graphics
Select 72 dpi Graphics
Select 120 dpi Graphics
Select 144 dpi Graphics
TI Model 855 Printer WP Emulation 5-8
Model 855 WP Command Descriptions
The following paragraphs describe the Model 855 WP emulation commands. The command formats are listed following each command description. Many of the escape-sequence commands contain one or more variables to specify various command parameters. These variables are italicized in the command formats to indicate that they can be set to more than one value.
Printer Operation Commands
These commands allow the host computer to control some basic printer functions.
Select DP Mode
Escape sequence: ESC @
Hexadecimal: 1B 40
This command disables the 855 WP emulation mode and enables the
855 data processing (DP) emulation mode.
Select WP Mode
Escape sequence: ESC CR
Hexadecimal: 1B 0D
P
50
Escape sequence: ESC SUB I
Hexadecimal: 1B 1A 49
These commands enable the 855 WP emulation mode.
Suspend Printing
Escape sequence: ESC w
Hexadecimal: 1B 77
This command causes the printer to print the current print line from the print buffer, to suspend printing, and to go to its offline condition.
TI Model 855 Printer WP Emulation 5-9
Select Unidirectional Printing
Escape sequence: ESC >
Hexadecimal: 1B 3E
This command causes the printer to print all subsequent characters in the forward (left-to-right) direction only.
Cancel Unidirectional Printing
Escape sequence: ESC <
Hexadecimal: 1B 3C
This command causes the printer to resume normal bidirectional printing.
Select Reverse Printing
Escape sequence: ESC 6
Hexadecimal: 1B 36
This command causes characters received from the host to be printed in reverse order. For example, if the host sends the characters abcde, the printer prints them as edcba.
Cancel Reverse Printing
Escape sequence: ESC 5
Hexadecimal: 1B 35
Set Most Significant Bit
Escape sequence: ESC v
Hexadecimal: 1B 76
This command sets the most significant bit of all received characters to one.
Reset Most Significant Bit
Escape sequence: ESC =
Hexadecimal: 1B 3D
This command cancels the mode set by ESC v.
TI Model 855 Printer WP Emulation 5-10
Form Format and Font Selection Commands
The form format commands let you select and set some form-related parameters. The font selection command lets you choose between the two standard fonts and any installed optional fonts.
The standard fonts for the Model 8900 Series Printer are Courier and
Gothic. Residing in printer ROM, these fonts can be selected via the control panel or by the host computer. Optional fonts include Prestige
Elite and Presentor. These optional fonts are available as ROMs that plug into sockets on the printer logic board. When installed, these fonts can also be selected via the control panel or by the host computer.
Set Form Length to n1 n2 Lines
Escape sequence: ESC F
Hexadecimal: 1B 46 n1 n1 n2 n2
The terms n1 and n2 represent a two-digit form-length value expressed as the number of lines that can be printed at 6 lpi.
If the current bottom margin value is less than the new form length value set by this command, the bottom margin position does not change. If the current bottom margin value is greater than the new form length value, the bottom margin position moves to the new form length value.
When using the set form length command, any form-length value of
1 through 99 lines is expressed as two decimal values (n1 and n2).
For example, for a form length value of 8 lines, n1 = 0 and n2 = 8; for a form-length value of 29 lines, n1 = 2 and n2 = 9. For any formlength value greater than 99 lines, the value of n1 is expressed as a hexadecimal number and the value of n2 is limited to the decimal values 1 through 9.
TI Model 855 Printer WP Emulation 5-11
Select Font n
Escape sequence: ESC f
Hexadecimal: 1B 66 n n
The printer can have a maximum of 10 fonts, including the two standard fonts (Gothic and Courier) and up to eight optional fonts.
The variable n can be any value in the range of 0 through 9, where 0 designates Gothic, 1 designates Courier, 2 designates the first font in option ROM 1, 3 designates the second font in option ROM 1, and so on. The range of n for either option ROM depends upon the number of fonts contained in each ROM.
Examples. If option ROM 1 has two fonts and option ROM 2 has three fonts, then the range of n is 2 through 3 for option ROM 1 and
4 through 7 for option ROM 2. If option ROM 1 has four fonts and option ROM 2 has three fonts, then the range of n is 2 through 5 for option ROM 1 and 6 through 8 for option ROM 2.
Margin Control Commands
After the left and right margins are set, subsequent character pitch changes do not affect them. The bottom margin must always be set below the top margin, and both margins must be within the form boundaries. Once the top and bottom margins are set, subsequent line spacing changes do not affect them.
For any line feed operation that advances the print position beyond the bottom page margin, the printer automatically positions the printhead at the top margin of the following page.
Select Right Margin Justification
Escape sequence: ESC ]
Hexadecimal: 1B 5D
This command causes the printer to insert enough space between characters to cause each line to occupy the entire space between the left and right margins.
TI Model 855 Printer WP Emulation 5-12
Cancel Right Margin Justification
Escape sequence: ESC [
Hexadecimal: 1B 5B
Set Top Margin at Current Position
Escape sequence: ESC +
Hexadecimal: 1B 2B
Changing the form length setting overrides this command and resets the top margin to the top-of-form position.
Set Bottom Margin at Current Position
Escape sequence: ESC -
Hexadecimal: 1B 2D
If the form length does not exceed the bottom margin, the bottom of the form is the same as the bottom margin setting. If the form length exceeds the bottom margin, the bottom margin is unchanged.
Set Left Margin at Current Position
Escape sequence: ESC 9
Hexadecimal: 1B 39
For any left margin setting greater than 1, the BS control character or the absolute tabulation escape sequence (ESC HT n) permits printing to the left of the margin.
Set Right Margin at Current Position
Escape sequence: ESC 0
Hexadecimal: 1B 30
TI Model 855 Printer WP Emulation 5-13
Horizontal Motion Commands
The following paragraphs describe the commands for horizontal motion and horizontal tab functions in the Model 855 WP emulation mode.
Backspace
Control character: BS
Hexadecimal: 08
This command causes the printer to move the printhead one HMI position to the left. The next character printed following a BS command overstrikes the most recently printed character. In the backward print mode, each BS control character moves the printhead to the right one HMI position.
Tab Horizontally
Control character: HT
Hexadecimal: 09
This command moves the printhead to the next horizontal tab stop. If the printer receives an HT command following the last horizontal tab stop on a line, the printer performs a carriage return and a line feed and starts the next print operation at the left margin.
Carriage Return
Control character: CR
Hexadecimal: 0D
This command causes the printer to perform the following functions.
q The printer prints the current line of data from the print buffer and begins the next line at the left margin.
q If right margin justification is active, the CR command causes each line of print to occupy the entire space between the left and right margins.
TI Model 855 Printer WP Emulation 5-14
q If the expanded print mode is active, the CR command resets the printer to the normal print mode.
q If the automatic line feed function is active, the CR command causes the paper to advance one print line.
Move Back 1/120 inch
Escape sequence: ESC BS
Hexadecimal: 1B 08
This command moves the print position 1/120 inch to the left.
Tab Horizontally Absolute
Escape sequence: ESC HT
Hexadecimal: 1B 09 n n
This command moves the printhead horizontally (left or right) to the column specified by the variable n where n can be any value in the range of 1 through 127. When n equals zero or the number of a column beyond the right margin, the printer ignores the command. If the value of n is greater than the right-most column, the printer positions the printhead to the right-most column.
Set Horizontal Tab Stop at Current Position
Escape sequence: ESC 1
Hexadecimal: 1B 31
Clear All Horizontal Tab Stops
Escape sequence: ESC 2
Hexadecimal: 1B 32
Clear Horizontal Tab Stop at Current Position
Escape sequence: ESC 8
Hexadecimal: 1B 38
TI Model 855 Printer WP Emulation 5-15
Vertical Motion Commands
Vertical tab stops define the line numbers at which the paper stops when performing vertical tab operations. After vertical tab stops have been set, any change of the vertical pitch causes a proportional change in the vertical tab stop positions.
Line Feed
Control character: LF
Hexadecimal: 0A
This command moves the paper forward one line position without performing a carriage return. The VMI determines the distance from one line to the next.
Form Feed
Control character: FF
Hexadecimal: 0C
This command advances the paper to the top margin of the next page and causes the printer to perform a carriage return to the left margin.
Tab Vertically
Control character: VT
Hexadecimal: 0B
This command advances the paper to the next print line without performing a carriage return.
Tab Vertically Absolute
Escape sequence: ESC VT
Hexadecimal: 1B 0B n n
This command moves the paper vertically (up or down) to the line specified by the variable n. The line space is the distance defined by the VMI or the distance set by the operator via the Form Config switch. The valid range of n is 1 through 126.
TI Model 855 Printer WP Emulation 5-16
Move Up One Line
Escape sequence: ESC LF
Hexadecimal: 1B 0A
The line space is the distance defined by the VMI or the distance set via the Form Config switch on the control panel.
Move Up One-Half Line
Escape sequence: ESC D
Hexadecimal: 1B 40
When one-half line space is a fractional number of 1/144 inch steps, the printer truncates the number of steps to a whole number.
Move Down One-Half Line
Escape sequence: ESC U
Hexadecimal: 1B 55
When one-half line space is a fractional number of 1/144 inch steps, the printer truncates the number of steps to a whole number.
Character Pitch Commands
The following paragraphs describe the commands for character pitch operations in the Model 855 WP emulation mode.
Set Horizontal Motion Index to ( n-1)/120 Inch
Escape sequence: ESC US
Hexadecimal: 1B 1F n n
This command sets the HMI to (n-1)/120 inch, where the variable n is valid for any value in the range of 1 through 255.
Set Character Pitch to 10 cpi
Escape sequence: ESC y
Hexadecimal: 1B 79
TI Model 855 Printer WP Emulation 5-17
Set Character Pitch to 12 cpi
Escape sequence: ESC z
Hexadecimal: 1B 7A
This command sets the character pitch to 12 cpi.
Line Spacing Commands
The following paragraphs describe the commands for line spacing operations in the Model 855 WP emulation mode.
Set Vertical Motion Index to ( n-1)/48 Inch
Escape sequence: ESC RS
Hexadecimal: 1B 1E n n
The variable n can be any value in the range of 1 through 85, resulting in a VMI range of 0 through 84/48 (0 through 1.75) inches.
Set Vertical Motion Index to ( n-1)/144 Inch
Escape sequence: ESC FS
Hexadecimal: 1B 1C n n
The variable n can be any value in the range of 1 through 255, resulting in a VMI range of 0 through 254/144 (0 through 1.76) inches.
Character Set Commands
The character set commands for the 855 WP mode are limited to the following commands that cause the printer to print special characters similar to those printed by daisy-wheel printers.
Print Special Character
Escape sequence: ESC SP
Hexadecimal: 1B 20
Escape sequence: ESC /
Hexadecimal: 1B 2F
TI Model 855 Printer WP Emulation 5-18
Print Enhancement Commands
The print enhancement commands enable your printer to improve or enhance the print quality. Print enhancements include such things as expanded, compressed, LQ, and underlined text as well as boldface and shadow printing.
Select Expanded Print
Control character: SO
Hexadecimal: 0E
This command causes the printer to double the horizontal dot spacing and then make a second pass to fill in the dots for one line only. This mode is terminated by a carriage return.
Cancel Expanded Print
Control character: DC4
Hexadecimal: 14
Select Compressed Print
Control character: SI
Hexadecimal: 0F
This command reduces the width of all subsequently printed characters to about 60 percent of their normal widths.
Cancel Compressed Print
Control character: DC2
Hexadecimal: 12
Select Letter-Quality Print
Escape sequence: ESC q
Hexadecimal: 1B 71
Escape sequence: ESC e
Hexadecimal: 1B 65
TI Model 855 Printer WP Emulation 5-19
Cancel Letter-Quality Print
Escape sequence: ESC d
Hexadecimal: 1B 64
This command cancels LQ print and returns the printer to the draft print mode.
Select Text-Underline Print
Escape sequence: ESC I
Hexadecimal: 1B 49
Cancel Text-Underline Print
Escape sequence: ESC J
Hexadecimal: 1B 4A
Select Boldface Print
Escape sequence: ESC K
Hexadecimal: 1B 4B n n
The variable n is valid for any of the following values.
q 0 and 1 — turn boldface printing off q 2 through 4 — turn boldface printing on
Cancel Boldface Print
Escape sequence: ESC M
Hexadecimal: 1B 4D
Select Shadow Print
Escape sequence: ESC Q
Hexadecimal: 1B 51
In the shadow print mode, the printer prints each line twice with second-pass dots offset by 1/120 inch.
Cancel Shadow Print
Escape sequence: ESC R
Hexadecimal: 1B 52
TI Model 855 Printer WP Emulation 5-20
Raster Graphics Commands
The following paragraphs describe the commands that control the raster graphics feature In the TI 855 WP emulation mode. To find the values of n1 and n2 for any of the following commands, modify the procedure described for the Select 60 dpi Graphics command in
Chapter 4. In step 1 of the procedure, substitute the appropriate dot density value for 60.
Select 60 dpi Graphics
Escape sequence: ESC k
Hexadecimal: 1B 6B
Select 72 dpi Graphics
Escape sequence: ESC n
Hexadecimal: 1B 6E
Select 120 dpi Graphics
Escape sequence: ESC j
Hexadecimal: 1B 6A
Select 144 dpi Graphics
Escape sequence: ESC o
Hexadecimal: 1B 6F n1 n2
n1 n2 n1 n1 n1 n1 n1 n1 n2 n2 n2 n2 n2 n2
TI Model 855 Printer WP Emulation 5-21
6
Texas Instruments Model 855 Printer
DP Emulation
Printer Operation Commands ......................................................... 6-7
Select DP Mode ......................................................................... 6-7
Select WP Mode ........................................................................ 6-7
Suspend Printing ........................................................................ 6-7
Select Unidirectional Printing ................................................... 6-8
Cancel Unidirectional Printing .................................................. 6-8
Set Most Significant Bit ............................................................ 6-8
Reset Most Significant Bit ......................................................... 6-8
Form Format and Font Selection Commands ................................. 6-8
Set Form Length to n Lines ....................................................... 6-9
Select Font n .............................................................................. 6-9
Horizontal Motion Commands ....................................................... 6-9
Backspace .................................................................................. 6-9
Tab Horizontally ...................................................................... 6-10
Carriage Return........................................................................ 6-10
Move Print Position to Left Margin ........................................ 6-11
Set Horizontal Tab Stops ......................................................... 6-11
Clear All Horizontal Tab Stops ............................................... 6-11
Vertical Motion Commands .......................................................... 6-11
Line Feed ................................................................................. 6-11
Form Feed ................................................................................ 6-11
Tab Vertically ........................................................................... 6-12
Move Up One-Half Line .......................................................... 6-12
Move Down One-Half Line ..................................................... 6-12
Set Vertical Tab Stops .............................................................. 6-13
Clear All Vertical Tab Stops .................................................... 6-13
TI Model 855 Printer DP Emulation 6-1
Character Pitch Commands .......................................................... 6-13
Set Character Pitch to 10 cpi ................................................... 6-13
Set Character Pitch to 12 cpi ................................................... 6-13
Line Spacing Commands .............................................................. 6-13
Set Line Spacing to 6 lpi ......................................................... 6-13
Set Line Spacing to 8 lpi ......................................................... 6-14
Set Line Spacing to 7/72 Inch .................................................. 6-14
Set Line Spacing to n/72 Inch .................................................. 6-14
Set Line Spacing to n/216Inch ................................................. 6-14
Print Enhancement Commands .................................................... 6-14
Select Expanded Print .............................................................. 6-14
Cancel Expanded Print ............................................................ 6-14
Select Compressed Print .......................................................... 6-15
Cancel Compressed Print ......................................................... 6-15
Select Letter-Quality Print ....................................................... 6-15
Cancel Letter-Quality Print ..................................................... 6-15
Select Boldface Print ............................................................... 6-15
Cancel Boldface Print .............................................................. 6-16
Select Shadow Print ................................................................. 6-16
Cancel Shadow Print ............................................................... 6-16
Color Emulation ........................................................................... 6-16
Select Epson-JX Compatible Color Mode .............................. 6-16
Select TI 857 Compatible Color Mode ................................... 6-16
Raster Graphics Commands ......................................................... 6-17
Select 60 dpi Graphics ............................................................. 6-17
Select 72 dpi Graphics ............................................................. 6-17
Select 120 dpi Graphics ........................................................... 6-17
Select 144 dpi Graphics ........................................................... 6-17
TI Model 855 Printer DP Emulation 6-2
Introduction
This chapter describes the Texas Instruments Model 855 Printer data processing (DP) emulation mode. The Model 855 DP emulation mode allows the Model 8900 Series Printer to accept and respond to commands similar to those for common dot-matrix printers. This mode allows the printer to emulate most of the functions of the
Model 855 Printer operating in its DP mode with the following considerations: q The Model 855 DP emulation supports all Model 8900 global commands.
q You can select ribbon color with the command sequence ESC c n or ESC r n.
q Factory selected power-up defaults for the Model 855 DP emulation are:
— Processing mode — DP
— Auto LF — NO
— The last form setting change made via the control panel is retained and restored at power-up.
q The Model 855 DP emulation uses standard pitch and point for superscript and subscript characters.
q The standard character set is the IBM PC2 Character Set.
q The escape sequence to select mosaic graphics by setting the
MSDB to 1 is ESC v.
q The escape sequence to cancel mosaic graphics by setting the
MSDB to 1 is ESC =.
TI Model 855 Printer DP Emulation 6-3
q Disabling the paper-out detection is not supported.
q The escape sequence for font selection is ESC f N.
The following table lists the Model 855 DP commands.
Command Name
Printer Operation
ESC@
ESC CR P
ESC SUB I
ESC w
ESC u
ESC b
ESC >
ESC =
Model 855 DP Commands
Command Name
Select DP Mode
Select WP Mode
Select WP Mode
Suspend Printing
Select Unidirectional Printing
Cancel Unidirectional Printing
Set Most Significant Bit
Reset Most Significant Bit
Form Format and Font Selection
ESC C n Set Form Length to n Lines
ESC f n Select Font n
Horizontal Motion
BS
HT
CR
ESC <
ESC D n1...n16 NUL
ESC D NUL
Backspace
Tab Horizontally
Carriage Return
Move Print Position to Left Margin
Set Horizontal Tab Stops
Clear All Horizontal Tab Stops
TI Model 855 Printer DP Emulation 6-4
Command Name
Model 855 DP Commands (continued)
Command Name
Vertical Motion
LF
FF
VT
ESC ^
ESC v
ESC B n1...n16 NUL
ESC B NUL
Line Feed
Form Feed
Tab Vertically
Move Up One-Half Line
Move Down One-Half Line
Set Vertical Tab Stops
Clear All Vertical Tab Stops
Character Pitch
ESC y
ESC z
Line Spacing
ESC 2
ESC 0
ESC 1
ESC A n
ESC 3 n
Print Enhancement
SO
ESC S
DC4
ESC T
SI
ESC P
DC2
ESC Q
ESC q
ESC e
ESC d
Set Character Pitch to 10 cpi
Set Character Pitch to 12 cpi
Set Line Spacing to 6 lpi
Set Line Spacing to 8 lpi
Set Line Spacing to 7/72 Inch
Set Line Spacing to n/72 Inch
Set Line Spacing to n/216 Inch
Select Expanded Print
Select Expanded Print
Cancel Expanded Print
Cancel Expanded Print
Select Compressed Print
Select Compressed Print
Cancel Compressed Print
Cancel Compressed Print
Select Letter-Quality Print
Select Letter-Quality Print
Cancel Letter-Quality Print
TI Model 855 Printer DP Emulation 6-5
Model 855DP Commands (concluded)
Command Command Name
Print Enhancement (continued)
ESC G Select Boldface Print
ESC H
ESC E
ESC F
Select Boldface Print
Select Shadow Print
Cancel Shadow Print
Color Emulation
ESC r n
ESC c n
Raster Graphics
ESC K n1 n2
ESC N n1 n2
ESC L n1 n2
ESC J n1 n2
ESC O n1 n2
Select color (Epson-JX compatible)
Select color (TI 857 compatible)
Select 60 dpi Graphics
Select 72 dpi Graphics
Select 120 dpi Graphics
Select 120 dpi Graphics
Select 144 dpi Graphics
TI Model 855 Printer DP Emulation 6-6
Model 855 DP Command Descriptions
The following paragraphs describe the TI 855 DP emulation commands.
The command formats are listed following each command description. Many of the escape-sequence commands contain one or more variables to specify various command parameters. These variables are italicized in the command formats to indicate that they can be set to more than one value.
Printer Operation Commands
These commands allow the host computer to control some basic printer functions.
Select DP Mode
Escape sequence: ESC @
Hexadecimal: 1B 40
Select WP Mode
Escape sequence: ESC CR
Hexadecimal: 1B 0D
P
50
Escape sequence: ESC SUB I
Hexadecimal: 1B 1A 49
These commands cause the printer to function in the Model 855 WP mode.
Suspend Printing
Escape sequence: ESC w
Hexadecimal: 1B 77
This command prints the current print line from the print buffer and suspends printing operations until the suspension is released by the
On Line switch.
TI Model 855 Printer DP Emulation 6-7
Select Unidirectional Printing
Escape sequence: ESC u
Hexadecimal: 1B 75
This command causes the printer to print subsequent characters in the forward (left-to-right) direction only.
Cancel Unidirectional Printing
Escape sequence: ESC b
Hexadecimal: 1B 62
Set Most Significant Bit
Escape sequence: ESC >
Hexadecimal: 1B 3E
This command sets the most significant bit of all received characters to one. This allows a host that can send only 7-bit data to access the
GR side of an 8-bit character set.
Reset Most Significant Bit
Escape sequence: ESC =
Hexadecimal: 1B 3D
Form Format and Font Selection Commands
The form format commands let you select and set some form-related parameters. The font selection command lets you choose between the two standard fonts and any installed optional fonts.
The standard fonts for the Model 8900 Series Printer are Courier and
Gothic. Residing in printer ROM, these fonts can be selected via the control panel or by the host computer. Optional fonts include Prestige
Elite and Presentor. These optional fonts are available as ROMs that plug into sockets on the printer logic board. When installed, these fonts can also be selected via the control panel or by the host computer.
TI Model 855 Printer DP Emulation 6-8
Set Form Length to n Lines
Escape sequence: ESC C
Hexadecimal: 1B 43 n n
The variable n is valid for any value in range of 1 through 127 for 7-bit character sets and 1 through 255 for 8-bit character sets.
Example. To set the form length to 60 lines, send the sequence
ESC C < (1B 43 3C).
Select Font n
Escape sequence: ESC f
Hexadecimal: 1B 66 n n
The printer can have a maximum of 10 fonts, including two standard fonts (Gothic and Courier) and up to eight optional fonts.
The variable n can be any value in the range of 0 through 9, where 0 designates Gothic, 1 designates Courier, 2 designates the first font in option ROM 1, 3 designates the second font in option ROM 1, and so on. The range of n for either option ROM depends on the number of fonts contained in each ROM.
Examples. If option ROM 1 has two fonts and option ROM 2 has three fonts, then the range of n is 2 through 3 for option ROM 1 and
4 through 7 for option ROM 2. If option ROM 1 has four fonts and option ROM 2 has three fonts, then the range of n is 2 through 5 for option ROM 1 and 6 through 8 for option ROM 2.
Horizontal Motion Commands
The following paragraphs describe the commands for horizontal motion and tabulation functions in the Model 855 DP emulation mode.
Backspace
Control character.
BS
Hexadecimal: 08
This command causes the printer to move the printhead one space to the left.
TI Model 855 Printer DP Emulation 6-9
The next character printed following a BS command over-strikes the most recently printed character. In the backward print mode, each BS control character moves the printhead to the right one space.
The BS command can cause characters to be printed to the left of the left margin in the forward print mode or to the right of the right margin in the backward print mode.
Tab Horizontally
Control character: HT
Hexadecimal: 09
This command advances the printhead to the next horizontal tab stop and the printer starts the next print operation at that position. If the printer receives an HT command following the last horizontal tab stop on a line, the printer performs a carriage return and a line feed and starts the next print operation at the left margin.
Carriage Return
Control character: CR
Hexadecimal: 0D
This command causes the printer to perform the following functions.
q The printer prints the current line of data from the print buffer and begins the next line at the left edge (column 1), set via the form configuration menu.
q If right margin justification is active, the CR command causes each line of print to occupy the entire space between the left and right margins q If the expanded print mode is active, the CR command resets the printer to the normal print mode.
q If the automatic line feed function is active, the CR command causes the paper to advance one print line.
TI Model 855 Printer DP Emulation 6-10
Move Print Position to Left Margin
Escape sequence: ESC <
Hexadecimal: 1B 3C
This command moves the printhead to the left margin and causes the next print operation to be in the forward direction.
Set Horizontal Tab Stops
Escape sequence: ESC D
Hexadecimal: 1B 44 n1...n16
n1...n16
NUL
00
This command clears all previously set horizontal tab stops and sets a new stop at each of the columns specified by the variables n1...n16.
Each of the variables n1 through n16 can range from 1 through 255.
However, the printer ignores any setting to the right of the right margin.
Clear All Horizontal Tab Stops
Escape sequence: ESC D
Hexadecimal: 1B 44
NUL
00
Vertical Motion Commands
Vertical tab stops define the line numbers at which the paper stops when performing vertical tab operations. After vertical tab stops have been set, any change of the vertical pitch causes a proportional change in the vertical tab stop positions.
Line Feed
Control character: LF
Hexadecimal: 0A
This command moves the paper forward one line position and performs a carriage return to the left edge (column 1), as set via the form configuration menu.
Form Feed
Control character: FF
Hexadecimal: 0C
TI Model 855 Printer DP Emulation 6-11
This command advances the paper to the top margin of the next page and causes the printer to perform a carriage return to the left edge
(column 1), as set via the form configuration menu.
Tab Vertically
Control character: VT
Hexadecimal: 0B
This command advances the paper to the next vertical tab stop. If no vertical tab stops have been set, the VT command causes the printer to perform a line feed operation. If the printer receives a VT command following the last vertical tab stop on a page, the printer performs a form feed operation.
Move Up One-Half Line
Escape sequence: ESC ^
Hexadecimal: 1B 5E
This command moves the paper in reverse one-half of one line space.
The line space is the space defined by the LPI menu item of the control panel Form Config switch. This sequence can be used for superscripts or to return to the normal print line after invoking the
ESC v (move down ½ line) sequence.
Move Down One-Half Line
Escape sequence: ESC v
Hexadecimal: 1B 76
This command moves the paper forward one-half of one line space.
The line space is that defined by the LPI menu item of the control panel Form Config switch. This sequence can be used for subscripts or to return to the normal print line after invoking the ESC ^ (move up ½ line) sequence.
TI Model 855 Printer DP Emulation 6-12
Set Vertical Tab Stops
Escape sequence: ESC B
Hexadecimal: 1B 42 n1...n16
n1...n16
NUL
00
This command clears all previously set vertical tabulation stops and sets a new stop at each of the lines specified by the variables
n1...n16. Each of the variables n1 through n16 can range from 1 through 127 for 7-bit character sets and 1 through 255 for 8-bit character sets. However, the printer ignores any setting below the bottom print line.
Clear All Vertical Tab Stops
Escape sequence: ESC B
Hexadecimal: 1B 42
NUL
00
Character Pitch Commands
The following paragraphs describe the commands for character pitch operations in the Model 855 DP emulation mode.
Set Character Pitch to 10 cpi
Escape sequence: ESC y
Hexadecimal: 1B 79
Set Character Pitch to 12 cpi
Escape sequence: ESC z
Hexadecimal: 1B 7A
This command sets the character pitch to 12 cpi.
Line Spacing Commands
The following paragraphs describe the commands for line spacing operations in the Model 855 DP emulation mode.
Set Line Spacing to 6 lpi
Escape sequence: ESC 2
Hexadecimal: 1B 32
TI Model 855 Printer DP Emulation 6-13
Set Line Spacing to 8 lpi
Escape sequence: ESC 0
Hexadecimal: 1B 30
Set Line Spacing to 7/72 Inch
Escape sequence: ESC 1
Hexadecimal: 1B 31
Set Line Spacing to n/72 Inch
Escape sequence: ESC A
Hexadecimal: 1B 41 n n
The variable n can be any value in the range of 1 through 127.
Set Line Spacing to n/216 Inch
Escape sequence: ESC 3
Hexadecimal: 1B 33 n n
The valid range of n is 1 through 127 for 7-bit character sets and 1 through 255 for 8-bit character sets.
Print Enhancement Commands
The print enhancement commands enable your printer to improve or enhance the print quality.
Select Expanded Print
Control character: SO
Hexadecimal: 0E
Escape sequence: ESC S
Hexadecimal: 1B 53
These commands cause the printer to double the horizontal dot spacing of each character and then make a second pass to fill in the dots.
Cancel Expanded Print
Control character: DC4
Hexadecimal: 14
TI Model 855 Printer DP Emulation 6-14
Escape sequence: ESC T
Hexadecimal: 1B 54
Select Compressed Print
Control character: SI
Hexadecimal: 0F
Escape sequence: ESC P
Hexadecimal: 1B 50
These commands reduce the width of subsequently printed characters to about 60 percent of their normal size.
Cancel Compressed Print
Control character: DC2
Hexadecimal: 12
Escape sequence: ESC Q
Hexadecimal: 1B 51
Select Letter-Quality Print
Escape sequence: ESC q
Hexadecimal: 1B 71
Escape sequence: ESC e
Hexadecimal: 1B 65
Cancel Letter-Quality Print
Escape sequence: ESC d
Hexadecimal: 1B 64
This command cancels LQ print and returns the printer to the draft print mode.
Select Boldface Print
Escape sequence: ESC G
Hexadecimal: 1B 47
In the boldface print mode, the printer double strikes all characters with no physical offset.
TI Model 855 Printer DP Emulation 6-15
Cancel Boldface Print
Escape sequence: ESC H
Hexadecimal: 1B 48
Select Shadow Print
Escape sequence: ESC E
Hexadecimal: 1B 45
In the shadow print mode, the printer double strikes all characters with a 1/120-inch horizontal offset.
Cancel Shadow Print
Escape sequence: ESC F
Hexadecimal: 1B 46
Color Emulation
Select Epson-JX Compatible Color Mode
Escape sequence: ESC r
Hexadecimal: 1B 72 n n
To provide compatibility with Epson-JX where n is an ASCII value
NUL through ACK (hexadecimal value 00 through 06 or decimal value 0 through 6).
n = 0 for black
n = 1 for red
n = 2 for blue
n = 3 for purple
n = 4 for yellow
n = 5 for orange
n = 6 for green
Select TI 857 Compatible Color Mode
Escape sequence: ESC c
Hexadecimal: 1B 63 n n
TI Model 855 Printer DP Emulation 6-16
To provide compatibility with TI 857 where n is an ASCII value
NUL through ACK (hexadecimal value 00 through 06 or decimal value 0 through 6).
n = 0 for black
n = 1 for blue
n = 2 for red
n = 3 for yellow
n = 4 for green
n = 5 for purple
n = 6 for orange
Raster Graphics Commands
The following paragraphs describe the commands that control the raster graphics feature in the Model 855 DP emulation mode. To find the values of n1 and n2 for any of the following commands, modify the procedure described for the Select 60 dpi Graphics command in
Chapter 4. In step 1 of the procedure, substitute the appropriate dot density value for 60.
Select 60 dpi Graphics
Escape sequence: ESC K
Hexadecimal: 1B 4B
Select 72 dpi Graphics
Escape sequence: ESC N
Hexadecimal: 1B 4E
Select 120 dpi Graphics
Escape sequence: ESC L
Hexadecimal: 1B 4C
Escape sequence: ESC J
Hexadecimal: 1B 4A
Select 144 dpi Graphics
Escape sequence: ESC O
Hexadecimal: 1B 4F n1 n1 n1 n1 n1 n1 n1 n1 n1 n1 n2 n2 n2 n2 n2 n2 n2 n2 n2 n2
TI Model 855 Printer DP Emulation 6-17
7
IBM Proprinter XL Emulation
Introduction .................................................................................... 7-4
IBM Proprinter XL Emulation Commands .................................... 7-5
IBM Proprinter XL Command Descriptions .................................. 7-7
Printer Operation Commands .................................................... 7-7
Select Printer ......................................................................... 7-8
Deselect Printer ..................................................................... 7-8
Sound Bell ............................................................................ 7-8
Cancel Line ........................................................................... 7-8
Select Unidirectional Printing .............................................. 7-8
Cancel Unidirectional Printing ............................................. 7-9
Form Format and Margin Control Commands .......................... 7-9
Set Form Length to n Lines .................................................. 7-9
Set Form Length to n Inches ................................................. 7-9
Set Top of Form Position ...................................................... 7-9
Select Automatic Perforation Skip ..................................... 7-10
Cancel Automatic Perforation Skip .................................... 7-10
Set Left and Right Margins at Columns nl and n2 ............. 7-10
Horizontal Motion Commands ................................................ 7-11
Backspace ........................................................................... 7-11
Tab Horizontally ................................................................. 7-11
Carriage Return ................................................................... 7-11
Set Horizontal Tab Stops .................................................... 7-12
Restore Default Tab Stops .................................................. 7-12
Vertical Motion Commands ..................................................... 7-12
Line Feed ............................................................................ 7-12
Form Feed ........................................................................... 7-13
Tab Vertically ...................................................................... 7-13
Perform n/216-Inch Line Feed ............................................ 7-13
Perform Reverse Line Feed ................................................ 7-13
Enable Automatic Line Feed .............................................. 7-13
IBM Proprinter XL Emulation 7-1
Disable Automatic Line Feed ............................................. 7-14
Reverse Line Feed .............................................................. 7-14
Set Vertical Tab Stops ......................................................... 7-14
Clear Vertical Tab Stops ..................................................... 7-14
Character Pitch and Line Spacing Commands ........................ 7-14
Set Character Pitch to 10 cpi .............................................. 7-14
Set Character Pitch to 12 cpi .............................................. 7-15
Select Programmable Line Spacing .................................... 7-15
Set Line Spacing to 8 lpi ..................................................... 7-15
Set Line Spacing to 7/72 Inch ............................................. 7-15
Set Line Spacing to n/72 Inch ............................................. 7-15
Set Line Spacing to n/216 Inch ........................................... 7-15
Character Set Commands ........................................................ 7-16
Select PC1 Character Set .................................................... 7-16
Select PC2 Character Set .................................................... 7-16
Print Single Specified Character ......................................... 7-16
Print Multiple Specified Characters ................................... 7-16
Print Enhancement Commands ................................................ 7-17
Select Expanded Print ......................................................... 7-17
Cancel Expanded Print ....................................................... 7-17
Select Compressed Print ..................................................... 7-17
Cancel Compressed Print .................................................... 7-18
Select Letter-Quality Print .................................................. 7-18
Cancel Letter-Quality Print ................................................ 7-18
Select Text-Underline Print ................................................ 7-18
Cancel Text-Underline Print ............................................... 7-18
Select Text-Overscore Print ................................................ 7-18
Cancel Text-Overscore Print ............................................... 7-18
Select Boldface Print .......................................................... 7-18
Cancel Boldface Print ......................................................... 7-19
Select Shadow Print ............................................................ 7-19
Cancel Shadow Print .......................................................... 7-19
Select Superscript Print ...................................................... 7-19
Cancel Superscript Print ..................................................... 7-19
Select Subscript Print .......................................................... 7-19
IBM Proprinter XL Emulation 7-2
Cancel Subscript Print ........................................................ 7-19
Enable/Disable Double-High Double-Wide Print .............. 7-20
Considerations for Using Enable/Diasble
Double-High Double-Wide Print ...................................... 7-20
Raster Graphics Commands .................................................... 7-21
Select 60 dpi Graphics ........................................................ 7-22
Select 120 dpi Graphics ...................................................... 7-22
Select High-Speed 120 dpi Graphics .................................. 7-22
Select 240 dpi Graphics Mode ............................................ 7-22
IBM Proprinter XL Emulation 7-3
Introduction
This chapter describes the IBM Proprinter XL emulation mode. This emulation mode is selectable from the printer setup menu described in Chapter 2. This mode enables your printer to emulate most of the functions of the IBM Proprinter XL with the following considerations: q The Proprinter XL emulation supports all Model 8900 global commands.
q Factory selected power-up defaults for the IBM Proprinter XL emulation are:
— Auto LF — NO
— Auto CR — NO
— Slashed zeros — NO
— The last form setting change made via the control panel is retained and restored at power-up.
q Selecting or canceling proportional spacing is not supported.
q Downloading characters (ESC = nl n2 data) is not supported.
The IBM Proprinter XL is a nine-pin dot-matrix impact printer that can print draft-quality or near-letter-quality (NLQ) text characters and dot graphics.
IBM Proprinter XL Emulation 7-4
IBM Proprinter XL Emulation Commands
Your printer, when operating in the IBM Proprinter XL emulation mode, can respond to both escape-sequence commands and the standard US ASCII control characters. The following table lists the
IBM Proprinter XL printer commands.
Command
Printer Operation
DC1
ESC Q SYN
BEL
CAN
ESC U SOH
ESC U NUL
IBM Proprinter XL Commands
Command Name
Select Printer
Deselect Printer
Sound Bell
Cancel Line
Select Unidirectional Printing
Cancel Unidirectional Printing
Form Format and Margin Control
ESC C n Set Form Length to n Lines
ESC C NUL n
ESC 4
Set Form Length to n Inches
Set Top of Form Position
ESC N n
ESC O
ESC X n1 n2
Set Automatic Perforation Skip to n Lines
Cancel Automatic Perforation Skip
Set Left and Right Margins at Columns n1 and n2
Horizontal Motion
BS
HT
CR
ESC D n1...n28 NUL
ESC R
Backspace
Tab Horizontally
Carriage Return
Set Horizontal Tab Stops
Restore Default Tab Stops
IBM Proprinter XL Emulation 7-5
Command
IBM Proprinter XL Commands (continued)
Command Name
Vertical Motion
LF
FF
VT
ESC J n
ESC 5 SOH
ESC 5 NUL
ESC ]
ESC B n1...n64 NUL
ESC B NUL
Line Feed
Form Feed
Tab Vertically
Perform n/216 Inch Line Feed
Enable Automatic Line Feed
Disable Automatic Line Feed
Reverse Line Feed
Set Vertical Tab Stops
Clear All Vertical Tab Stops
Character Pitch and Line Spacing
DC2 Set Character Pitch to 10 cpi
ESC :
ESC 2
Set Character Pitch to 12 cpi
Select Programmable Line Spacing
ESC 0
ESC 1
ESC A n
ESC 3 n
Set Line Spacing to 8 lpi
Set Line Spacing to 7/72 Inch
Set Line Spacing to n/72 Inch
Set Line Spacing to n/216 Inch
Character Set
ESC 7
ESC 6
ESC ^ c
ESC \ n1 n2 data
Select PC1 Character Set
Select PC2 Character Set
Print Single Specified Character
Print Multiple Specified Characters
Print Enhancement
SO
ESC SO
ESC W SOH
DC4
ESC W NUL
SI
ESC SI
DC2
ESC I STX
ESC I ACK
ESC I NUL
ESC I EOT
ESC - SOH
Select Expanded Print
Select Expanded Print
Select Expanded Print
Cancel Expanded Print
Cancel Expanded Print
Select Compressed Print
Select Compressed Print
Cancel Compressed Print
Select Letter-Quality Print
Select Letter-Quality Print
Cancel Letter-Quality Print
Cancel Letter-Quality Print
Select Text-Underline Print
IBM Proprinter XL Emulation 7-6
IBM Proprinter XL Commands (concluded)
Command Command
Name Print Enhancement (continued)
ESC - NUL Cancel Text-Underline Print
ESC _ SOH
ESC _ NUL
Select Text-Overscore Print
Cancel Text-Overscore Print
ESC G
ESC H
ESC E
ESC F
Select Boldface Print
Cancel Boldface Print
Select Shadow Print
Cancel Shadow Print
ESC S NUL
ESC T
ESC S SOH
ESC T
ESC [ @ n1 n2
n3 n4 m1 m2
Select Superscript Print
Cancel Superscript Print
Select Subscript Print
Cancel Subscript Print
Enable/Disable Double-High
Double-Wide Print
Raster Graphics
ESC K n1 n2
ESC L n1 n2
ESC Y n1 n2
ESC Z n1 n2
Select 60 dpi Graphics
Select 120 dpi Graphics
Select High-Speed 120 dpi Graphics
Select 240 dpi Graphics
IBM Proprinter XL Command Descriptions
The following paragraphs describe the IBM Proprinter XL emulation commands. Many of the escape-sequence commands contain one or more variables to specify various command parameters. These variables are italicized in the command formats to indicate that they can be set to more than one value.
Printer Operation Commands
The printer operation commands provide printer control functions including printer selection and initialization. These commands allow the host computer to control the basic printer functions.
IBM Proprinter XL Emulation 7-7
Select Printer
Control character: DC1
Hexadecimal: 11
This command reselects the printer after it has received a Deselect
Printer command, unless the printer has been placed offline via the control panel On Line switch.
Note: Some IBM computers and IBM-compatible computers set parallel interface pin 36 low; this condition disables the DC1 command.
Deselect Printer
Escape sequence: ESC Q
Hexadecimal: 1B 51
22
16
This command sets the printer to its deselected state until it receives a Select Printer (DC1) command from the host. After the printer has received the Deselect Printer command, it cannot be placed online via the control panel On Line switch.
Sound Bell
Control character: BEL
Hexadecimal: 07
This command causes the printer to sound a short tone.
Cancel Line
Control character: CAN
Hexadecimal: 18
This command removes all characters except control characters from the current contents of the print buffer.
Select Unidirectional Printing
Escape sequence: ESC U
Hexadecimal: 1B 55
SOH
01
This command causes the printer to print subsequent text in the forward (left-to-right) direction only.
IBM Proprinter XL Emulation 7-8
Cancel Unidirectional Printing
Escape sequence: ESC U
Hexadecimal: 1B 55
NUL
00
Form Format and Margin Control Commands
The form format commands let you select and set some form-related parameters. A single margin control command lets you set the left and right margin positions.
Set Form Length to n Lines
Escape sequence: ESC C
Hexadecimal: 1B 43 n n
The variable n can be any value in the range of 1 through 127.
Set Form Length to n Inches
Escape sequence: ESC C
Hexadecimal: 1B 43
NUL n
00 n
The variable n can be any value in the range of 1 through 21.
Set Top of Form Position
Escape sequence: ESC 4
Hexadecimal: 1B 34
This command sets the top of form position to the current print line.
IBM Proprinter XL Emulation 7-9
Select Automatic Perforation Skip
Escape Sequence: ESC N
Hexadecimal: 1B 4E n n
This command causes the printer to perform the following actions.
1. Skip the number of lines specified by the variable n and the current form parameter settings.
2. Print the next line at the first print line position of the following form.
The variable n can be any value in the range of 1 through 255.
Cancel Automatic Perforation Skip
Escape sequence: ESC O
Hexadecimal: 1B 4F
Set Left and Right Margins at Columns n1 and n2
Escape sequence: ESC X
Hexadecimal: 1B 58 n1 n1 n2 n2
This command sets the left and right margins at the positions specified by the variables n1 and n2, respectively. The left margin position
(n1) can be at any column in the range of 1 through the column immediately to the left of the current right margin. The right margin
(n2) can be at any column in the range of the column immediately to the right of the left margin through 255. If n1 or n2 equals 0, the left margin or right margin, respectively, equals the default value. The minimum allowable distance between the left and right margin is one-half inch.
IBM Proprinter XL Emulation 7-10
Horizontal Motion Commands
The horizontal motion commands control the horizontal motion of the printhead, including the direction and distance of each movement.
Backspace
Control character: BS
Hexadecimal: 08
This command causes the printer to print the current contents of the print buffer and then move the printhead one character to the left. This command is valid at any point to the right of the left margin but not at or to the left of the left margin. The printer ignores the Backspace command if either full or right margin justification has been selected.
Tab Horizontally
Control character: HT
Hexadecimal: 09
This command moves the printhead horizontally to the next horizontal tab stop. These tab stops can be the ones set by the Set Horizontal
Tab Stops command (ESC D n1...n32) or the default horizontal tab stops. The default tab stops are at 8-character intervals (in the default character size) between the left and right margins.
Carriage Return
Control character.
CR
Hexadecimal: 0D
This command causes the printer to print the current contents of the print buffer and then return the printhead to the left margin. This command may be accompanied by a Line Feed command to move the printhead to the next print line position.
IBM Proprinter XL Emulation 7-11
Set Horizontal Tab Stops
Escape sequence: ESC D
Hexadecimal: 1B 44 n1...n28
n1...n28
NUL
00
This command clears all previously set horizontal tab stops and sets a new tab stop at each of the columns specified by the variables
n1...n28. These variables must be listed in ascending order; that is, the value of each variable must be greater than the one preceding it.
Any n value of 0 or less than that of the one preceding it terminates the command.
At power-up or upon receiving the Initialize Printer command, the printer automatically sets a horizontal tab stop at every eighth column. These are the default positions.
If you change the character pitch after the horizontal tab stops have been set, the tab stop positions change accordingly. However, the expanded print mode does not affect the horizontal tab settings.
Restore Default Tab Stops
Escape sequence: ESC R
Hexadecimal: 1B 52
This command resets all tab stops (both vertical and horizontal) to their default values.
Vertical Motion Commands
The vertical motion commands are those that control forward or reverse movement of the paper within the printer.
Line Feed
Control character: LF
Hexadecimal: 0A
This command causes the printer to print the current contents of the print buffer and then position the printhead at the next print line.
IBM Proprinter XL Emulation 7-12
Form Feed
Control character: FF
Hexadecimal: 0C
The Form Feed command causes the printer to print the current contents of the print buffer and then move the print-head to the first print line of the next form.
Tab Vertically
Control character: VT
Hexadecimal: 0B
This command advances the print position vertically to the next vertical tab stop.
Perform n/216 Inch Line Feed
Escape sequence: ESC J
Hexadecimal: 1B 4A n n
This command advances the print position vertically by a value in the range of 0/216 through 255/216 (0 through 1.18) inches. This command causes an immediate line feed operation but does not produce a carriage return unless the printer is set to perform an automatic carriage return upon receiving an LF control character.
Perform Reverse Line Feed
Escape Sequence: ESC ]
Hexadecimal: 1B 5D
This command executes an immediate reverse line feed. Printable data in the line print buffer is printed, then a reverse line feed is executed.
Enable Automatic Line Feed
Escape sequence: ESC 5
Hexadecimal: 1B 35
SOH
01
This command enables the automatic line feed mode. With this mode enabled, the printer automatically performs a line feed with every carriage return.
IBM Proprinter XL Emulation 7-13
Disable Automatic Line Feed
Escape sequence: ESC 5
Hexadecimal: 1B 35
NUL
00
Reverse Line Feed
Escape sequence: ESC ]
Hexadecimal: 1B 5D
Set Vertical Tab Stops
Escape sequence: ESC B
Hexadecimal: 1B 42 nl...n64
n1...n64
NUL
00
This command sets up to 64 vertical tab stops (in the current line spacing). Subsequent line spacing changes do not affect these settings. The tab settings must be entered in ascending order (n1, n2, and so on); that is, the value of each succeeding n variable must be greater than the one preceding it. Any n variable with a value of 0
(00) terminates the command.
Clear Vertical Tab Stops
Escape sequence: ESC B
Hexadecimal: 1B 42
NUL
00
Character Pitch and Line Spacing Commands
The character pitch is the horizontal distance from the center of one character to the center of an adjacent character. The line spacing is the vertical distance between print lines.
Set Character Pitch to 10 cpi
Control character: DC2
Hexadecimal: 12
IBM Proprinter XL Emulation 7-14
Set Character Pitch to 12 cpi
Escape sequence: ESC :
Hexadecimal: 1B 3A
This command selects 12 cpi character pitch for either draft or LQ printing.
Select Programmable Line Spacing
Escape sequence: ESC 2
Hexadecimal: 1B 32
This command invokes the line spacing value stored in memory by the Set Line Spacing to n/72 Inch command (ESC A n). If no ESC A n command has been received, this command sets the line spacing to 6 lpi.
Set Line Spacing to 8 lpi
Escape sequence: ESC 0
Hexadecimal: 1B 30
Set Line Spacing to 7/72 Inch
Escape sequence: ESC 1
Hexadecimal: 1B 31
Set Line Spacing to n/72 Inch
Escape sequence: ESC A
Hexadecimal: 1B 32 n n
The line spacing value can be any value in the range of 1/72 through
85/72 (0.014 through 1.181) inches, depending upon the value of the variable n.
Set Line Spacing to n/216 Inch
Escape sequence: ESC 3
Hexadecimal: 1B 32 n n
This command sets the line spacing to a value in the range of 0/216 through 255/216 (0 through 1.18) inches for subsequent line feed operations.
IBM Proprinter XL Emulation 7-15
Character Set Commands
The character set commands let you choose between the IBM PC1 and IBM PC2 character sets and print specified characters from either of these character sets.
Select PC1 Character Set
Escape sequence: ESC 7
Hexadecimal: 1B 37
Select PC2 Character Set
Escape sequence: ESC 6
Hexadecimal: 1B 36
Print Single Specified Character
Escape sequence: ESC ^
Hexadecimal: 1B 5E c c
This command causes the printer to print from the All Characters character set the single character specified by the variable c. The variable c can be any hexadecimal code from the character set, including those from columns 0, 1, 8, and 9.
Print Multiple Specified Characters
Escape sequence: ESC \
Hexadecimal: 1B 5C n1 n1 n2 n2 data data
This command causes the printer to print from the All Characters character set the number of characters indicated by the variables n1 and n2 and specified by the data term. The total number of characters to be printed following this command is equal to n1 + (n2 x 256), where the valid ranges of both nl and n2 are 0 through 255. Thus the maximum number of characters that can be specified by this command is 255 + (255 x 256) equals 65,535. The data term is a list of the hexadecimal codes of the characters to be printed, including the characters from columns 0, 1, 8, and 9 of the All Characters character set.
IBM Proprinter XL Emulation 7-16
Print Enhancement Commands
The print enhancement commands enable your printer to improve or enhance the print quality. Print enhancements include such things as superscript and subscript text, text underlining and overscoring, and emphasized print to make the print appear bolder. The following paragraphs describe the print enhancement commands.
Select Expanded Print
Control character: SO
Hexadecimal: 0E
Escape sequence: ESC SO
Hexadecimal: 1B 0E
Escape sequence: ESC W
Hexadecimal: 1B 57
SOH
01
These commands select the expanded (double-wide) print mode for either draft or LQ printing. A Carriage Return command (CR) cancels the expanded print mode; therefore, for two or more consecutive lines of expanded print you must invoke the Select
Expanded Print command for each line.
Cancel Expanded Print
Control character.
DC4
Hexadecimal: 14
Escape sequence: ESC W
Hexadecimal: 1B 57
NUL
00
Select Compressed Print
Control character: SI
Hexadecimal: 0F
Escape sequence: ESC SI
Hexadecimal: 1B 0F
These commands cause the printer to print characters at about 60 percent of their normal widths. For example, for a character pitch of
10 cpi, one inch of text contains about 17 characters instead of the normal 10.
IBM Proprinter XL Emulation 7-17
Cancel Compressed Print
Control character: DC2
Hexadecimal: 12
Select Letter-Quality Print
Escape sequence: ESC I
Hexadecimal: 1B 49
Escape sequence: ESC I
Hexadecimal: 1B 49
Cancel Letter-Quality Print
Escape sequence: ESC I
Hexadecimal: 1B 49
Escape sequence: ESC I
Hexadecimal: 1B 49
STX
02
ACK
06
NUL
00
EOT
04
Select Text-Underline Print
Escape sequence: ESC -
Hexadecimal: 1B 2D
SOH
01
Cancel Text-Underline Print
Escape sequence: ESC -
Hexadecimal: 1B 2D
NUL
00
Select Text-Overscore Print
Escape sequence: ESC _
Hexadecimal: 1B 5F
SOH
01
Cancel Text-Overscore Print
Escape sequence: ESC _
Hexadecimal: 1B 5F
NUL
00
Select Boldface Print
Escape sequence: ESC G
Hexadecimal: 1B 47
IBM Proprinter XL Emulation 7-18
Cancel Boldface Print
Escape sequence: ESC H
Hexadecimal: 1B 48
Select Shadow Print
Escape sequence: ESC E
Hexadecimal: 1B 45
Cancel Shadow Print
Escape sequence: ESC F
Hexadecimal: 1B 46
Select Superscript Print
Escape sequence: ESC S
Hexadecimal: 1B 53
NUL
00
After receiving this command the printer prints each subsequent character in the upper part of the character space at about two-thirds its normal height.
Cancel Superscript Print
Escape sequence: ESC T
Hexadecimal: 1B 54
Select Subscript Print
Escape sequence: ESC S
Hexadecimal: 1B 53
SOH
01
After receiving this command the printer prints each subsequent character in the lower part of the character space at about two-thirds its normal height.
Cancel Subscript Print
Escape sequence: ESC T
Hexadecimal: 1B 54
IBM Proprinter XL Emulation 7-19
Enable/Disable Double-High Double-Wide Print
Escape sequence: ESC [
Hexadecimal: 1B 5B
@
40 n1 n1 n2 n2 n3 n3
n4 n4 m1 m2 m1 m2 where: n1 n2 n3 n4 m1 m2
= byte count; format is (n1 + (n2 * 256))
= no function, ignored
= line spacing and character height
= character width
This command selects double-high printing in either the standard or expanded width. The variable m2 specifies the character width, and
m1 specifies the character height and line feed distance as follows.
Considerations for Using Enable/Diasble Double-High
Double-Wide Print
Considerations for using the Enable/Disable Double-High
Double-Wide command sequence are: q The byte count is usually four (4), when the count is greater than
4, the command is executed as per m1 and m2 and the additional bytes are accepted and ignored.
q When the byte count is three (3), the command is executed as per
m1 only.
No m2 byte is provided, the character width remains unchanged.
m1 is the last byte of the count.
q When the byte count is less than three (3) the command is accepted and ignored as follows: byte count = 2 n4 is the last byte of the sequence
1 n3 is the last byte of the sequence
0 n2 is the last byte of the sequence
IBM Proprinter XL Emulation 7-20
m1 data byte, bit 0 is least significant bits 0 and 1 = 00 current character height
01
10
11 standard character height double character height
current character height bits 2 and 3 = XX don’t care bits 4 and 5 = 00 current line spacing
01 single line spacing
10 double line spacing
11 current line spacing
XX don’t care bits 6 and 7 = m2 data byte, bit 0 is least significant bits 0 and 1 = 00 current character width
01
10
11 standard character width double character width current character width bits 2 through 7 = XX don’t care
Raster Graphics Commands
The graphics feature provides commands that enable you to design your own images in any shape you desire. These commands allow you to create and adjust the density of various lines and patterns in various combinations.
Note: The allowed ranges of n1 and n2 in the following commands are determined by the line length and limited by the width of the installed paper.
To find the values of n1 and n2 for any of the following commands, modify the procedure described for the Select 60 dpi Graphics command in Chapter 4. In step 1 of the procedure, substitute the appropriate dot density value for 60.
IBM Proprinter XL Emulation 7-21
Select 60 dpi Graphics
Escape sequence: ESC K
Hexadecimal: 1B 4B n1 n1 n2 n2
This command selects the 8-pin, 60 dpi graphics mode for the horizontal line length specified by the two-byte variable n1 n2.
Select 120 dpi Graphics
Escape sequence: ESC L
Hexadecimal: 1B 4C n1 n1 n2 n2
This command selects the 8-pin, 120 dpi graphics mode for the horizontal distance specified by the two-byte variable n1 n2.
Select High-Speed 120 dpi Graphics
Escape sequence: ESC Y
Hexadectmal: 1B 59 n1 n1 n2 n2
This command selects the 8-pin, high-speed 120 dpi graphics mode for the horizontal distance specified by the two-byte variable n1 n2.
This is identical to the double-density graphics mode except that the printing speed is doubled.
Select 240 dpi Graphics Mode
Escape sequence: ESC Z
Hexadecimal: 1B 5A n1 n1 n2 n2
This command selects the 8-pin, 240 dpi graphics mode for the horizontal distance specified by the two-byte variable n1 n2.
IBM Proprinter XL Emulation 7-22
8
Epson FX Printer Emulation Mode
Introduction .................................................................................... 8-4
Epson FX Printer Emulation Commands ....................................... 8-6
Epson FX Emulation Command Descriptions ............................... 8-9
Printer Operation Commands .................................................... 8-9
Select Printer ....................................................................... 8-10
Deselect Printer ................................................................... 8-10
Sound Bell .......................................................................... 8-10
Cancel Line ......................................................................... 8-10
Delete Character ................................................................. 8-10
Initialize Printer .................................................................. 8-11
Set Most Significant Bit to Zero ......................................... 8-11
Set Most Significant Bit to One .......................................... 8-11
Cancel Most Significant Bit Control .................................. 8-12
Select Unidirectional Printing for One Line Only .............. 8-12
Select Unidirectional Printing ............................................ 8-12
Cancel Unidirectional Printing ........................................... 8-12
Form Format Commands ......................................................... 8-13
Set Form Length to n Lines ................................................ 8-13
Set Form Length to n Inches ............................................... 8-13
Select Automatic Perforation Skip ..................................... 8-13
Cancel Automatic Perforation Skip .................................... 8-14
Font Selection Commands ....................................................... 8-14
Select Letter-Quality Gothic Font ...................................... 8-14
Select Letter-Quality Courier Font ..................................... 8-14
Margin Control Commands ..................................................... 8-15
Select Left Margin Justification ......................................... 8-15
Select Right Margin Justification ....................................... 8-15
Select Full Justification ...................................................... 8-15
Select Text Centering .......................................................... 8-15
Set Left Margin at Column n .............................................. 8-16
Set Right Margin at Column n ............................................ 8-16
Epson FX Printer Emulation Mode 8-1
Horizontal Motion Commands ................................................ 8-17
Backspace ........................................................................... 8-17
Tab Horizontally ................................................................. 8-17
Carriage Return ................................................................... 8-17
Set Absolute Print Position ................................................. 8-18
Set Relative Print Position .................................................. 8-18
Set Horizontal Tab Stops .................................................... 8-19
Clear All Horizontal Tab Stops .......................................... 8-19
Vertical Motion Commands ..................................................... 8-19
Line Feed ............................................................................ 8-19
Form Feed ........................................................................... 8-20
Tab Vertically ...................................................................... 8-20
Perform n/216 Inch Line Feed ............................................ 8-20
Set Vertical Tab Stops ......................................................... 8-20
Select Vertical Tab Channel ................................................ 8-21
Set VTC Tab Stops ............................................................. 8-21
Clear All VTC Tab Stops .................................................... 8-21
Clear All Vertical Tab Stops ............................................... 8-21
Character Pitch Commands ..................................................... 8-22
Set Character Pitch to 10 cpi .............................................. 8-22
Set Character Pitch to 12 cpi .............................................. 8-22
Set Intercharacter Space ..................................................... 8-22
Line Spacing Commands ......................................................... 8-23
Set Line Spacing to 6 lpi ..................................................... 8-23
Set Line Spacing to 8 lpi ..................................................... 8-23
Set Line Spacing to 7/72 Inch ............................................. 8-23
Set Line Spacing to n/72 Inch ............................................. 8-23
Set Line Spacing to n/216 Inch ........................................... 8-24
Character Set Commands ........................................................ 8-24
Select Italic Character Set ................................................... 8-24
Select Extended Graphics Character Set ............................ 8-24
Select International Character Set ...................................... 8-25
Enable Character Positions 128-159 as
Printable Characters .......................................................... 8-25
Disable Character Positions 128-159 as
Printable Characters .......................................................... 8-25
Epson FX Printer Emulation Mode 8-2
Enable Character Positions 0-31 and 128-159 as
Printable Characters ......................................................... 8-26
Disable Character Positions 0-31 and 128-159 as
Printable Characters ......................................................... 8-26
Print Enhancement Commands ................................................ 8-26
Select Expanded Print for One Line ................................... 8-26
Cancel Expanded Print ....................................................... 8-27
Select Expanded Print Until Canceled by ESC W NUL .... 8-27
Cancel Expanded Print ....................................................... 8-27
Select Double-High Print .................................................... 8-27
Cancel Double-High Print .................................................. 8-27
Select Compressed Print ..................................................... 8-27
Cancel Compressed Print .................................................... 8-28
Select Letter-Quality Print .................................................. 8-28
Cancel Letter-Quality Print ................................................ 8-28
Select Text-Underline Print ................................................ 8-28
Cancel Text-Underline Print ............................................... 8-28
Select Boldface Print .......................................................... 8-28
Cancel Boldface Print ......................................................... 8-29
Select Shadow Print ............................................................ 8-29
Cancel Shadow Print .......................................................... 8-29
Select Superscript Print ...................................................... 8-29
Cancel Superscript Print ..................................................... 8-29
Select Subscript Print .......................................................... 8-29
Cancel Subscript Print ........................................................ 8-29
Select Italic Print ................................................................ 8-30
Cancel Italic Print ............................................................... 8-30
Select Master Print Mode ................................................... 8-30
Graphics Commands ................................................................ 8-31
Select 60 dpi Graphics ........................................................ 8-31
Select 9-Pin 60 dpi Graphics .............................................. 8-32
Select 120 dpi Graphics ...................................................... 8-32
Select 9-Pin 120 dpi Graphics ............................................ 8-32
Select High-Speed 120 dpi Graphics .................................. 8-32
Select 240 dpi Graphics ...................................................... 8-32
Select Graphics Mode m ..................................................... 8-33
Reassign Graphics Mode .................................................... 8-33
Epson FX Printer Emulation Mode 8-3
Introduction
This chapter describes the Epson FX printer emulation mode. This emulation mode is selectable from the printer setup menu as described in Chapter 2. This mode enables your printer to emulate most of the functions of an Epson FX printer with the following considerations: q The escape sequence for font selection is ESC k n.
q The escape sequence for selecting ribbon color is ESC r n.
q The escape sequence for enabling a printable character at 0 - 31 hex is ESC 6.
q The escape sequence for enabling a printable character at
128 - 256 hex is ESC I SOH.
q The escape sequence for selecting an international character set is ESC R n.
q The Epson FX emulation uses standard pitch and point for superscript and subscript characters.
q The Epson FX emulation’s compressed print size is 17.1 cpi only.
q The Epson FX emulation supports all Model 8900 global commands.
q User selectable automatic carriage return on line feed mode is supported.
q Factory selected power-up defaults for the Model 880 emulation are:
— Auto LF — OFF
— Auto CR — OFF
Epson FX Printer Emulation Mode 8-4
— Slashed zeros — OFF
— The last form setting change made via the control panel is retained and restored at power -up.
— The right-half character set defaults to PC1 at power-up.
q The following escape sequences are not supported:
— The download characters command sequence ESC & NUL data
— The copy ROM character set to RAM Roman command sequence ESC : 0 0 0
— The copy ROM character set to RAM San Serif command sequence ESC : 0 1 0
— The select normal character set comand sequence ESC % 0
— The select user-defined character set command sequence
ESC % 1
— The select cut-sheet feeder mode command sequence
ESC EM 0
— The disable cut-sheet feeder mode command sequence
ESC EM 4
— The set one-half print speed mode to on or off command sequence ESC s n
Epson FX Printer Emulation Mode 8-5
Epson FX Printer Emulation Commands
Your printer, when operating in the Epson FX emulation mode, can respond to both escape-sequence commands and the standard US
ASCII control characters. The following table lists the FX printer commands.
Command
Printer Operation
DC1
DC3
BEL
CAN
DEL
ESC @
ESC =
ESC >
ESC #
ESC <
ESC U SOH
ESC U NUL
Epson FX Emulation Commands
Command Name
Select Printer
Deselect Printer
Sound Bell
Cancel Line
Delete Character
Initialize Printer
Set MSB to 0
Set MSB to 1
Cancel MSB Control
Select Unidirectional Printing for One
Line Only
Select Unidirectional Printing
Cancel Unidirectional Printing
Form Format
ESC C n
ESC C NUL n
ESC N n
ESC O
Font Selection
ESC k SOH
ESC k NUL
Margin Control
ESC a NUL
ESC a STX
ESC a ETX
ESC a SOH
ESC 1 n
ESC Q n
Set Form Length to n Lines
Set Form Length to n Inches
Select Automatic Perforation Skip
Cancel Automatic Perforation Skip
Select LQ Gothic Font
Select LQ Courier Font
Select Left Margin Justification
Select Right Margin Justification
Select Full Justification
Select Text Centering
Set Left Margin at Column n
Set Right Margin at Column n
Epson FX Printer Emulation Mode 8-6
Command
Epson FX Emulation Commands (continued)
Command Name
Horizontal Motion
BS
HT
CR
ESC $ n1 n2
ESC \ n1 n2
ESC D nl...n32 NUL
ESC D NUL
Backspace
Tab Horizontally
Carriage Return
Set Absolute Print Position
Set Relative Print Position
Set Horizontal Tab Stops
Clear All Horizontal Tab Stops
Vertical Motion
LF
FF
VT
ESC J n
ESC B n1...n16 NUL
Line Feed
Form Feed
Tab Vertically
Perform n/216-Inch Line Feed
Set Vertical Tab Stops
ESC / c Select Vertical Tab Channel
ESC b c n1...n16 NUL Set VTC Tab Stops
ESC b c NUL Clear All VTC Tab Stops
ESC B NUL Clear All Vertical Tab Stops
Character Pitch
ESC P
ESC M
ESC SP n
Line Spacing
ESC 2
ESC 0
ESC 1
ESC A n
ESC 3 n
Character Set
ESC t NUL
ESC t SOH
ESC R n
ESC 6
ESC 7
Set Character Pitch to 10 cpi
Set Character Pitch to 12 cpi
Set Intercharacter Space
Set Line Spacing to 6 lpi
Set Line Spacing to 8 lpi
Set Line Spacing to 7/72 Inch
Set Line Spacing to n/72 Inch
Set Line Spacing to n/216 Inch
Select Italic Character Set
Select Extended Graphics Character Set
Select International Character Set
Enable Character Positions 128-159 as
Printable Characters
Disable Character Positions 128-159 as
Printable Characters
Epson FX Printer Emulation Mode 8-7
ESC I SOH
Epson FX Emulation Commands (continued)
Command
Character Set (continued)
Command Name
Enable Character Positions 0-31 and
128-159 as Printable Characters
ESC I NUL Disable Character Positions 0-31 and
128-159 as Printable Characters
Print Enhancement
SO
ESC SO
DC4
ESC W SOH
Select Expanded Print for One Line
Select Expanded Print for One Line
Cancel Expanded Print
Select Expanded Print Until Canceled by
ESC W NUL
Cancel Expanded Print
Select Double-High Print
ESC W NUL
ESC w SOH
ESC w NUL
SI
ESC SI
DC2
ESC x SOH
ESC x NUL
Cancel Double-High Print
Select Compressed Print
Select Compressed Print
Cancel Compressed Print
Select Letter-Quality Print
Cancel Letter-Quality Print
Select Text-Underline Print
Cancel Text-Underline Print
ESC - SOH
ESC - NUL
ESC G
ESC H
ESC E
ESC F
ESC S NUL
ESC T
ESC S SOH
ESC T
ESC 4
ESC 5
ESC ! n
Select Boldface Print
Cancel Boldface Print
Select Shadow Print
Cancel Shadow Print
Select Superscript Print
Cancel Superscript Print
Select Subscript Print
Cancel Subscript Print
Select Italic Print
Cancel Italic Print
Select Master Print
Epson FX Printer Emulation Mode 8-8
Epson FX Emulation Commands (concluded)
Command
Raster Graphics
ESC K n1 n2
ESC ^ NUL n1 n2
ESC L n1 n2
ESC ^ SOH n1 n2
ESC Y nl n2
ESC Z n1 n2
ESC * m n1 n2
ESC ? s n
Command Name
Select 60 dpi Graphics
Select 9-Pin 60 dpi Graphics
Select 120 dpi Graphics
Select 9-Pin 120 dpi Graphics
Select High-Speed, 120 dpi Graphics
Select 240 dpi Graphics
Select Graphics Mode m
Reassign Graphics Mode
Epson FX Emulation Command
Descriptions
The following paragraphs describe the Epson FX emulation commands.
The command formats are listed following each command description.
Many of the escape-sequence commands contain one or more variables to specify various command parameters. These variables are italicized in the command formats to indicate that they can be set to more than one value.
Printer Operation Commands
The printer operation commands provide printer control functions including printer selection and initialization. These commands allow the host computer to control the basic printer functions.
Note: For clarity, the individual terms of each escape sequence are separated by spaces throughout this chapter. When you enter these commands, you must omit these spaces.
Epson FX Printer Emulation Mode 8-9
Select Printer
Control character: DC1
Hexadecimal: 11
This command reselects the printer after it has received a Deselect command, unless the printer has been placed offline via the control panel On Line switch.
Deselect Printer
Control character: DC3
Hexadecimal: 13
This command sets the printer to its deselected state until it receives a Select Printer command from the host. After the printer has received this command, it cannot be placed online via the control panel On
Line switch.
Sound Bell
Control character: BEL
Hexadecimal: 07
This command causes the printer to sound a short tone.
Cancel Line
Control character: CAN
Hexadecimal: 18
This command removes all characters except control characters from the current print buffer contents.
Delete Character
Control character: DEL
Hexadecimal: 7F
This command removes the last text character from the current print buffer contents, but does not affect any control character.
Epson FX Printer Emulation Mode 8-10
Initialize Printer
Escape sequence: ESC @
Hexadecimal: 1B 40
This command resets the printer to its initial state and clears the print buffer of all printable data from the last line printed before the command was received.
Set Most Significant Bit to Zero
Escape sequence: ESC =
Hexadecimal: 1B 3D
Some computers, when sending characters from 7-bit character sets, automatically set the most significant bit (MSB) of each character to 1.
This causes the printer to print all received characters as italics or character graphics. To prevent this, the Set Most Significant Bit to
Zero command sets the MSB of each subsequently received character to 0.
Set Most Significant Bit to One
Escape sequence: ESC >
Hexadecimal: 1B 3E
This command sets the MSB of all subsequently received characters to 1. This enables the printer to select characters from either the italics character set or the extended graphics character set.
Epson FX Printer Emulation Mode 8-11
Cancel Most Significant Bit Control
Escape sequence: ESC #
Hexadecimal: 1B 23
This command cancels printer control of the received character MSB and returns control to the computer. This enables the computer to select characters from either the GL half or the GR half of the selected printer character set.
Select Unidirectional Printing for One Line Only
Escape sequence: ESC <
Hexadecimal: 1B 3C
This command selects unidirectional printing for one line only. Upon receiving this command, the printer moves its printhead to the left margin and begins printing. A CR control character cancels this command and returns the printer to the bidirectional print mode.
Select Unidirectional Printing
Escape sequence: ESC U
Hexadecimal: 1B 55
SOH
01
This command selects unidirectional printing. Upon receiving this command, the printer moves its printhead to the left margin and begins printing.
Cancel Unidirectional Printing
Escape sequence: ESC U
Hexadecimal: 1B 55
NUL
00
This command cancels the unidirectional print mode selected by the
Select Unidirectional Printing command and returns the printer to normal bidirectional printing.
Epson FX Printer Emulation Mode 8-12
Form Format Commands
The form format commands let you set the form length in either lines or inches. These commands also let you enable or disable the automatic perforation skip feature.
Set Form Length to n Lines
Escape sequence: ESC C
Hexadecimal: 1B 43 n
n
This command sets the form length to the number of lines specified by the variable n in the current line spacing. This command also sets the top-of-form position to the current line. The variable n can be any value in the range of 1 through 127.
Set Form Length to n Inches
Escape sequence: ESC C
Hexadecimal: 1B 43
NUL n
00 n
This command sets the form length to the number of inches specified by the variable n. The variable n can be any value in the range of
1 through 22.
Select Automatic Perforation Skip
Escape sequence: ESC N
Hexadecimal: 1B 43 n n
This command causes the printer to perform the following actions.
1. Skip the number of lines specified by the variable n and the current form parameter settings.
2. Print the next line at the first print line position of the following form.
Epson FX Printer Emulation Mode 8-13
Example. If the current form length setting is 66 lines and the current line spacing is 6 lpi, setting the value of n to 6 causes the printer to do the following.
1. Print 60 lines on the current form.
2. Skip 6 lines at the bottom of the current form.
3. Print the next text line at the first print line position of the following page.
Invoking any of the commands ESC O, ESC C n, or ESC C NUL n cancels the Select Automatic Perforation Skip command.
Cancel Automatic Perforation Skip
Escape sequence: ESC O
Hexadecimal: 1B 4F
This command cancels the functions set by the Select Automatic
Perforation Skip command.
Font Selection Commands
The font selection commands let you choose between the two printer-resident standard fonts.
Select Letter-Quality Gothic Font
Escape sequence: ESC k
Hexadecimal: 1B 6B
SOH
01
This command selects the printer-resident Gothic font and places the printer in the LQ print mode.
Select Letter-Quality Courier Font
Escape sequence: ESC k
Hexadecimal: 1B 6B
NUL
00
This command selects the printer-resident Courier font and places the printer in the LQ print mode.
Epson FX Printer Emulation Mode 8-14
Margin Control Commands
The margin control commands let you set parameters related to the left, right, bottom, and top margins and control print justification and text centering.
Select Left Margin Justification
Escape sequence: ESC a
Hexadecimal: 1B 61
NUL
00
This command causes the printer to justify any subsequent text to the left margin.
Select Right Margin Justification
Escape sequence: ESC a
Hexadecimal: 1B 61
STX
02
This command causes the printer to justify any subsequent text to the right margin.
Select Full Justification
Escape sequence: ESC a
Hexadecimal: 1B 61
ETX
03
This command causes the printer to add sufficient space to cause each print line to occupy the entire space between the left and right margins.
Select Text Centering
Escape sequence: ESC a
Hexadecimal: 1B 61
SOH
01
This command causes the printer to center each print line between the left and right margins.
Epson FX Printer Emulation Mode 8-15
Set Left Margin at Column n
Escape sequence: ESC 1
Hexadecimal: 1B 6C n n
This command sets the left margin at the position specified by the variable n. The minimum distance between the left and right margins is the width of one expanded 10 cpi character. Invoking this command clears all previously set horizontal tab stops and all previous characters from the current print buffer contents. The left margin position (n) can be at any column in the range of 1 through the column immediately to the left of the current right margin.
Set Right Margin at Column n
Escape sequence: ESC Q
Hexadecimal: 1B 51 n
n
This command sets the right margin at the position specified by the variable n. The minimum distance between the left and right margins is the width of one expanded 10 cpi character. Invoking this command clears all previously set horizontal tab stops and all previous characters from the current line of the receive buffer contents. The right margin position (n) can be at any column in the range of the column immediately to the right of the left margin through the right-most column, as determined by the current line width setting.
Epson FX Printer Emulation Mode 8-16
Horizontal Motion Commands
The horizontal motion commands control the horizontal motion of the printhead, including direction and distance of each movement.
The following paragraphs describe the horizontal motion commands.
Backspace
Control character: BS
Hexadecimal: 08
This command causes the printer to print the current print buffer contents and then move the print position one character to the left.
This command is valid at any point to the right of the left margin, but not at or to the left of the left margin. The printer ignores the Backspace command if either full or right margin justification has been selected.
Tab Horizontally
Control character: HT
Hexadecimal: 09
This command moves the print position to the next horizontal tab stop. These tab stops can be the ones set by the Set Horizontal Tab
Stops command or the ones set by the default horizontal tab stops.
The default tab stops are at 8-character intervals (in the default character size) between the left and right margins.
Carriage Return
Control character: CR
Hexadecimal: 0D
This command causes the printer to print the contents of the current print buffer and then return the printhead to the left margin. This command may be accompanied by a Line Feed command to move the printhead to the next print line position.
Epson FX Printer Emulation Mode 8-17
Set Absolute Print Position
Escape sequence: ESC $
Hexadecimal: 1B 24 n1 n1 n2 n2
This command sets the first character position of subsequently printed text at 1/60 inch or some multiple of 1/60 inch from the currently set left margin. The variables n1 and n2 form a two-byte hexadecimal value that specifies the absolute print position in 1/60 inch increments. After you decide the distance in inches from the left margin to a desired absolute print position, follow these steps to find the values of n1 and n2.
1. Multiply by 60 the absolute distance in inches from the left margin to the first character position to determine the distance
(d) in l/60 inch increments.
2. Divide the value determined in step 1 by 256 (d/256); the quotient and the remainder of d/256 are, respectively, the decimal values of n2 and n1.
3. Convert the decimal values of n2 and n1 to their hexadecimal equivalents.
Any setting beyond the right margin is ignored.
Set Relative Print Position
Escape sequence: ESC \
Hexadecimal: 1B 5C n1 n1 n2 n2
This command sets the distance from the current print position to the first character of all subsequent text. The variables n1 and n2 form a two-byte hexadecimal value which specifies the relative position in
1/120 inch increments.
To determine the values of n1 and n2, modify the procedure described for the Set Absolute Print Position command. In step 1 of this procedure, multiply the absolute distance by 120 instead of 60 to determine the distance (d) in 1/120 inch increments. For displacement to the left subtract d from 65,536. The printer ignores this command for values of n1 and n2 that would move the printhead outside the current margin boundaries.
Epson FX Printer Emulation Mode 8-18
Set Horizontal Tab Stops
Escape sequence: ESC D
Hexadecimal: 1B 44 n1...n32
n1...n32
NUL
00
This command clears all previously set horizontal tab stops and sets a new tab stop at each of the columns specified by the variables
n1...n32. Each of the variables n1 and n2 can be any value in the range of 1 through 127 for a 7-bit character set and 1 through 232 for an 8-bit character set. These variables must be listed in ascending order; that is, the value of each variable must be greater than the one preceding it. Any n value of 0 or less than that of the one preceding it terminates the command.
At power-up or upon receiving the Initialize Printer command, the printer automatically sets a horizontal tab stop at every eighth column. These are the default positions.
Clear All Horizontal Tab Stops
Escape sequence: ESC D
Hexadecimal: 1B 44
NUL
00
Vertical Motion Commands
The vertical motion commands are those that control the vertical movement of paper within the printer. This set of commands includes commands that allow you to select any of eight vertical tabulation channels (VTCs) and set up to 16 vertical tabs for each channel.
Line Feed
Control character: LF
Hexadecimal: 0A
This command causes the printer to print the current receive buffer contents and then position the printhead at the next print line.
Epson FX Printer Emulation Mode 8-19
Form Feed
Control character: FF
Hexadecimal: 0C
This command causes the printer to print the current print buffer contents and then move the printhead to the first print line of the next form.
Tab Vertically
Control character: VT
Hexadecimal: 0B
This command advances the print position vertically to the next vertical tab stop in the currently selected vertical tab channel (VTC).
If no VTC has been previously selected, the printer automatically uses VTC 0. If no tab stops have been set for the selected VTC, the printer advances the print position to the next print line.
Perform n/216 Inch Line Feed
Escape sequence: ESC J
Hexadecimal: 1B 4A n n
This command advances the print position vertically by a value in the range of 0/216 through 255/216 (0 through 1.18) inches.
Set Vertical Tab Stops
Escape sequence: ESC B
Hexadecimal: 1B 42 n1...n16
n1...n16
NUL
00
This command sets up to 16 vertical tab stops (in the current line spacing) for VTC 0. Subsequent line spacing changes do not affect these settings. Each of the variables (n1 through n16) can be any value in the range of 0 through 255.
The tab settings must be entered in ascending order (n1, n2, and so on); that is, the value of each succeeding n variable must be greater than the one preceding it. Any n variable with a value of 0 (00) terminates the command.
Epson FX Printer Emulation Mode 8-20
Select Vertical Tab Channel
Escape sequence: ESC /
Hexadecimal: 1B 2F c c
This command selects one of the eight preset VTCs. The printer subsequently uses this VTC for all vertical tab operations. The variable c specifies the VTC number (0 through 7).
Set VTC Tab Stops
Escape sequence: ESC b
Hexadecimal: 1B 42 c c n1...n16
n1...n16
NUL
00
This command sets up to 16 vertical tab stops (in the current line spacing) for the VTC specified by the variable c. Subsequent line spacing changes do not affect these settings. Each of the variables
(n1 through n16) can be any value in the range of 0 through 255.
The tab settings must be entered in ascending order (n1, n2, and so on), that is, the value of each, succeeding, a variable must be greater than the one preceding it. Any n variable with a value of 0 (00) terminates the command. The command ESC b c 0 clears all tab stops for the VTC specified by the variable c.
Clear All VTC Tab Stops
Escape sequence: ESC b
Hexadecimal: 1B 62 c c
NUL
00
This command clears all vertical tab stops from the VTC, specified by the variable c.
Clear All Vertical Tab Stops
Escape sequence: ESC B
Hexadecimal: 1B 42
NUL
00
This command clears all previously set vertical tab stops from VTC 0.
Epson FX Printer Emulation Mode 8-21
Character Pitch Commands
The character pitch commands let you choose between 10 and 12 cpi or adjust the horizontal spacing between characters. The character pitch is the horizontal distance from the center of one character to the center of the next character.
Set Character Pitch to 10 cpi
Escape sequence: ESC P
Hexadecimal: 1B 50
This command selects 10 cpi character pitch and cancels 12 cpi character pitch if it has been previously selected.
Set Character Pitch to 12 cpi
Escape sequence: ESC M
Hexadecimal: 1B 4D
This command selects 12 cpi character pitch for either draft or LQ printing.
Set Intercharacter Space
Escape sequence: ESC SP
Hexadecimal: 1B 20 n n
This command adjusts the space between text characters (for both draft and LQ printing) by an amount specified by the variable n where n can be any value in the range of 0 through 128. The design of each character of the standard character sets allows a certain amount of space to the right of the character. The Set Intercharacter
Space command can add one or more 1/120 inch units of space to the existing character space, depending upon the value of n. For example, if the variable n is set to 12, the printer adds 12/120 (0.1) inch of space to the existing space.
Epson FX Printer Emulation Mode 8-22
Line Spacing Commands
The line spacing commands let you choose between line spacing values of 6 or 8 lpi or any of several fractional line spacing values.
The line spacing is the vertical distance between print lines.
Set Line Spacing to 6 lpi
Escape sequence: ESC 2
Hexadecimal: 1B 32
This command sets the line spacing to 6 lpi (the default value) for all subsequent line feed operations.
Set Line Spacing to 8 lpi
Escape sequence: ESC 0
Hexadecimal: 1B 30
This command sets the line spacing to 8 lpi for all subsequent line feed operations.
Set Line Spacing to 7/72 Inch
Escape sequence: ESC 1
Hexadecimal: 1B 31
This command sets the line spacing to 7/72 inch for all subsequent line feed operations.
Set Line Spacing to n/72 Inch
Escape sequence: ESC A
Hexadecimal: 1B 41 n n
This command sets the line spacing, for subsequent line feed operations, to the value specified by n. The variable n can be any value in the range of 0 through 85.
Epson FX Printer Emulation Mode 8-23
Set Line Spacing to n/216 Inch
Escape sequence: ESC 3
Hexadecimal: 1B 33 n n
This command sets the line spacing to a value in the range of 0/216 through 255/216 (0 through 1.18) inches for subsequent line feed operations.
Character Set Commands
The character set commands enable you to select and use the standard
Epson FX character sets or international versions of these character sets. The following paragraphs describe the character set commands.
Select Italic Character Set
Escape sequence: ESC t
Hexadecimal: 1B 74
NUL
00
This command selects the Epson italic character set.
Select Extended Graphics Character Set
Escape sequence: ESC t
Hexadecimal: 1B 74
SOH
01
This command selects the Epson extended graphics character set.
Epson FX Printer Emulation Mode 8-24
Select International Character Set
Escape sequence: ESC R
Hexadecimal: 1B 52 n n
This command selects, for either draft or LQ printing, the international version of the ASCII character set specified by the variable n. The variable n can be any of the following values.
0 USA 7 Spain I
1 France
2 Germany
8
9
Japan
Norway
3 United Kingdom
4 Denmark I
5 Sweden
6 Italy
10 Denmark II
11 Spain II
12 Latin America
Enable Character Positions 128-159 as Printable Characters
Escape sequence: ESC 6
Hexadecimal: 1B 36
This command enables the printer to treat the characters in character positions 128-159 (C1 control characters) as printable characters.
Disable Character Positions 128-159 as Printable Characters
Escape sequence: ESC 7
Hexadecimal: 1B 37
Epson FX Printer Emulation Mode 8-25
Enable Character Positions 0-31 and 128-159 as Printable
Characters
Escape sequence: ESC I
Hexadecimal: 1B 49
SOH
01
This command enables the printer to treat the characters in character positions 0-31 (C0 control characters) and 128-159 (C1 control characters) as printable characters.
Disable Character Positions 0-31 and 128-159 as Printable
Characters
Escape sequence: ESC I
Hexadecimal: 1B 49
NUL
00
Print Enhancement Commands
The print enhancement commands enable your printer to improve or enhance the print quality. Print enhancements include such things as superscript and subscript text, text underlining, expanded, compressed, double-high, LQ, shadow, and emphasized print to make the print appear bolder. The following paragraphs describe the print enhancement commands.
Select Expanded Print for One Line
Control character: SO
Hexadecimal: 0E
Escape Sequence: ESC SO
Hexadecimal: 1B 0E
These commands select the expanded (double-wide) print mode for either draft or LQ printing. Either a Carriage Return or a Cancel
Expanded Print command cancels the expanded print mode; therefore, for two or more consecutive lines of expanded print you must invoke the command for each line.
Epson FX Printer Emulation Mode 8-26
Cancel Expanded Print
Control character: DC4
Hexadecimal: 14
This command cancels the expanded print mode previously selected by the Select Expanded Print for One Line commands (SO or ESC
SO). However, this command does not affect the expanded print mode invoked by the Select Expanded Print command ESC W SOH or the Select Master Print Mode command (ESC ! n).
Select Expanded Print Until Canceled by ESC W NUL
Escape sequence: ESC W
Hexadecimal: 1B 57
SOH
01
Cancel Expanded Print
Escape sequence: ESC W
Hexadecimal: 1B 57
NUL
00
This command disables the expanded print mode previously invoked by the Select Expanded Print command ESC W SOH.
Select Double-High Print
Escape sequence: ESC w
Hexadecimal: 1B 77
SOH
01
This command selects the double-high print mode for either draft or
LQ printing.
Cancel Double-High Print
Escape sequence: ESC w
Hexadecimal: 1B 77
NUL
00
Select Compressed Print
Control character: SI
Hexadecimal: 0F
Escape sequence: ESC SI
Hexadecimal: 1B 0F
Epson FX Printer Emulation Mode 8-27
These commands cause the printer to print characters at about 60 percent of their normal widths. For example, for a character pitch of
10 cpi, one inch of text contains about 17 characters instead of the normal 10. These commands are valid for either draft or LQ printing.
Cancel Compressed Print
Control character: DC2
Hexadecimal: 12
Select Letter-Quality Print
Escape sequence: ESC x
Hexadecimal: 1B 78
SOH
01
Cancel Letter-Quality Print
Escape sequence: ESC x
Hexadecimal: 1B 78
NUL
00
This command cancels LQ print and returns the printer to the draft print mode.
Select Text-Underline Print
Escape sequence: ESC -
Hexadecimal: 1B 2D
SOH
01
After receiving this command, the printer underlines all subsequent text characters (including the space character) until it receives a
Cancel Text-Underline Print command.
Cancel Text-Underline Print
Escape sequence: ESC -
Hexadecimal: 1B 2D
NUL
00
Select Boldface Print
Escape sequence: ESC G
Hexadecimal: 1B 47
Epson FX Printer Emulation Mode 8-28
Cancel Boldface Print
Escape sequence: ESC H
Hexadecimal: 1B 48
Select Shadow Print
Escape sequence: ESC E
Hexadecimal: 1B 45
Cancel Shadow Print
Escape sequence: ESC F
Hexadecimal: 1B 46
Select Superscript Print
Escape sequence: ESC S
Hexadecimal: 1B 53
NUL
00
This command selects the superscript print mode for either draft or
LQ printing. After receiving this command the printer prints each subsequent character in the upper part of the character space at about two-thirds its normal height.
Cancel Superscript Print
Escape sequence: ESC T
Hexadecimal: 1B 54
Select Subscript Print
Escape sequence: ESC S
Hexadecimal: 1B 53
SOH
01
This command selects the subscript print mode for either draft or LQ printing. After receiving this command the printer prints each subsequent character in the lower part of the character space at about two-thirds its normal height.
Cancel Subscript Print
Escape sequence: ESC T
Hexadecimal: 1B 54
Epson FX Printer Emulation Mode 8-29
Select Italic Print
Escape sequence: ESC 4
Hexadecimal: 1B 34
This command causes the printer to print characters from the Epson italic character set for either draft or LQ printing. This command is valid even if the printer has received an ESC t SOH command to invoke the Epson extended graphics character set; however, character graphics cannot be italicized.
Cancel Italic Print
Escape sequence: ESC 5
Hexadecimal: 1B 35
Select Master Print Mode
Escape sequence: ESC !
Hexadecimal: 1B 6B n n
This command selects a type style for LQ and draft-quality printing.
The variable n (a hexadecimal value) can be any valid combination of the following character pitches and print modes.
q 10 cpi — decimal 0, hexadecimal 00 q 12 cpi — decimal 1, hexidecimal 01 q Compressed — decimal 4, hexadecimal 04 q Shadow — decimal 8, hexadecimal 08 q Boldface — decimal 16, hexadecimal 10 q Expanded — decimal 32, hexadecimal 20 q Italic — decimal 64, hexadecimal 40 q Underline — decimal 128, hexadecimal 80
Epson FX Printer Emulation Mode 8-30
To select a valid combination of the listed character pitches and print modes, choose the items you wish to combine and add their values to find the correct value of n. After finding the decimal value of n, convert this value to its hexadecimal equivalent for use in the escape sequence.
For example, to select 12 cpi, expanded, underlined text characters, add the decimal values 1, 32, and 128 to obtain the sum, 161 (the value of n). The hexadecimal equivalent of 161 is A1 (from an 8-bit character table).
The following combinations are invalid.
q 10 cpi and 12 cpi q Boldface and LQ print
Graphics Commands
The Epson FX graphics feature provides commands that enable you to design your own images in any shape you desire. These commands allow you to create and adjust the density of various lines and patterns in various combinations. The following paragraphs describe the graphics commands.
To find the values of n1 and n2 for any of the following commands, modify the procedure described for the Select 60 dpi Graphics command in Chapter 4. In step 1 of the procedure, substitute the appropriate dot density value for 60.
Select 60 dpi Graphics
Escape sequence: ESC K
Hexadecimal: 1B 4B n1 n1 n2 n2
This command selects the 8-pin, 60 dpi graphics mode for the horizontal line length specified by the variable n1 n2.
Epson FX Printer Emulation Mode 8-31
Select 9-Pin 60 dpi Graphics
Escape sequence: ESC ^
Hexadecimal: 1B 5E
NUL n1
00 n1 n2 n2
This command causes the printer to print 9-pin graphics at 60 dpi.
Select 120 dpi Graphics
Escape sequence: ESC L
Hexadecimal: 1B 4C n1 n1 n2 n2
This command selects the 8-pin, 120 dpi graphics mode for the horizontal distance specified by the two-byte variable n1 n2.
Select 9-Pin 120 dpi Graphics
Escape sequence: ESC ^
Hexadecimal: 1B 5E
SOH n1
01 n1 n2 n2
This command causes the printer to print 9-pin graphics at 120 dpi.
Select High-Speed 120 dpi Graphics
Escape sequence: ESC Y
Hexadecimal: 1B 59 n1 n1 n2 n2
This command selects the 8-pin, high-speed 120 dpi graphics mode for the horizontal distance specified by the two-byte variable n1 n2.
This is identical to the 120 dpi graphics mode except that the printing speed is doubled.
Select 240 dpi Graphics
Escape sequence: ESC Z
Hexadecimal: 1B 5A n1 n1 n2 n2
This command selects the 8-pin, 240 dpi graphics mode for the horizontal distance specified by the two-byte variable n1 n2.
Epson FX Printer Emulation Mode 8-32
Select Graphics Mode m
Escape sequence: ESC *
Hexadecimal: 1B 2A m m n1 n1 n2 n2
This command selects the graphics mode specified by the variable m for the horizontal distance specified by the two-byte variable n1 n2.
The variable m can be any of the following values.
q NUL — 60 dpi normal speed q SOH — 120 dpi normal speed q STX — 120 dpi high speed q ETX — 240 dpi normal speed
Reassign Graphics Mode
Escape sequence: ESC ?
Hexadecimal: 1B 3F s s n n
This command allows the computer to switch between graphics modes. The variable s specifies the currently selected mode K, L, Y, or Z from the standard graphics escape sequences. The variable n specifies the new mode (0 through 3) specified in the ESC * commands.
Example. If the current mode is single-density and you wish to change to high-speed double density, use the escape sequence
ESC ? K 2, where K indicates single-density and 2 indicates high-speed double density.
Epson FX Printer Emulation Mode 8-33
9
Optional DEC LA 120 Emulation
Introduction .................................................................................... 9-2
DEC LA120 Emulation Commands ............................................... 9-2
Answerback Memory Function ...................................................... 9-5
New Line Mode .............................................................................. 9-5
Auto Wrap ...................................................................................... 9-6
Answerback Memory Message Load ............................................. 9-6
Optional Emulation Commands 9-1
Introduction
This chapter describes the optional DEC LA120 emulation mode. An optional emulation mode is selectable from the printer setup menu described in Chapter 2 or by global commands described in Chapter 3.
DEC LA120 Emulation Commands
This mode enables your printer to emulate most of the functions of the DEC LA120. Your printer, when operating in the DEC LA120 emulation mode, can respond to both escape-sequence commands and the standard US ASCII control characters. The following table lists the DEC LA120 printer commands.
DEC LA120 Commands
Command Name Command
Printer Operation
BEL
BS
CR
DC1
DC3
FF
LF
HT
VT
ESC [ 20 h
ESC [ 20 l
ESC [ 0 c or ESC [ c
CAN
ETX
ENQ
NUL or DEL
Sound Bell
Back space
Carriage Return
“Ready” Signal - Serial Communication
“Busy” Signal - Serial Communication
Form Feed
Line Feed
Horizontal Tab
Vertical Tab
Enable auto line feed
Disable auto line feed
Product ID Request (transmit response is ESC [ ? 2 c)
Line Cancel
Used with ETX/ACK Busy Protocol
Enquiry: Transmit Answerback Message
No Operation (fill character)
Optional Emulation Commands 9-2
DEC LA120 Commands (continued)
Command Command Name
Form Format and Margin Control
ESC [ N t Set Form Length to N Lines
ESC [ N r
ESC [ ; N r
ESC [ N1; N2 r
Set Top Margin to Line N
Set Bottom Margin to Line N
Set Top and Bottom Margins to Line N1 and Line N2
ESC [ N s
ESC [ N ; 0 s
}
Set Left Margin to Column N
ESC [ ; N s
ESC [ 0 ; N s
}
Set Right Margin to Column N
ESC [ N1; N2 s
Horizontal Tab Sequences
Set Left and Right Margins to Column N1 and
Column N2
ESC [ N ’
ESC [ N a
Advance Active Column Absolute to
Column N
Advance Active Column Forward to
ESC H or ESC 1
ESC [ N1; N2;...Nk u
Column N
Set Horizontal Tab at Active Column
Set Horizontal Tab Stops at Columns
ESC [ 2 g
ESC [ 3 g
ESC 2
ESC [ g or ESC [ 0 g
}
Clear All Horizontal Tabs
Clear Horizontal Tab at Active Column
Horizontal Pitch Sequences
ESC [ 5 w Set Character Pitch to 5 cpi
ESC [ 6 w
ESC [ 7 w
Set Character Pitch to 6 cpi
Set Character Pitch to 6.6 cpi
Set Character Pitch to 8.25 cpi ESC [ 8 w
ESC [ w
ESC [ 0 w
ESC [ 1 w
}
Set Character Pitch to 10 cpi
Optional Emulation Commands 9-3
DEC LA120 Commands (concluded)
Command Command Name
Horizontal Pitch Sequences (continued)
ESC [ 2 w Set Character Pitch to 12 cpi
ESC [ 3 w
ESC [ 4 w
Set Character Pitch to 13.2 cpi
Set Character Pitch to 16.7 cpi
Vertical Tab Sequences
ESC [ N d
ESC [ N e
ESC J or ESC 3
ESC [ N1 v
ESC [ N1; N2 v
ESC [ N1; N2;...Nk v
ESC [ 4 g or ESC 4
ESC [ 1 g
ESC E
ESC D
Set Active Line to Line N
Advance Active Line Forward to Line N
Set Vertical Tab at Active Line
Set Vertical Tab at Line N1
Set Vertical Tab at Line N1 and Line N2
Clear All Vertical Tabs
Clear Vertical Tab at Active Line
Set Active Column to Left Margin and Increment
Active Line
Increment Active Line
Vertical Pitch Sequences
ESC 4 z
ESC 5 z
ESC 6 z
Set Vertical Pitch to 2 lpi
Set Vertical Pitch to 3 lpi
Set Vertical Pitch to 4 lpi
ESC z
ESC 0 z
}
Set Vertical Pitch to 6 lpi
ESC 1 z
ESC 2 z Set Vertical Pitch to 8 lpi
Set Vertical Pitch to 12 lpi ESC 3 z
Character Set Selection Sequences
ESC ( B Select U.S.A Character Set
ESC ( A
ESC ( C
Select United Kingdom Character Set
Select Finland Character Set
ESC ( E
ESC ( H
ESC ( K
ESC ( R
Select Norway/Denmark Character Set
Select Sweden Character Set
Select German Character Set
Select France Character Set
SI
SO
Select Primary Character Set
Select Secondary Character Set
Optional Emulation Commands 9-4
Command
ESC =
ESC >
EOT
SUB
DLE
DEC LA120 Commands Not Recognized in
DEC LA120 Emulation
Command Name
Enable Alternate Keyboard
Disable Alternate Keyboard
End of Transmission
Substitute
Data Link Escape
Answerback Memory Function
The DEC LA120 emulation provides, as an LA120 feature, an answerback memory (ABM) that can be programmed with a message of up to 30 characters. If a message is programmed, it is transmitted when the ASCII character ENQ is received. The ABM is stored in the printer’s nonvolatile memory and is programmable with an escape sequence when the ABM load setup parameter (ABM MSG
LOAD) of the LA120 emulation is turned on.
Escape sequence: ESC [
Hexadecimal: 1B 5B
Q
51 text text
NUL
00 where: text can contain up to 30 ASCII characters, and the NUL character is used as the string terminator.
Note: The printer displays an escape sequence error message if text exceeds 30 ASCII characters. The default message ESC [ ? 2 c is set to the Product Identification Response.
New Line Mode
This parameter controls how the DEC LA120 emulation responds to line feed and carriage return commands.
For the CR NEW LINE selection, a line feed is performed in addition to a carriage return when a carriage return control code is received.
Optional Emulation Commands 9-5
When LF NEW LINE is selected and a line feed command is received, a carriage return is performed in addition to the line feed. Carriage returns are also performed with vertical tabs and form feeds when LF
NEW LINE is selected.
For the NO NEW LINE selection, a carriage return only is performed upon receipt of a carriage return control code, and a line feed only is performed upon receipt of a line feed control code.
Note: Selection of CR NEW LINE, LF NEW LINE, or NO NEW
LINE, deselects or disables the previous selection.
Auto Wrap
This parameter, when turned on, performs an automatic new line at the right margin if the line length of the line to be printed causes the
DEC LA120 emulation to attempt to print beyond the right margin.
When the parameter is turned off, attempts to print beyond the right margin will cause characters to be lost.
Answerback Memory Message Load
This parameter, when turned on, allows the answerback memory to be programmed. When turned off, answerback memory programming is inhibited.
Optional Emulation Commands 9-6
10
Communication Interfaces
Introduction .................................................................................. 10-3
Data-Transfer Operations ............................................................. 10-4
Parallel Communication Interface ................................................ 10-6
Parallel Interface Signal Descriptions ..................................... 10-7
Data Signals ........................................................................ 10-8
Data Strobe Signal .............................................................. 10-8
Acknowledge Signal ........................................................... 10-8
Busy Signal ......................................................................... 10-9
Fault Signal ......................................................................... 10-9
Initialize Signal ................................................................... 10-9
Paper-Empty Signal .......................................................... 10-10
Select Signal ..................................................................... 10-10
Verify Signal ..................................................................... 10-10
Ground Signals ................................................................. 10-10
Parallel Interface Communication Protocol .......................... 10-10
Data-Transfer Timing ....................................................... 10-10
Initialize Sequence ............................................................ 10-13
Error Conditions ............................................................... 10-14
Serial Communication Interface ................................................. 10-14
Serial Interface Connector ..................................................... 10-15
Interface Connection .............................................................. 10-15
Interface Signal Descriptions ................................................ 10-16
Protective Ground ............................................................. 10-16
Signal Ground ................................................................... 10-16
Transmit Data Signal ........................................................ 10-16
Receive Data Signal .......................................................... 10-16
Request to Send Signal ..................................................... 10-16
Clear to Send Signal ......................................................... 10-17
Data Set Ready Signal ...................................................... 10-17
Data Carrier Detect Signal ................................................ 10-17
Data Terminal Ready Signal ............................................. 10-17
Communication Interfaces 10-1
Interface Data Transmission Rate .......................................... 10-18
Serial Data Format ................................................................. 10-18
Serial Interface Busy-Handling Protocols ............................. 10-20
Flow-Control Busy-Handling Protocols ........................... 10-20
Direct-Connect Busy-Handling Protocols ........................ 10-21
Optional Communication Interfaces ........................................... 10-21
RS-422 Communication Interface ......................................... 10-22
Current Loop Communication Interface ................................ 10-22
Communication Interfaces 10-2
Introduction
This chapter describes the communication interfaces and provides information about their use with your printer.
The communication interface transfers data in a fixed and orderly manner between the host and the printer. Communication interfaces are of two general types: parallel and serial. Parallel interfaces transfer all bits of a data byte simultaneously. Serial interfaces transfer data in bit-serial fashion, one bit at a time.
To provide communication compatibility with a wide range of systems, your printer offers a choice of any of the following standard and optional communication interfaces.
q Parallel interface, standard.
q RS-232 or RS-423 serial interface, standard.
q RS-422-A serial interface, optional.
q Current loop (TTY) interface, optional.
Communication Interfaces 10-3
The following figure shows simplified block diagrams of two types of data-communication systems and their associated communication interfaces.
host
RS-232-C serial interface modem long-distance system telephone lines modem
RS-232-C serial interface printer host local system parallel interface local printer communication interfaces (simplified block diagrams)
The long-distance system typically uses telephone lines to transfer data from the host to the printer. Because this system is limited to bit-serial data-transfer operations, it is necessary that the host-to-modem interface at one end and the modem-to-printer interface at the other end be serial interfaces. The local system uses a parallel interface to connect a local printer directly to the host.
Data-Transfer Operations
The data-transfer rate can vary from one system to another, depending on such factors as the host data-transfer rate, the type of communication interface used, and the distance over which the data is transferred. To compensate for these transfer-rate variations, the printer provides a receive buffer to temporarily store received data prior to printing it.
Communication Interfaces 10-4
The following figure shows a simplified block diagram of the printer receive buffer and the data path between the host and the print mechanism.
host
communication interface receive buffer printer print mech.
printer receive buffer and associated data path
The host transfers characters in the form of 7-bit or 8-bit data bytes, depending on which character set is selected. To ensure that no data is lost between the host and the printer, all data-transfer operations involve the following steps.
1. The host transfers characters via the communication interface into the printer receive buffer and then the printer transfers them at a fixed rate from the receive buffer to the print mechanism.
2. If the host-to-receive buffer transfer rate exceeds the buffer-to-print mechanism transfer rate, the receive buffer eventually approaches its capacity.
3. The printer signals the host to suspend data transfer operations as the printer continues to transfer characters at a fixed rate from the receive buffer to the print mechanism.
4. When the supply of characters in the receive buffer is sufficiently depleted, the printer signals the host that it is ready to receive additional data.
Communication Interfaces 10-5
Parallel Communication Interface
The parallel communication interface uses a 36-pin connector
(shown in the following figure) that transfers both data and control signals between the printer and the host computer. The parallel interface connector is located at the rear of the printer and provides bail latches to secure the interface cable connector. The table on the following page lists the parallel interface signals, their names, their pin assignments, and their sources (host or printer). The paragraphs that follow the table describe these signals.
The parallel interface can only transfer data from the host to the computer and is limited to a distance of approximately 6 feet (1.8
meters). However, because the parallel interface provides separate lines for each character bit, it can transfer an entire character in a single data-transfer operation. Thus, the parallel interface is much faster than a serial interface and is ideally suited for connecting local printers in a computer system.
Communication Interfaces 10-6
Signal
STROBE-
DATA1
DATA2
DATA3
DATA4
DATA5
DATA6
DATA7
DATA8
ACK-
BUSY
PE
SLCT
LGND
CGND
PARVCC
INIT-
FAULT-
GND
VFIN
VFOUT
Name
Parallel Interface Signals
Data strobe
Data bit 1
Data bit 2
Data bit 3
Data bit 4
Data bit 5
Data bit 6
Data bit 7
Data bit 8
Acknowledge
Printer busy
Paper empty
Select
Logic ground
Chassis ground
+5 volts dc*
Initialize
Fault
Ground
Verify in
Verify out
Pin
1
13
16
17
18
9
10
11
12
31
32
33
34
35
7
8
5
6
2
3
4
Notes: Pins 14, 15, and 36 are not used.
*+5vdc supplied through 51 ohm resistor.
Return
19
23
24
25
26
20
21
22
27
28
29
30
Printer
Host
Printer
Host
Printer
Parallel Interface Signal Descriptions
As indicated in the preceding table, the data signals and some of the control signals require both a signal line and a return line. This arrangement provides efficient, trouble-free operation and minimizes electrical noise on the signal lines.
Some parallel interface signals are active when low, as indicated by a hyphen (-) attached as a suffix to the signal name. All other signals
(except the data signals) are active when high. Since the data transferred over the data lines consists of binary ones and zeros (highs and lows), the state of these lines depends on the data being sent. The following paragraphs describe the parallel interface signals.
Source
Host
Host
Host
Host
Host
Host
Host
Host
Host
Printer
Printer
Printer
Printer
Communication Interfaces 10-7
Data Signals
Character transfers from the host to the receiver consist of 8-bit data bytes (DATAl through DATA8) traveling in parallel over the eight data lines. DATAl is the least significant bit and DATA8 is the most significant bit. If a 7-bit character set has been selected, the DATA8 line remains low for all data transfer operations.
Data Strobe Signal
The data strobe (STROBE-) is a host-generated pulse that clocks data into the printer receive buffer. After writing data to the parallel interface data lines (DATAl through DATA8), the host monitors the busy line, and if BUSY is not active (low), the host places a strobe pulse on the interface. This strobe pulse must not occur before the data has had time to stabilize on the data lines (approximately 0.5
microseconds). The leading (negative-going) edge of STROBEclocks the data into the printer receive buffer and activates BUSY.
Acknowledge Signal
The acknowledge (ACK-) signal from the printer indicates to the host that the printer has received the last character sent and is ready to accept another character. Unless the printer is busy, as described in the following paragraph, the printer activates ACK- (sets it low) under any of the following conditions.
q After receiving a character from the host q Each time the printer is placed online q At the completion of a host-generated initialization cycle
Communication Interfaces 10-8
Busy Signal
This active-high signal from the printer indicates that the printer is busy and cannot accept additional data. During data-transfer operations, the leading edge of the host-generated strobe signal activates BUSY for each character-transfer cycle. The printer sends an acknowledge pulse and deactivates BUSY at the completion of each character-transfer operation (unless the printer is otherwise busy).
BUSY is active (high) under any of the following conditions.
q The host has clocked a character into the receive buffer, but the printer has not yet acknowledged it.
q The receive buffer is filled to capacity.
q The printer is in its offline state.
q The printer is out of paper or a printer error condition exists.
q One of the control panel menus has been invoked and the printer has not been returned to its online state.
Fault Signal
The fault (FAULT-) signal from the printer indicates to the host that an error condition (such as a mechanical failure or a receive buffer overflow) exists in the printer. A paper-out condition activates both
FAULT- and PE to indicate the condition to the host
Initialize Signal
The initialize (INIT-) signal from the host causes the printer to execute a power-up reset sequence. During this sequence, the printer performs its normal self-tests and then assumes its online condition.
Since INIT- is a host-generated signal, the conditions under which it is generated depend on the type of computer serving as host.
Communication Interfaces 10-9
Paper-Empty Signal
The paper-empty (PE) signal from the printer indicates that the paper supply is empty. The printer activates this signal in combination with the fault signal to indicate the paper-empty condition to the host.
Select Signal
The select (SLCT) signal from the printer indicates to the host that the printer is online and ready to receive data. The completion of either a normal power-up operation or a host-generated initialization cycle activates SLCT.
Verify Signal
The verify signal confirms proper connection of the parallel interface cable between the host and the printer. The verify in (VFIN) and verify out (VFOUT) pins are connected together inside the printer to form a loopback circuit. The host sends VFIN to the printer and, if the cable is connected properly, the printer returns the signal as VFOUT.
Ground Signals
The logic ground (LGND) connects to the printer power supply logic ground to provide a common reference point for all interface signals.
The chassis ground (CGND) connects to the ac power cord safety ground to provide protection for the printer and personnel.
Parallel Interface Communication Protocol
The parallel interface communication protocol is a set of conventions that ensures compatibility between the printer and the host computer.
The following paragraphs describe these conventions.
Data-Transfer Timing
Because the parallel interface transfers all bits of a character simultaneously, correct timing is important to prevent data loss or corruption. When the host senses that BUSY is inactive (low), the host can initiate a character-transfer cycle on the interface.
Communication Interfaces 10-10
The following figure shows the timing sequence for host-to-printer character-transfer operations. The table on the following page lists the timing requirements for the operation.
DATA1-8 a
â–² b
â–² â–² c
â–² d valid data e f g
â–² â–² h valid data
STROBE-
BUSY
ACK-
â–² reference line parallel data timing sequence
The reference points, a through h in the preceding figure, are keyed to the table on the following page and to the following character-transfer sequence.
1. The host writes a character to the parallel data lines (a). (The data stabilization time, a-b, must elapse before the transfer cycle can begin and the minimum data hold time, b-c, must elapse before the host can write a subsequent character.)
2. After writing the character to the interface, the host monitors the
BUSY line to ensure that the printer is ready to receive a character.
If BUSY is inactive, and the required data stabilization time has elapsed, the host activates STROBE- to begin the transfer cycle.
The leading edge of STROBE- (b) clocks the character into the printer receive buffer and activates BUSY.
Communication Interfaces 10-11
3. The printer activates ACK- (e) to signal the host that the receive buffer has received the character.
4. If the character does not fill the receive buffer, the printer deactivates BUSY and ACK- (f) to notify the host that the transfer operation is complete. The host can then initiate another data-transfer cycle.
If a character-transfer cycle fills the printer receive buffer, BUSY remains active until the buffer empties to the ready point. The printer then deactivates BUSY to allow the host to initiate another character-transfer cycle.
Item
DATA1-8
STROBE-
BUSY
ACK-
Parallel Interface Timing Requirements a-b b-c b f
Ref.
a b-d b-h b e-f
Timing Requirements
The host writes a character to the interface.
Data stabilization time, 0.5
µ s min.
Data hold time, 0.5
µ s min.
Leading edge must not occur in less than
0.5
µ s after the character has been written to the interface. This allows time for the data to stabilize.
Minimum pulse width, 1.0
µ s.
Minimum time between pulses, 1.0
µ s.
Leading edge occurs within 100 ns after the leading edge of STROBE-.
Trailing edge must occur before the host can strobe the next character into the receive buffer. For normal write cycles
(receive buffer not full), this occurs at
10
µ s min., 500
µ s nom., and 1000
µ s max. after the leading edge of STROBE-.
Pulsewidth: 2.0 µ s min., 3.0 µ s nom., and 6.0
µ s max.
Communication Interfaces 10-12
Item
Parallel Interface Timing Requirements (continued)
Ref.
Timing Requirements f Trailing edge must occur before the host can strobe the next character into the receive buffer. For normal write cycles
(receive buffer not full), this occurs at 10
µ s min., 500
µ s nom., and 1000
µ s max. after the leading edge of STROBE-.
DATA1-8 g
STROBEh
The host writes the next character to the interface. This can occur at any time after the data stabilization time and hold time of the previous character have elapsed. (See Reference items a-b and
b-c on the preceding page.)
The host places the next strobe pulse on the interface to initiate the next charactertransfer operation.
Initialize Sequence
The initialize sequence is a host-generated power-up reset sequence.
When the host activates INIT-, the printer performs the following sequence.
1. Interrupts any ongoing operation.
2. Assumes the offline state.
3. Executes the normal power-up self-test routine.
4. Returns to the online state.
Communication Interfaces 10-13
Error Conditions
FAULT- and PE are printer status lines. The printer activates FAULTto indicate a mechanism failure, such as a paper jam, and deactivates it when the error is corrected. After the paper supply is depleted, the printer activates both PE (paper empty) and FAULT- to indicate the paper-empty condition. Reloading paper causes the printer to deactivate the signals.
Activation of either FAULT- or PE also activates BUSY to indicate that the printer cannot receive data. If the host attempts to transfer a single character during this time, the byte remains on the interface data lines until the error condition is cleared. The printer neither prints the character nor activates ACK-. If the host attempts to send multiple characters during this time, the printer accepts only one character.
Note: The information in the following paragraph entitled “Serial
Communication Interface” is valid for either the RS-232 or the
RS-423 serial interface.
Serial Communication Interface
Your printer provides a 25-pin serial interface connector (shown in the following figure) at the rear of the printer. This connector carries both control and data information between the printer and the interface cable. The table on the following page lists the serial communication interface signals, their names, their interface connector pin assignments, and their sources.
13 12 11 10 9 8 7 6 5 4 3 2 1
25 24 23 22 21 20 19 18 17 16 15 14
serial interface connector
Communication Interfaces 10-14
Serial Interface Connector
The serial communication interface transfers either 7-bit or 8-bit character information in an asynchronous, bit-serial format. This format is useful for transferring data over long distance lines via data communication devices such as modems, but it can also be used to transfer data directly between the host and the printer. The following table lists the serial interface signals.
Serial Interface Signals
Signal Name
PG Protective ground
EIA CCITT Pin
AA 101 1
TD
RD
RTS
CTS
DSR
SG
DCD
R/B
DTR
Transmit data
Receive data
Request to send
Clear to send
Data set ready
Signal ground
Data carrier detect
Ready/busy
Data terminal ready
BA
BB
CA
CB
CC
AB
CF
—
CD
103
104
105
106
107
102
109
—
8
11
108.2
20
2
3
4
5
6
7
Source
Printer
Host
Printer
Host
Host
Host
Printer
Printer
Interface Connection
You can connect your printer to the host computer either directly via an interface cable or through a system of modems and telephone lines with an interface cable at each end of the system. The setup menu structure provides settings (DIRECT CONNECT and MODEM
CONNECT) for each of these choices.
Communication Interfaces 10-15
Interface Signal Descriptions
The following paragraphs describe the serial interface signals.
Protective Ground
The protective ground (PG) line is connected directly to the power cord ground to provide protection for the equipment and personnel.
Signal Ground
The signal ground (SG) line is connected to the printer power supply ground to provide a common reference level for all interface signals except protective ground.
Transmit Data Signal
The transmit data (TD) line transfers bit-serial data from the printer to the host via the data communication equipment. During times when no data appears on the TD line, the line is held in a mark condition.
Receive Data Signal
The receive data (RD) line transfers bit-serial data from the host to the printer via the data communication equipment. During times when no data appears on the RD line, the line should be held in a mark condition.
Request to Send Signal
The printer generates the request to send (RTS) signal to condition the data communication equipment to transmit data. When the printer is in the DIRECT CONNECT mode, this control signal is on at all times following printer power-up and self-test completion.
When the printer is in the MODEM CONNECT mode, the printer online state holds RTS on and the printer offline state holds RTS inactive. (The DIRECT CONNECT and MODEM CONNECT modes are selected during printer setup via the Setup/Test switch.)
Communication Interfaces 10-16
Clear to Send Signal
The host computer generates the clear to send (CTS) signal to indicate that it can receive data from the printer. In the DIRECT
CONNECT mode, the printer ignores this signal. In the MODEM
CONNECT mode, CTS must be on for the printer to send data. If the interface cable does not provide a connection to this pin, the printer holds CTS in its on state.
Data Set Ready Signal
The host activates the data set ready (DSR) signal to enable the printer to send and receive data. If the interface cable does not provide a connection to this pin, the printer holds DSR in its active state.
Data Carrier Detect Signal
The host activates the data carrier detect (DCD) signal to enable the printer to send data when operating in the MODEM CONNECT mode. When the printer is in the DIRECT CONNECT mode, it ignores this signal. If the interface cable does not provide a connection to this pin, the printer holds DCD in its on state.
Data Terminal Ready Signal
If the PIN 20 H:READY (pin 20 high on ready) parameter was selected during printer setup and the printer is operating in the
DIRECT CONNECT mode, the printer activates DTR to indicate that it is ready to receive data and deactivates DTR to indicate that it is busy. Otherwise, the printer activates DTR following self-test completion at power-up to indicate that it is online and ready to receive data.
Communication Interfaces 10-17
Interface Data Transmission Rate
Because data-transfer operations on the serial interface occur in a bit-serial fashion, the data transmission rate is measured in bits per second, commonly called the baud rate. To provide compatibility with a variety of systems, your printer offers the following range of baud rates.
q 300 bits per second q 600 bits per second q 1200 bits per second q 2400 bits per second q 4800 bits per second (the default value) q 9600 bits per second q 19,200 bits per second
The control panel setup menu (described in Chapter 2) allows you to select the appropriate baud rate for your system.
Serial Data Format
The following figure shows the data format for 7-bit and 8-bit characters. The serial interface can transfer (and the printer can accept) either 7-bit characters or 8-bit characters, depending on which character set is in use. In either case, data bit 1 is the least significant bit (lsb) and the last bit is the most significant bit (msb).
Communication Interfaces 10-18
In addition to the data bits, each character contains the following bits.
q Start bit — A bit immediately preceding the character bits that signals the start of the asynchronous data transmission.
q Parity bit — A bit immediately following the character bits that allows the printer to check the integrity of the received data. The setup menu allows you to select even, odd, mark, space, or no parity checking.
q Stop bit — A bit immediately following the parity bit that signals the end of the asynchronous data transmission.
start bit
1 lsb
2 3 transfer direction
4 5 6 7 msb
8
â–² stop bit parity bit start bit
1 lsb
2 3 transfer direction
4 5 6 7 8 msb
9
â–² stop bit parity bit serial data structures
Communication Interfaces 10-19
Serial Interface Busy-Handling Protocols
The serial interface provides several methods for the printer to indicate its ready and busy conditions. The communication interface menu, described in Chapter 2 of this manual, allows you to select any of these methods during printer setup. The following paragraphs describe the serial interface busy-handling protocols.
Flow-Control Busy-Handling Protocols
These protocols are busy-handling protocols determined by the host that can be selected via the printer setup menu. The menu structure allows you to select either of the following flow-control busy-handling protocols or to set both protocols inactive.
q Transmit-On/Transmit-Off Protocol — When you select this busy-handling protocol, the printer sends a transmit-off (X-off) signal to indicate that its receive buffer is full or some other busy condition exists. When the printer is again ready to receive data, it sends a transmit-on (X-on) signal.
These signals (X-on and X-off) are equivalent to the device control characters DC1 and DCS, respectively, of the ASCII character set. Thus, the printer sends the DC3 control character to indicate that it is busy, and the DC1 control character to indicate that it is ready to receive data.
q End-of-Text/Acknowledge Protocol — When you select this busy-handling protocol, the host sends data in blocks of 256 characters or less. At the end of each block transfer operation, the host sends the end-of-text (ETX) control character to indicate that the operation is complete. The printer responds by sending the acknowledge (ACK) control character to indicate that it is ready to receive any subsequent data.
If the receive buffer is full (or some other busy condition exists), the printer delays sending the ACK control character until the busy condition is cleared.
Communication Interfaces 10-20
This busy-handling protocol should not be selected for an emulator that requires that ETX be used as a graphics character or as part of a printer command.
Direct-Connect Busy-Handling Protocols
The control panel menu structure offers the following choices of busy-handling protocols for use with a serial interface connected directly to the host.
q PIN 20 H:READY (pin 20 high on ready) — When you select this parameter, the printer activates DTR (interface pin 20) to indicate that it is ready to receive data and deactivates DTR to indicate a busy condition. This busy-handling protocol is also known as the busy-on-DTR protocol.
q PIN 20 H:ALWAYS (pin 20 high always) — This parameter disables the busy-on-DTR protocol.
q PIN 11 H:READY (pin 11 high on ready) — When you select this parameter, the printer activates B/R (interface pin 11) to indicate that it is ready to receive data and deactivates B/R to indicate a busy condition.
q PIN 11 H:BUSY (pin 11 high on busy) — When you select this parameter, the printer activates B/R to indicate a busy condition and deactivates B/R to indicate that it is ready to receive data.
Optional Communication Interfaces
A printed wiring board connector on the printer mother board provides for the installation of optional communication interfaces.
These include the RS-422 serial communication interface and the current loop (TTY) communication interface.
Communication Interfaces 10-21
RS-422 Communication Interface
The RS-422 serial communication interface handles data structures of the same format as those for the serial communication interface.
However, the RS-422 interface can transfer data over distances of up to 4000 feet (1219 meters) with minimal noise interference.
Current Loop Communication Interface
The current loop (TTY) interface uses a four-wire, passive, neutral current loop which does not interfere with the standard serial interface.
The printer can receive data via either interface, provided the other interface is in a spacing condition or its cable is disconnected.
WARNING: Interface cables installed as part of the building wiring must conform to the requirements of the U.S. National
Electrical Code. Contact your local inspector to determine that the correct materials have been chosen for your installation.
Communication Interfaces 10-22
!
A
Application Instructions
Z-Axis Adjustment Escape Sequence
Introduction
The Model 8900 Series Printers sense top, left, and right edges plus thickness when a form is loaded. These settings provide the location of printout on the form such as top, bottom, left, and right margins and locations of labels or uneven edges.
Caution: Some forms or form sets may have isolated stick-on labels or some areas that contain more copies than others as illustrated in the following figure. These conditions, if not properly handled, can cause the printhead pins to snag on the uneven edges and result in damage to your printhead. To prevent this type of damage, avoid any situation in which the printhead prints across an uneven edge.
If your applications require the use of the types of forms shown in the following figure, you should use Z-axis adjustment escape sequences to handle them.
Note: The 8900 Series Printers make Z-axis adjustments automatically only when forms are initially loaded, power is cycled, or the power-on defaults are reset.
Application Instructions A-1
isolated labels uneven edges
!
Considerations for Z-Axis Adjustments
The following considerations (plus DOs and DON’Ts) should be given for Z-axis adjustments.
Caution: This escape sequence is designed for use by technically oriented software users to print on forms with multiple thicknesses and is not intended for the casual user. Damage to the printer can occur by misuse of this command.
q Do not print across any boundary of a label or uneven edge (top, bottom, left, or right).
q Allow space (not used for printing) that is the width or height of several characters on all sides of the label or uneven edge of your form.
q Know exactly where a label or uneven edge is located by lines and columns on your form.
q The printhead can approach the label or uneven edge from either direction in bidirectional (normal) printing and therefore requires a complete description of Z-axis adjustments.
Application Instructions A-2
!
q Valid Z-axis adjustment values are 00 through 99 from the automatic Z-axis initialization adjustment (00) in positive or negative directions (-99 through +99).
q Note the location of the Z-axis initialization whenever paper stock is changed or tractors are moved, to determine the 00 calibration and corresponding number of sheets and form thickness.
q Z-axis adjustments are not cumulative; each Z-axis adjustment escape sequence is independent from previous adjustments in the escape sequences referenced only to the 00 automatic calibration.
q Positive displacement moves the printhead away from the platen.
q The direction of printhead initialization displacement is positive.
To clear backlash, this requires that a negative displacement be followed by positive displacement unless the adjustment for Z-axis is reinitialization.
q The range of the printhead Z-axis adjustment from the control panel is -5 through +20 from the Z-axis initialization adjustment.
q Each Z-axis adjustment requires that the printhead stop and therefore acts to decrease throughput. Forms format and printing format are both considerations to maximize throughput.
q Avoid a format that prints columns on either side of a label. If printing a column is required, print the column first (but only to the bottom of the label), adjust the printhead Z-axis while reversing paper motion, and then print the label.
Caution: Care must be taken that a label is not peeled when paper motion is reversed.
Application Instructions A-3
Escape Sequence — Z-Axis Printhead Position
Escape sequence: ESC DLE z
Hexadecimal: 1B 10 7A
S
S
NN
NN where:
S = “+” or “-” as the sign of the displacement
(positive or negative).
NN = ASCII values of the two digit number of the range from initialization.
Note: The escape sequence ESC DLE z, followed by any code, other than specified for the next three characters, calibrates the printhead to the Z-axis initialization.
Using the Z-Axis Escape Sequence
A single example is provided for 880 printer emulation that illustrates the considerations for Z-axis adjustment and maximum throughput.
This is the most complex because printing requires that another emulation mode be entered to obtain reverse paper motion to provide maximum throughput rather then making several Z-axis adjustments for possibly four lines.
text begins at 7th line a left margin of
1-inch is set at column 11 at line 44, right margin is set at
48 to prevent printing over label text text text label a right margin of 1-inch is set at column 75 label located at columns 51 to 75
Application Instructions A-4
880 Emulation Commands
For 880 emulation, send the following code and text.
Note: For this example, printing can be continuous, within the margins, on every line of the page.
ESC [ 7 ; 54 r — prints first print line on line 7, last print line at line 54.
ESC [ 11 ; 75 s — sets first print column at column 11, and last print column at column 75.
Send text, then at the end of line 43 send
ESC [ ; 48 s — sets the right print column to column 48.
Send text, then at the end of line 49 send the following sequences.
ESC DLE z + 12 — sets Z-axis to +12.
ESC DLE E TI855 EXT ESC CR P — changes to TI855 WP emulation.
ESC VT - LF — tabs vertically to line 45 then line feeds one line.
ESC DLE E TI880 EXT — changes to TI880 emulation.
ESC [ 57 ; 73 s — sets left print column to column 53, and right print column to column 73.
Send text, then at the end of line 49 send
ESC [ 11 ; 48 s —sets column left and right margins.
CR LF ESC DLE z X X X — sets Z-axis to 00.
Send text, then at the end of line 51 send
ESC [ 11 ; 75 s —sets original left and right margins.
Application Instructions A-5
Index
a adjusting the Z-axis position .................... 3-29 answerback memory
DEC LA120 emulation ...................... 9-5 answerback memory message load ...................................... 9-6 auto wrap .................................................... 9-6 b barcode operations .................................... 3-20 baud rate ................................................... 2-11 bidirectional printing ...................... 4-14, 8-12 bit parity .............................................. 10-19 start ................................................. 10-19 stop ................................................. 10-19 bits, data .................................................... 2-11 boldface print ................................. 5-20, 6-15,
....................................... 6-16, 7-18, 8-28 buffer size ................................................. 2-10 busy .......................................................... 2-17 busy-handling protocol ................... 2-12, 2-13 c channel, vertical tab .................................. 8-21 character columns, maximum ..................... 1-3 character pitch ............................................ 1-3 character sets ..................... 1-3, 2-14, 3-2, 3-3
IBM Multinational ........................... 3-14
IBM PC1 ............................................ 3-6
IBM PC2 ............................................ 3-8
International ASCII ............................ 3-5
ISO 8859/1 Multinational ................ 3-12
Nordic PC ........................................ 3-10
US ASCII ........................................... 3-4 characters control .............................................. 3-16 graphic ................................................ 3-2 oversize, printing .............................. 3-21 clearance, printhead-to-paper ................... 2-15 color printing .................................... 1-4, 3-22 commands character pitch .................. 4-8, 4-23, 5-7,
....................... 5-17, 6-5, 6-13, 7-6, 7-14,
................................... 8-7, 8-22, 9-3, 9-4 character set ............ 5-8, 5-18, 7-6, 7-16,
................................... 8-7, 8-8, 8-24, 9-4 control character ............................... 3-18
DEC LA120 ................ 9-2, 9-3, 9-4, 9-5
Epson FX Printer ............................... 8-6 escape sequence ............................... 3-18 font selection .................... 4-6, 4-9, 4-14,
................. 4-29, 5-6, 5-11, 6-4, 6-8, 8-14 form format ...................... 4-6, 4-9, 4-14,
.................. 4-29, 5-6, 5-11, 6-4, 6-8, 7-5,
................................... 7-9, 8-6, 8-13, 9-3 global ................................................ 3-19 graphics ............................................ 8-31 horizontal motion .................... 4-7, 4-19,
........................... 5-7, 5-14, 6-4, 6-9, 7-5,
.................................. 7-11, 8-7, 8-17, 9-3
IBM Proprinter XL ............................ 7-5 line spacing ...................... 4-8, 4-24, 5-7,
............. 5-18, 6-5, 6-13, 7-6, 7-14, 8-23,
.................................................... 9-3, 9-4 margin control .................. 4-7, 4-17, 5-6,
................... 5-12, 7-5, 7-9, 8-6, 8-15, 9-3
Model 855 DP ............................ 6-4, 6-5
Model 855 WP ................................... 5-6
Model 880 Printer .............................. 4-6 print enhancement ................... 4-9, 4-26,
......................... 5-8, 5-19, 6-5, 6-6, 6-14,
................................. 7-6, 7-17, 8-8, 8-26 printer ............................................... 3-18 printer operation ............... 4-6, 4-11, 5-6,
...................... 5-9, 6-4, 6-7, 7-5, 7-7, 8-6,
.................................................... 8-9, 9-2 raster graphics .................. 4-9, 4-27, 5-8,
................ 5-21, 6-6, 6-17, 7-7, 7-21, 8-9 vertical motion ....... 4-8, 4-21, 5-7, 5-16,
......... 6-5, 6-11, 7-6, 7-12, 8-7, 8-19, 9-4
DEC LA120 emulation ...................... 9-2 global ................................................ 3-19
Index 1
communication interface optional .................................. 1-4, 10-21 parallel .............................................. 10-6 serial ............................................... 10-14 standard .............................................. 1-4 compressed print .......... 5-19, 6-15, 7-17, 8-27 conditions, error ..................................... 10-14 configuration report .................................. 4-11 connection direct ................................................ 2-13 indirect ............................................. 2-13 serial interface ................................ 10-15 connector parallel interface ............................... 10-6 serial interface ................................ 10-15 control automatic sheet feeder ...................... 2-15 z-axis ................................................ 2-15 control characters ............................ 3-16, 3-17 communication ....................... 3-16, 3-17 format effectors ...................... 3-16, 3-17 information separators ........... 3-16, 3-17 miscellaneous ......................... 3-16, 3-17 control panel limit setup option ............................. 2-17 control panel, operator ................................ 2-3 control, flow ............................................. 2-11 d data bits ..................................................... 2-11 data structures, serial .............................. 10-19 data-transfer operations ............................ 10-4
DEC ABM function .................................... 9-5
DEC emulation commands ......................... 9-2 delay, idle .................................................. 2-16 density, horizontal dot .............................. 4-27 double-high double wide print ................. 7-20 double-high print ...................................... 8-27 draft-quality print ........................................ 1-6 e emulation mode
Epson FX ........................................... 8-4 submenu ............................................. 2-4
TI 855 DP ........................................... 6-3
TI 855 WP .................................. 5-4, 6-3
TI 880 ................................................. 4-4 emulation mode submenu ........................... 2-5 emulation modes ................................. 1-4, 2-5 emulator, selecting an ............................... 3-28 enhancements, print .................................... 1-3 error conditions ...................................... 10-14
ETX/ACK flow control ............................ 2-13 execute commands parameter ..................... 2-6 expanded print ...................... 4-26, 5-19, 6-14,
................................................ 7-17, 8-26 f features printer ................................................. 1-3 test .................................................... 2-18 flow control .............................................. 2-11 fonts
Courier ............................................. 8-14
Gothic ............................................... 8-14 optional ...................................... 1-3, 6-9 standard ...................................... 1-3, 6-9 form format, selecting a ............................ 3-23 form length ..................................... 4-14, 5-11 format, serial data ................................... 10-18 g global command set .................................. 3-19 graphic characters ....................................... 3-2 graphics printing ............................................... 1-6 raster ................................................... 1-6 graphics capabilities ................................... 1-4 graphics printing mode ............................. 2-17 ground protective ........................................ 10-16 signal .............................................. 10-16 h hexadecimal dump mode ............................ 2-9 horizontal dot density ............................... 4-27 horizontal motion index (HMI) ........ 5-5, 5-17 i idle delay .................................................. 2-16 indexes, motion .......................................... 5-5 intercharacter space .................................. 8-22 interface communication ................................. 10-3 serial ................................................. 2-10 interface parameters submenu .................... 2-4 international character set, selecting an .... 3-27 italic print ................................................. 8-30
Index 2
j justification full .................................................... 8-15 left margin ........................................ 8-15 right margin ................... 5-12, 5-14, 8-15 l language, LCD .......................................... 2-17 length, form .................................... 4-14, 5-11 letter-quality print ................... 1-6, 4-26, 5-19,
....................................... 6-15, 7-18, 8-28 limiting control panel operation ............... 2-17 line feed modes ........................................... 1-3 line length ................................................... 1-3 line spacing ................................................. 1-3 line width .................................................. 4-18 m margin bottom .................................... 4-17, 5-13 left ....................... 4-18, 5-13, 7-10, 8-16 right ..................... 4-18, 5-13, 7-10, 8-16 top .................................. 4-17, 5-13, A-4 master print mode ..................................... 8-30 menus, printer ............................................. 2-3 miscellaneous parameters, submenu ........... 2-4 mode data processing ................................... 2-8 emulation .................................... 1-4, 2-5 graphics printing .............................. 2-17 hexadecimal dump ............................. 2-9 master print ...................................... 8-30 word processing ................................. 2-8 modem ...................................................... 2-13 motion index horizontal (HMI) ...................... 5-5, 5-17 vertical (VMI) .......................... 5-5, 5-18 n new line mode ............................................. 9-5
NVRAM ..................................................... 2-3 o offline ........................................................ 2-16 online ........................................................ 2-16 operations barcode ............................................. 3-20 data-transfer ..................................... 10-4 paper-handling ................................. 3-29 oversize characters feature ........................ 3-21 p paper pull-down warning .......................... 2-16 paper out ................................................... 2-17 paper-handling operations ........................ 3-29 paper-handling system ................................ 1-2 parameters automatic carriage return ................... 2-9 automatic line feed ............................. 2-8 busy-handling ................................... 2-13 carriage return .................................... 2-7 execute commands ............................. 2-6 form .................................................. 4-15 graphics .................................... 2-7, 4-27 interface ............................................ 2-10 line feed and carriage return ...... 2-6, 2-7 miscellaneous setup ......................... 2-14 operating ............................................ 2-3 processing .......................................... 2-8 setup ................................................... 2-4 shift out .............................................. 2-7 slashed zeros ...................................... 2-9 parity ......................................................... 2-11 parity bit .................................................. 10-19 pitch, character ........................................... 1-3 port submenu ............................................ 2-10 power-up ................................................... 2-16 print boldface ............... 5-20, 6-15, 7-18, 8-28 compressed .......... 5-19, 6-15, 7-17, 8-27 double-high ...................................... 8-27 double-high double-wide ................. 7-20 expanded ............. 4-26, 5-19, 7-17, 8-26 italic .................................................. 8-30 letter-quality ................... 1-6, 4-26, 5-19,
....................................... 6-15, 7-18, 8-28 shadow ................ 5-20, 6-16, 7-19, 8-29 subscript ................................. 7-19, 8-29 superscript .............................. 7-19, 8-29 text-overscore ................................... 7-18 text-quality ......................................... 1-6 text-underline ................ 5-20, 7-18, 8-28 print enhancements ..................................... 1-3 print quality ........................................ 1-3, 1-4 selecting ........................................... 3-26 print, expanded ......................................... 6-14 printer commands ..................................... 3-18 printer display, writing to ........................ .3-29
Index 3
printer features ............................................ 1-3 printing bidirectional ..................................... 8-12 color ......................................... 1-4, 3-22 reverse .............................................. 5-10 unidirectional ........................ 4-14, 5-10,
........................................... 6-8, 7-8, 8-12 protocols busy-handling .............. 2-12, 2-13, 10-20 direct-connect, busy-handling ........ 10-21 end-of-text/acknowledge ................ 10-20 flow-control, busy-handling ........... 10-20 parallel interface, communication .. 10-10 transmlt-on/transmit-off ................. 10-20 pull down warning, paper ......................... 2-16 q quality, print ........................................ 1-3, 1-4 r raster graphics ............................................. 1-6 rate, baud .................................................. 2-11 report configuration .................................... 4-11 status ................................................ 4-13 requirements, parallel interface timing ... 10-12 reverse printing ......................................... 5-10 ribbon adjust ............................................. 2-15 ribbon type ................................................ 2-15 s select, Font n ................................... 4-29, 4-30 selecting a form format ............................. 3-23 selecting an emulator ................................ 3-28 selecting an international character set ...................................... 3-27 selecting print quality ............................... 3-26 sequence initialize .......................................... 10-13 parallel data timing ......................... 10-11 setup parameters
Epson FX ........................................... 2-8
IBM Proprinter XL ............................ 2-8
TI 855 ................................................. 2-8
TI 880 ................................................. 2-6 shadow print ................ 5-20, 6-16, 7-19, 8-29 sheet feeder, automatic ..................... 1-4, 3-23 signals acknowledge ..................................... 10-8 busy .................................................. 10-9 clear to send ................................... 10-17 data ................................................... 10-8 data carrier detect ........................... 10-17 data set ready .................................. 10-17 data strobe ........................................ 10-8 data terminal ready ......................... 10-17 fault .................................................. 10-9 ground ............................................ 10-10 initialize ............................................ 10-9 paper-empty ................................... 10-10 parallel interface ............................... 10-7 receive data .................................... 10-16 request to send ............................... 10-16 select .............................................. 10-10 serial interface .................... 10-15, 10-16 transmit data ................................... 10-16 verify .............................................. 10-10 size, buffer ................................................ 2-10 space, intercharacter ................................. 8-22 spacing, line ................................................ 1-3 spacing, vertical line ................................. 4-27 start bit .................................................... 10-19 status report .................................... 2-18, 4-13 stop bit .................................................... 10-19 submenu emulation mode .......................... 2-4, 2-5 interface parameters ........................... 2-4 miscellaneous parameters ................... 2-4 port ................................................... 2-10 test mode .................................. 2-4, 2-18 subscript print ................................. 7-19, 8-29 superscript print .............................. 7-19, 8-29 switch, Setup/Test ....................................... 2-4 system, paper-handling ............................... 1-2 t test mode submenu ..................................... 2-4 text-overscore print ................................... 7-18 text-quality print ......................................... 1-6 text-underline print ................ 5-20, 7-18, 8-28
TI 855 setup parameters ............................. 2-8
TI 855 emulation ................................ 2-8
TI 880 setup parameters ............................. 2-6
TI 880 emulation ................................ 2-6 timing, data-transfer ............................... 10-10 transmission rate, serial interface ........... 10-18
Index 4
u unidirectional printing ................... 4-14, 5-10,
........................................... 6-8, 7-8, 8-12 v variables .................................................... 4-10 vertical line spacing .................................. 4-27 vertical motion index (VMI) ............ 5-5, 5-18 vertical tab channel ................................... 8-21 w warning paper pull-down .......................... 2-16 width, line ................................................. 4-18 x
XON/XOFF flow control ......................... 2-12 z z-axis control ............................................ 2-15
Z-axis position, adjusting ......................... 3-29
Index 5
LCD Setup
( +
( 0.3 to 90 sec.
( +20
( Pin 20 see note 3
advertisement
Related manuals
advertisement
Table of contents
- 30 Introduction
- 30 Paper-Handling System
- 30 Printer Features
- 30 Printer Quality
- 30 Raster Graphics
- 31 Introduction
- 31 Model 8900 Series Emulation Modes
- 31 Miscellaneous Setup Parameters
- 31 Test Features
- 32 Introduction
- 32 Character Code Table
- 32 Character Sets
- 32 Control Characters
- 32 Printer Commands
- 32 Global Command Set
- 32 Global Command Descriptions
- 33 Introduction
- 33 Model 880 Printer Emulation Commands
- 33 Model 880 Command Descriptions
- 34 Introduction
- 34 Motion Indexes
- 34 Model 855 WP Commands
- 34 Model 855 WP Command Descriptions
- 183 Introduction
- 183 Model 855 DP Command Descriptions
- 184 Introduction
- 184 IBM Proprinter XL Emulation Commands
- 184 IBM Proprinter XL Command Descriptions
- 185 Introduction
- 185 Epson FX Printer Emulation Commands
- 185 Epson FX Emulation Command Descriptions
- 186 Introduction
- 186 DEC LA120 Emulation Commands
- 186 Answerback Memory Function
- 186 New Line Mode
- 186 Auto Wrap
- 186 Answerback Memory Message Load
- 187 Introduction
- 187 Data-Transfer Operations
- 187 Parallel Communication Interface
- 187 Serial Communication Interface
- 187 Optional Communication Interfaces
- 221 Introduction
- 221 Paper-Handling System
- 221 Printer Features
- 221 Print Quality
- 221 Raster Graphics
- 221 Introduction
- 221 Model 8900 Series Emulation Modes
- 221 TI 880 Emulation
- 221 Execute Commands
- 221 Line Feed and Carriage Return Upon Receipt of LF
- 221 Line Feed and Carriage Return Upon Receipt of CR
- 221 Carriage Return Upon Receipt of LF, VT, or DC
- 221 Graphics
- 221 Shift Out Equals Expanded Print
- 221 TI 855 Emulation
- 221 Processing Mode
- 221 Automatic Line Feed
- 221 IBM Proprinter XL and Epson FX Emulations
- 221 Automatic Line Feed
- 221 Automatic Carriage Return
- 221 Slashed Zeros
- 221 Hexadecimal Dump Mode
- 221 Interface Parameters
- 221 Buffer Size
- 221 Baud Rate
- 221 Data Bits
- 221 Parity
- 221 Flow Control
- 221 XON/XOFF (transmit-on/transmit-off)
- 221 Robust XON/XOFF
- 221 ETX/ACK (end-of-text/acknowledge)
- 221 Connection
- 221 DTR (Pin 20)