Rev. G
Added Telpar emulation
Added USB description
Added Redefine Character Set and Euro Character Commands
Updated Command Summary Tables
Rev. F
Removed redundant codes on page 82
Added Option 1: Epson emulation on page 90
Added Line Feed Before Cut to page 92
Added SSD Signal to page 96
Added Epson/Axiohm and STAR cash drawer connectors on page 118
Changed Code 3 of 9 to Code 39
Rev. E
Reformatted entire document
Corrected miscellaneous spelling and grammar mistakes
Changed RS1284 to IEEE 1284
Rev. DUpdate for Firmware Rev 1.20
Added NCR2567 emulation commands
Rev. CUpdate
Added section on parallel-port PnP
Added information about the web site
Added section on Star emulation
Removed all references to the cover (The Series 150 Printer does not have a switch on the cover.)
Added trademarks for OKIDATA and Star
Added Code 93 to bar code section
Added bar code justification commands
Rev. BUpdate
Corrected physical specifications
Corrected warranty information
Rev. AInitial Release
12/14/99Rev GPage i
DisclaimerPcOS Series 150Programmer’s Guide
Disclaimer
Information in this publication is subject to change without notice. However, as product improvements
become available, Ithaca Peripherals will make every effort to provide updated information for the
products described in this publication.
Copyright
Copyright 1997-1999 Ithaca Peripherals. All rights reserved.
December 1999
Printed in the United States of America.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or
by any means, mechanical, photocopying, recording, or otherwise, without the prior written permission of
Ithaca Peripherals.
Trademarks
PcOS is a registered trademark of Ithaca Peripherals. Ithaca Peripherals is a Transact Technologies
Incorporated Company. IBM is a registered trademark of the International Business Machines
Corporation. Epson is a registered trademark of Seiko Epson Corporation. OKIDATA and Microline are
registered trademarks of OKI Electric Industry Co., Ltd. Star is a registered trademark of Star Micronics
Co., Ltd. Microsoft is a registered trademark of Microsoft Corporation. Windows, Windows NT, and Plug
and Play are trademarks of Microsoft Corporation.
Federal Communications Commission
Radio Frequency Interference Statement
The Series 150 Printe complies with the limits for a Class A computing device in accordance with the
specifications in Part 15 of FCC rules which are designed to minimize radio frequency interference during
installation; however, there is no guarantee that radio or television interference will not occur during a
particular installation. If this equipment does cause interference to radio or television reception, which can
be determined by turning the equipment off and on while the radio or television is on, the user is
encouraged to try to correct the interference by one or more of the following measures:
• Reorient the radio or television receiving antenna.
• Relocate the printer with respect to the receiver.
• Plug the printer and receiver into different outlets.
The user may need to consult their dealer or an experienced radio/television technician for additional
suggestions. The user may find the following booklet prepared by the Federal Communications
Commission helpful: How to Identify and Resolve Radio/TV Interference Problems.
The booklet is available from the United States Government Printing Office, Washington, DC 20402. Ask
for stock number 004-000-00345-4.
Page iiRev G12/14/99
Programmer’s GuidePcOS Series 150Table of Contents
Table of Contents
Overview of the Series 150 Printer............................................................................................................1
General Description ..................................................................................................................................3
Series 150 Models .......................................................................................................................3
Standard Features........................................................................................................................3
Model 151: Receipt Printer..........................................................................................................4
Model 152: Receipt/Journal Printer .............................................................................................4
Model 153: Receipt/Journal/Validation Printer............................................................................4
Model 154: Receipt/Validation Printer.........................................................................................4
General Specifications...............................................................................................................................5
All PcOS Series 150 Printers come with a standard 24-month warranty covering both parts and
labor. An optional warranty, covering both parts and labor for an additional 12 months, may be
purchased separately. For more information concerning the warranty options, please contact your
dealer or the Sales Department at Ithaca Peripherals. See “Contacting Ithaca Peripherals” on
page 2.
Service Information
Ithaca Peripherals has a full service organization to meet your printer service and repair
requirements.
If your printer needs service, please directly contact Ithaca Peripherals’ Technical Support
Department at (607) 257-8901 for a return authorization.
Ithaca Peripherals offers the following service programs to meet your needs:
• Extended Warranty
• Depot Repair
• Maintenance Contract
What is in this book?
Who should read this book?
This book is intended for system engineers or system integrators. It contains the information
needed to integrate the Series 150 Printer with a point-of-sale terminal and to program the
terminal to communicate with the printer.
What does it cover?
This guide provides the following information:
• Start-up information including diagnostics and fault conditions,
• Command descriptions,
• Character fonts,
• Printer features,
• Parallel and RS-232 interface information,
• Communications and buffers, and
• Command code reference tables.
12/14/99Rev GPage 1
OverviewPcOS Series 150Programmer's Guide
Where can you find more information?
An Operator's Guide is available that describes set up and use of the Series 150 Printer. It
describes basic procedures such as changing the paper; printing on a form; and replacing the
ribbon cassette. A Maintenance Manual is also available. It shows how to repair the Series 150
Printer and lists the replacement parts. The Maintenance Manual is intended for trained, service
technicians. For information about ordering these books or programs, refer to the next section.
In addition, there are a number of drivers available that will support various environments.
CFG 90/150 User’s GuidePN 100-01085
Windows 95 print driver with documentation PN 100-9167
Windows NT 4.0 print driver with documentation PN 100-9170
OPOS drivers with documentation PN 100-9732
Master character set definitionsPN 100-9785
Contacting Ithaca Peripherals
The Sales and Technical Support Departments will be able to help you with most of your
questions. Contact the Sales Department to order documentation, receive additional information
about the Series 150 Printer, order supplies, or obtain information about other products by Ithaca
Peripherals. Contact the Technical Support Department for information about your warranty, to
send a printer in for service, or for technical support.
You may reach both the Sales and Technical Support Departments at the following address and
phone or fax numbers.
Ithaca Peripherals
20 Bomax Drive
Ithaca, NY 14850
Main phone(607) 257-8901
Main fax(607) 257-8922
Sales fax(607) 257-3868
Technical Support fax(607) 257-3911
Technical Support E-mailtechsupport@ithper.com
Internet Support
Ithaca Peripherals maintains an Internet web site. The address is http://www.ithper.com. On
the technical support page, you will find support information on all of our printers. The
Series 150 Printer support pages offer the latest information. They include the current
version of this manual, program examples, test procedures, programming instructions, and
supported print drivers.
Page 2Rev G12/14/99
Programmer's GuidePcOS Series 150General Description
Chapter 2:
General Description
Series 150 Models
There are four basic models of the Series 150 Printer. They are:
Model 151 Receipt Printer;
Model 152 Receipt/Journal Printer;
Model 153 Receipt/Journal/Validation Printer; and
Model 154 Receipt/Validation Printer.
Standard Features
The following features are common to the entire family of printers:
• 340 cps logic-seeking print speed;
• 4.0 inches per second paper feed speed;
• 2.40-inch (normal) or 2.83-inch (wide) print zone;
• Snap on ribbon cassette;
• Dual cash drawer drivers with status;
• Centronics parallel, IEEE 1284, serial RS-232C, or USB interfaces;
• Configurable receive buffer;
• Standard, Epson, Microline, Star, NCR2567, and Telpar emulations;
• Standard all-points-addressable (APA) or EPOS bit-image graphics;
• Standard and EPOS International Character Sets;
• 8, 10, 12, 15, 17.1, 20, and 24 characters per inch selections;
underline, subscript, superscript, and rotated print;
• Operator-visible print zone;
• Self-diagnostics; and
• Setup and configuration utility program.
1
1
Other emulation’s can be made available. Contact Ithaca Peripherals’ Sales Department for more
information. See “Contacting Ithaca Peripherals” on page 2.
12/14/99Rev GPage 3
General DescriptionPcOS Series 150Programmer's Guide
Model 151: Receipt Printer
The Model 151 receipt printer only provides receipt functions. The last line printed on the receipt is
within one inch of the tear-off or cut-off edge. The receipt printing appears right-side up with the
total at the bottom as the receipt appears from the top of the printer and is presented to the operator.
The receipt printer handles one-, two-, or three-ply paper. The optional cutter is able to cut one- and
two-ply paper.
The Model 151 printer does not have the ability to validate. Commands that operate validation modes
on other Series 150 Printers will not function.
Model 152: Receipt/Journal Printer
The Model 152 receipt/journal printer adds the journal feature to the Model 151 receipt printer. The
journal take-up is able to rewind the second copy of the 3.5-inch diameter 2-ply paper roll (125 feet).
The Model 152 printer does not have the ability to validate. Commands that operate validation modes
on other Series 150 Printers will not function.
Model 153: Receipt/Journal/Validation Printer
The Model 153 receipt/journal/validation printer adds a validation capability to the Model 152. The
validation will accommodate up to 16 lines at 8.0 lines per inch (lpi) or 12 lines at 6.0 lpi.
The form is inserted from the front and extends out the left side and/or top of the printer. It rests on a
fixed form stop. The validation movement is controlled from the movement of the receipt and journal.
Model 154: Receipt/Validation Printer
The Model 154 receipt/validation printer adds validation, as described above, to the Model 151. This
is a Model 153 without journal take-up.
Page 4Rev G12/14/99
Programmer's GuidePcOS Series 150General Specifications
Chapter 3:
General Specifications
Printing Specifications
Printing methodimpact dot matrix
Head wire arrangement9 pins in line
Print wire diameter0.34 mm (0.012 inch)
Print wire pitch0.35 mm (0.013 inch)
Printing directionsbidirectional, logic-seeking
Print zone60.96 mm (2.40 inch) or 71.97 mm (2.83 inch)
Characters per inchRefer to Table 1.
Characters per lineRefer to Table 1.
Characters per second Refer to Table 1.
All the character sets and modes are based on one of two character cells, 10 wide by 9 high
or 12 wide by 9 high. Double-wide mode is twice the width of normal mode, 20 wide by 9
high or 24 wide by 9 high.
In utility print mode, the character cell consists of five full dots and five half dots
horizontally by nine full dots vertically. The character cell is 9 by 9. In high speed draft
(HSD) mode, the character cell is shortened by one half and one full dot column yielding a 7
by 9 character.
Each character is justified to the left of the cell. The first four columns of the full dots and
the first three columns of the half dots are used to generate the character in high speed draft.
In utility mode, the first five columns of the full dots and the first four columns of the half
dots are used. The last full dot and the last two half dots are used for character spacing in
both modes.
Page 6Rev G12/14/99
Programmer's GuidePcOS Series 150General Specifications
The following illustration shows a single-wide character cell.
1 3 5 7 9
2 4 6 8 10
1
2
3
4
5
6
7
8
9
Character
Spacing
High Speed Draft
1 3 5 7 9 11
2 4 6 8 10 12
1
2
3
4
5
6
7
8
9
Character
Spacing
Utility Mode
Full Dots
Half Dots
Descender (Row 8 & 9)
& Underline (Row 9)
Figure 1 Single-wide character cell
The example above, which only holds true for the 12 cpi mode, shows the full dots as
adjacent to each other in the character cell. The 10 cpi mode allows a gap between adjacent
full rows; 17 and 24 cpi allow an overlap of full rows. The printer cannot print adjacent full
and half dots in any single row. Some graphics (double-density, half-speed) allow adjacent
rows to be printed by slowing the print speed by half. Slowing the print speed allows the time
between half and full columns to be the same as the time between full columns in full-speed
operation.
The following illustration shows the use of full and half dots as well as descenders to form
characters.
1 3 5 7 9
2 4 6 8 10
1
2
3
4
5
6
7
8
9
1 3 5 7 9
2 4 6 8 10
1 3 5 7 9
2 4 6 8 10
Figure 2 Character forming
12/14/99Rev GPage 7
General SpecificationsPcOS Series 150Programmer's Guide
Physical Specifications
Dimensions
11.25 inches (286 mm)
6.63 inches
(168 mm)
5.75 inches (146 mm)
Figure 3 Physical dimensions
Weight
Approximate weight7.0 pounds (3.2 kg)
Shipping weight10.0 pounds (4.5 kg)
Electrical Characteristics
Self-powered AC
The Series 150 Printer is designed to be AC self-powered in domestic and international markets.
The printer is equipped with a universal input power supply that is designed to operate
worldwide without modification.
Supply
Voltage
Rating (VAC)
100 - 24090 - 26447 - 63450.08 @ 120VAC
Table 3 Power input requirements
Supply
Voltage
Range (VAC)
Frequency
(Hz)
Rated
Power
(watts)
Idle Current
(amps)
0.04 @ 240VAC
Current (amps)
0.9 @ 120VAC
0.4 @ 240VAC
Printing
Page 8Rev G12/14/99
Programmer's GuidePcOS Series 150General Specifications
Interface Specifications
Serial
The serial interface is a standard RS-232 interface on a 9-pin D-shell connector. It is defined
as a standard DTE device. A null modem cable is required to interface the printer to another
DTE device (i.e. a personal computer). See the serial port description later in this manual for
more information.
Parallel
The parallel port is a standard 25-pin D-shell as defined in the IEEE 1284-A standard. See
the parallel port description later in this manual for more information.
USB
The USB interface is a standard Series “B” receptacle as defined in the USB standard. The
printer is a self-powered device and does not draw power over the cable.
Cash Drawer
The Series 150 Printer supports dual cash drawers with status. The interface will provide
status and 24 VDC at up to 1.5 amps to the cash drawer. See the cash drawer interface
description later in this manual.
Media Specifications
Ribbon
Inking methodCartridge type, 1.8 m seamless ribbon with reinker
Ink colorBlack or purple
Ribbon life at 25 °C3 million (black) or 4.5 million (purple) characters to ink depletion
ManufacturerOnly Ithaca Peripherals approved ribbons should be used.
Receipt Paper
Paper feed methodFriction feed
Paper feed pitchDefault - 0.13 inch (1/8 inch or 3.18 mm); can be set in units of
0.0046 inch (1/216 inch or 0.12 mm) by software command
Paper width2.75, 3.00, or 3.25 inches (69.85, 76.20, 82.55 mm)
Roll diameter3.50 inches (88.90 mm)
Paper thickness0.003 - 0.0035 inch (0.76 - 0.089 mm) at 25 °C
Roll paper coreInside diameter 0.44 inch (7/16 inch or 11.11 mm)
Roll footage (typical)240 feet (7315 cm)
Receipt-paper outPaper exhaust is sensed by software, and printing is prevented at the
end of the roll.
2
2
The ribbon must be from an approved manufacturer and tested with a rolling ASCII test pattern using 15
characters per inch (cpi) in high speed draft (HSD) mode.
12/14/99Rev GPage 9
General SpecificationsPcOS Series 150Programmer's Guide
Receipt/Journal Paper
Paper-feed methodFriction feed
Paper-feed pitchDefault - 0.13 inch (1/8 inch or 3.18 mm); can be set in units of
0.0046 inch (1/216 inch or 0.12 mm) by software command
Paper width2.75, 3.00, or 3.25 inches (69.85, 76.20, 82.55 mm)
Roll diameter3.50 inches (88.90 mm)
Paper thickness at 25 °C
Two-ply0.006 - 0.007 inch (0.15 - 0.18 mm)
Three-ply0.009 - 0.0105 inch (0.23 - 0.27 mm)
Roll paper coreInside diameter 0.44 inch (7/16 inch or 11.11 mm)
Roll footage (typical)
Two-ply110 feet (3353 cm)
Three-ply70 feet (2134 cm)
Receipt-paper outPaper exhaust is sensed by software, and printing is prevented at the
end of the roll.
Printable Area
Receipt Printing
Paper tear-off
1.00 inch (25.4 mm)
2.34 inches
(59.44 mm)
3.25 inches
(82.55 mm)
Figure 4 Receipt printable area
0.46 inch (11.68 mm)
Receipt Printing with the Autocutter
The paper is cut one inch from the last line of print, which minimizes the wasted paper
required when the paper must be moved to the cut-off position.
Validation Forms Printing
Lines per inch (lpi)Lines
Table 4 Validation lines
Page 10Rev G12/14/99
816
612
Programmer's GuidePcOS Series 150General Specifications
(59.44 mm)
Validation - Top Insertion
First line of print
4.25 inches (min)
(107.95 mm)
2.34 inches
(59.44 mm)
2.50 inches (min) (63.50 mm)
0.50 in
(12.70 mm)
Figure 5 Validation print – top insertion
Validation - Left-side Insertion
First line of print
Last line of print
2.85 inches (72.39 mm)
Last line of print
0.68 inch (17.15 mm)
0.50 inch
(12.7 mm)
2.50 inches (min) (63.50 mm)
2.85 inches
2.34 inches
6.00 inches (min) (152.40 mm)
0.68 inch (17.15 mm)
Figure 6 Validation print – left-side insertion
Validation Forms Insertion
Form insertion is from the top or the left side of the printer. Automatic form location is
under software or firmware control. Character rotation under software control will allow
check validation to appear right-side up when the check is removed.
12/14/99Rev GPage 11
Control Codes OverviewPcOS Series 150Programmer's Guide
Chapter 4:
Control Codes Overview
This programmer’s guide is designed to help users of the PcOS Series 150 Printer develop applications.
The Series 150 Printer is a point-of-sale (POS) printer that has several features not normally found on
general purpose printers. Because of these special features, the Series 150 Printer has distinct control
codes. This manual documents the control codes with an emphasis on those codes that are unique to the
Series 150 Printer.
All PcOS Series 150 Printers have either a serial or parallel interface. Both interfaces provide the same
printer control3 and use the same codes.
Nomenclature
When describing control codes, there is often confusion as to whether the description is decimal,
hexadecimal, or ASCII. To minimize the confusion, this manual will use the following nomenclature
when describing control code sequences.
[ ] encloses a control character. This is a single, 8-bit value as defined in the standard
ASCII tables. An example would be [ESC], which would represent a 1BH or 27
decimal.
< >encloses an 8-bit value in decimal format. This value will be from 0 to 255. An
example would be <2>, which would represent 02H or 2 decimal.
<n>indicates a variable parameter. <n> can have a value of from 0 to 255. The meaning
of <n> is described and defined in the description of the command.
<n1> <n2>indicates that there are two parameters, <n1> and <n2>, where both can have values
from 0 to 255.
<m1> <m2>is an IPCL parameter consisting of two digits where <m1> and <m2> are ASCII
characters from 0 to 9. The values will be combined to form a value from 0 to 99. If
<m3> is included, the parameter will be combined to form a value from 0 to 999.
If two values are specified, there must be two bytes added to the IPCL code. In other
words, if the command specifies <m1> <m2> and the desired value is 5, the value
must be specified as 05.
x(all other characters in control strings) represent ASCII characters. For example,
[ESC] 1 would represent 1BH followed by 31H.
The CFG150 configuration and demonstration program4 uses the same nomenclature. Print examples
shown in this manual are available for CFG150.
3
The serial and IEEE 1284 interfaces provide a few additional interface capabilities over the standard
parallel interface. Both serial and IEEE 1284 interfaces provide a bidirectional data path.
4
CFG150 is available from Ithaca Peripherals. The program runs on IBM personal computers and
compatibles.
Page 12Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes Overview
In many cases, applications require that control sequences be specified in hexadecimal or decimal
codes. In most cases, commands are specified in ASCII, hexadecimal, and decimal. The table in
Appendix B lists ASCII, decimal, and hexadecimal equivalents.
Standard Emulation
The standard control codes for the Series 150 Printer are extensions and subsets of the IBM
emulation provided on other PcOS products. In all cases, an application designed for a Series 50
Printer with IBM code sets will function with a Series 150 printer. There are, however, more
features in the Series 150 Printer that can be used for new applications.
IPCL Codes
IPCL (Ithaca Printer Control Language) codes are designed to control a printer without using
control characters, i.e., characters less than 20H. Only the standard emulation supports IPCL.
Not all commands are supported by IPCL codes. For those commands that are, the IPCL code is
listed.
In rare cases, an IPCL code will interfere with the text that is to be printed. The IPCL translator
can be disabled with an [ESC] y <4> command.
EPOS Emulation
ESC/POS5 is referred to here as EPOS. The Series 150 Printer supports an EPOS emulation with
extensions. The emulation is designed to allow the Series 150 Printer to be used with applications
that are designed for Seiko Epson printers. It is intended that the standard emulation be used for
new applications. Not all of the features of Series 150 Printers are supported by EPOS.
This manual will include the EPOS code equivalent for features of the Series 150 Printer that are
supported by EPOS. When EPOS commands are significantly different from the standard
emulation, an independent EPOS description is provided.
Microline Emulation
The standard control codes for the Series 150 Printer are extensions and subsets of the Microline
emulation provided on other PcOS products. In all cases, an application designed for a Series 50
Printer with Microline 150 Printer that can be used for new applications.
Star Emulation
The standard control codes for the Series 150 Printer are extensions and subsets of the Star
emulation provided on other PcOS products. In all cases, an application designed for a Series 50
Printer with Star code sets will function with a Series 150 Printer. There are, however, more
features in the Series 150 Printer that can be used for new applications.
5
ESC/POS is a registered trademark of the Seiko Epson Corporation.
12/14/99Rev GPage 13
Control Codes OverviewPcOS Series 150Programmer's Guide
NCR2567 Emulation
The standard control codes for the Series 150 Printer are extensions and subsets of the NCR2567
emulation provided on other PcOS products. In all cases, an application designed for a Series 50
Printer with NCR2567 code sets will function with a Series 150 Printer. There are, however,
more features in the Series 150 Printer that can be used for new applications.
Telpar Emulation
The standard control codes for the Series 150 Printer are extensions and subsets of the Telpar
emulation provided on other PcOS products. In all cases, an application designed for a Series 50
Printer with Telpar code sets will function with a Series 150 Printer. There are, however, more
features in the Series 150 Printer that can be used for new applications.
Application Development
To aid in application development and help the programmer understand the Series 150 Printer, this
manual is broken down into two major sections. The first section is a detailed description of each of
the commands. The second section is an explanation of how the printer works. It explains the internal
print buffer, the communications link, and how the host computer and printer interact.
Tables and Charts
Throughout this guide, there are charts and tables that list commands and features. In most cases, the
charts cross reference the page that describes the command. Commands are grouped by function and
can at times be hard to find. To minimize the time it takes to find commands, there are two code
summary charts in the following section, one ordered by code and one by function.
Page 14Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Print/Paper Motion
Chaper 5:
Printer Control Codes
Print/Paper Motion
Low-level Paper Motion Control
FunctionCarriage return
ASCII[CR]
Hexadecimal0DH
Decimal<13>
IPCL&%CR
EPOS0DH
DescriptionThis command prints the contents of the print buffer (if any) and resets the
next character print position to the left margin. A line feed is not
performed unless autofeed was active. The left margin is defined by the
current print station, the print rotation direction, and the left margin
command.
Note: In single-line mode, the [CR] is used to terminate all lines. The
printer will go busy6 after the [CR] is received. The printer will not be
ready to accept data again until the previous data has printed.
FunctionLine feed
ASCII[LF]
Hexadecimal0AH
Decimal<10>
IPCL&%LF
EPOS0AH
DescriptionThis command prints the contents of the buffer (if any) and advances the
paper one line at the current default line spacing. The next character print
position is not reset to the left margin unless auto-CR is active.
6
In one-line mode, the parallel port busy signal will occur as a result of receiving the [CR].
In serial mode, the busy indication will be delayed until the [CR] is processed by the input software.
Data sent to the printer after the [CR] will not be lost unless the printer is power cycled.
12/14/99Rev GPage 15
Control CodesPcOS Series 150Programmer's Guide
Horizontal Motion
Horizontal Motion Control
There are several commands that can control the horizontal position of characters. Many
applications use space control to position fields. However, there is the ability to control character
position with horizontal tab stops. This is done by using the horizontal tab [HT] to move to those
tab stops.
FunctionHorizontal tab
ASCII[HT]
Hexadecimal09H
Decimal<9>
IPCL&%HT
EPOS[HT]
DescriptionThis command inserts spaces in the print buffer up to the next tab stop.
The default tab locations are every 8 spaces.
FunctionBack space
ASCII[BS]
Hexadecimal08H
Decimal<8>
IPCL&%BS
EPOS[BS]
DescriptionThis command prints thedata in the print buffer and shifts the current
horizontal position by one character width to the left. If the current
position is at the left margin, the [BS] is ignored.
DescriptionThis command sets tab stops at the character columns specified by <n>.
The end of the setting is specified by a <0>. All previously set tabs will be
cleared by this command. There is no restore-defaults procedure other than
to respecify the tabs. The power up default is every 8 spaces, i.e., 9, 17, 25,
etc. Column sizes are in accordance with the current character pitch.
Setting tabs that are beyond the station width is possible. A [CR] will be
inserted if the tab is used. Printing will begin at the home position.
Page 16Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Horizontal Motion
FunctionReset horizontal and vertical tab stops
ASCII[ESC] R
DescriptionThis command sets the horizontal justification.
Where <n> 0 = left justified&%JL
1 = center justified&%JC
2 = right justified&%JR
The print format can be right, center, or left justified. The value of <n>
specifies the justification.
The power on default is left justified.
Note: Lines that have mixed size characters cannot be centered. For
example, a line with mixed single- and double-high cannot be centered. If
a line of print is to be double-high and centered, the change to single-high
must be done after the line terminator for the double-high line.
Example: [ESC] W <3> Centered [ESC] W <0> [CR] will not print
correctly because the printer assumes that more data will follow the [ESC]
W <0>. This should be [ESC] W <3> Centered [CR] [ESC] W <0>.
Note: Several line graphic characters stress the printer. If the printer is to
print a very dark area, it will do it in steps. The stepping operation only
works in left justified mode. In general, this will not cause a problem
because the printer will print several black blocks in a row before the
stepping program is activated. Autocenter and line graphics should be
avoided because of character alignment.
DescriptionThis command sets default line spacing to n/72. Set n = 1 to 85. This line
spacing does not take effect until enabled by the [ESC] 2 command. This
command is provided to maintain backward compatibility with the Series 50,
OKIDATA, IBM, and other printers. It can also be used to print on preprinted
forms.
FunctionEnable [ESC] A <n> line spacing
ASCII[ESC] 2
DescriptionThis command prints the contents of the buffer (if any)and performs <n> line
feeds at the current line spacing. This command does not change the default
line spacing value. The next character print position is reset to the left margin.
Note: The IPCL command will print from 00 to 99 lines. For example, if you
wish to feed 12 lines, the IPCL command would be &%FL12.
12/14/99Rev GPage 19
Control CodesPcOS Series 150Programmer's Guide
Vertical Motion
FunctionVertical tab
ASCII[VT]
Hexadecimal0BH
Decimal<11>
IPCL&%VT
EPOS(VT)
DescriptionThe printer sets a line counter to the top of the form whenever a station is
selected. By setting vertical tab stops, various form positions can be reached
with a [VT] operation.
DescriptionThis command sets tab stops at line positions specified by <n>. The end of the
setting is specified by a <0>. All previously set tabs will be cleared by this
command. There can be a total of 64 tab stops specified by this command. The
power on default is a tab stop at 1-inch intervals.
FunctionForm feed
ASCII[FF]
Hexadecimal0CH
Decimal<12>
IPCL&%FF
EPOSnone
DescriptionThis command performs a form feed to the top of the form.
FunctionSet top of form
ASCII[ESC] 4
Hexadecimal1BH 34H
Decimal<27> <52>
IPCL&%TF
EPOS[ESC] L
DescriptionThis command sets the top of form to the current position.
Utility mode is a one pass, 9 x 7 font. Utility print mode enables enhanced,
emphasized, subscript, superscript, and underline character attributes. Print
speed is reduced approximately 20% over HSD mode.
NLQ Courier and Sans Serif print modes are each twp pass, 9 x 7 fonts. The
print speed is reduced and character features are added to the font to enhance
the appearance.
EPOS Note: [ESC] x is identical to [ESC] I in normal mode. [ESC] ! <n>
performs a similar function; however, NLQ is not available.
EPOS[ESC] V <n>
DescriptionThis command rotates the print font by 90°. The print font is a one pass, 7 x 10
font. Enhanced, emphasized, subscript, superscript, and underline character
attributes are not available in this mode. Double-wide and double-high print are
available in 90° rotated mode. However, because the font is rotated, doublewide print will make the characters taller and double-high print will make the
characters wider.
The current pitch sets the spacing between lines. If eight cpi is set, the printer
will produce the equivalent of eight lines per inch rotated print.
Print pitches greater than 12 cpi are small and difficult to read. This mode
prints faster than the formatted, rotated print mode. However, there is no
formatting in this mode.
Note: Line graphic characters (<176> to <223>) print unrotated.
EPOS Note: In EPOS mode if <n> = 0, rotation is turned off. If <n> = 1, the
pitch is set to ten cpi. If <n> = 2, the cpi is set to eight.
EPOSnone
DescriptionThis command rotates the print font by 270°. The print font is a one pass, 7 x
10 font. Enhanced, emphasized, subscript, superscript, and underline character
attributes are not available in this mode. Double-wide and double-high print are
available in 270° rotated mode. However, because the font is rotated, doublewide print will make the characters taller and double high will make the
characters wider.
FunctionEnd rotated font
ASCII[ESC] P <0>
Hexadecimal1BH 50H 00H
Decimal<27> <80> <0>
IPCL&%RN
EPOS[ESC] V <n>
DescriptionThis command returns the print font to normal nonrotated mode.
Note: This command leaves the printer in utility mode.
12/14/99Rev GPage 23
Control CodesPcOS Series 150Programmer's Guide
Character Sets and Code Pages
International Character Sets and Code Pages
The Series 150 Printer supports 65 different international character sets. In IBM and EPOS printers,
there has historically been two ways of selecting a character set. The first way substitutes
international characters in the upper 128 characters of the standard character set to support different
countries. As time passed, this approach became difficult to support. It became a problem for the
application to match the characters displayed and the characters printed. To solve the problem, code
pages were developed. The printer and the display could use the same code page and the application
would then display and print the same characters. IBM and EPOS defined new commands to select
code pages and left the old commands in effect.
The Series 150 Printer supports international character sets as well as code pages. However, both
methods are extended in the Series 150 Printer. This is to allow the most flexibility for the application
programmer. In IBM mode, there are 19 character sets and 60 code pages. In EPOS mode, there are
57 character sets and five code pages.
The Series 150 Printer has extended the IBM code page selection command to allow the character
sets as well as normal IBM code pages to be selected. The EPOS character set select command has
been extended to allow additional character sets over and above the 11 defined by EPOS. The EPOS
code page select command has not been extended as there is no EPOS definition beyond the first six
ID’s.
7
All characters in code pages as well as character sets are addressed as 0 thorough 255. (Characters
below 32 must be addressed with the [ESC] ^ <n> command.) Code pages may be changed at any
time and are active for all features including rotated print.
As discussed above, there are two commands for language selection in IBM mode. The first is [ESC] !
which will select one of 19 international character sets. This command will not select all the possible
sets and is provided for compatibility with older programs. The second is [ESC] [ T which will select
any of the 58 code pages. In EPOS mode, the command [ESC] R has been expanded and will select
any of the 59 international character sets or code pages.
FunctionSelect international character set
ASCII[ESC] ! <n>
Hexadecimal1BH 21H
Decimal<27> <33>
IPCL&%CS <n>
EPOS[ESC] R <n>
DescriptionThis command selects the international character set, <n>. In standard mode,
the value of <n> is as follows:
7
Epson provides limited code page support through ID to code page translation. Only six translations are
defined.
Page 24Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Character Sets and Code Pages
<n>Language<n>Language<n>Language
64-’@’ASCII (slashed zero)71-’G’Norwegian78-’N’Swedish IV
65-’A’ASCII (unslashed zero)72-’H’Dutch79-’O’Turkish
66-’B’British73-’I’Italian80-’P’Swiss I
67-’C’German74-’J’French Canadian81-’Q’Swiss II
68-’D’French75-’K’Spanish
69-’E’Swedish76-’L’Swedish II
German2Polska Mazovia22Windows Cyrillic52
British3ISO Latin 223Hungarian CWI54
Danish I4Serbo Croatic I24Kamenicky (MJK)55
Swedish I5Serbo Croatic II25ISO Latin 4 (8859/4)56
Italian6Multilingual26Turkey_85757
Spanish I7Norway27Roman-858
Japanese8Portugal28Hebrew NC (862)60
Norwegian9Turkey29Hebrew OC61
Danish II10Greek 43738Windows Hebrew62
Spanish II11Greek 92839KBL- Lithuanian63
Latin American12Greek 437 CYPRUS42Ukrainian66
French
Canadian
Dutch14Canada French44Windows Baltic68
Swedish II15Cyrillic I-85545Cyrillic-Latvian69
Swedish III16Cyrillic II-86646Bulgarian72
Swedish IV17East Europe Latin II-85247Icelandic-86173
Turkish18Greek 86949Baltic 77474
Swiss I19Windows East Europe
EpsonIDCountry Code/
Language Set
13ECMA-9443ISO Latin 6 (8859/10)67
EpsonIDCountry Code/
Language Set
(Windows Turkey)
Table 6 EPOS language table IDs
Epson
ID
51
Note: There is a demonstration script distributed with the CFG150 program that will print a complete
character chart for IBM or EPOS modes. See the CFG150 distribution disk.
12/14/99Rev GPage 25
Control CodesPcOS Series 150Programmer's Guide
Character Sets and Code Pages
FunctionSelect character code page
ASCII[ESC] [ T <nh> <nl>
Note: The code page field is a 16-bit field that is equivalent to the code page
number. For example, 1 * 256 + 181 = 437. For the IPCL command, the page
is specified in ASCII as a 4-byte field.
DescriptionThis command allows characters from 0 to 31 codes to be printed. During
normal operation, characters from 0 to 31 are control characters. This
command turns off the control code translation for the following character. <n>
can be from 0 to 255.
FunctionRedefine Character Set
ASCII[ESC] [ S <LL> <LH> <BC> <T1L><T1H><T2L><T2H><T3L><T3H> … <TnL>
<TnH>
Hexadecimal1BH 5BH 40H …
Decimal<27> <91> <64>
IPCLnone
EPOSnone
DescriptionThis command allows an application to replace or redefine the active character
set mapping in the printer.
Where<LL> <LH> defines the total length of the following data:
<LL> + 256 * <LH> = 1 + 2 * is the total number of characters to be replaced.
<BC> is the first character in the active map to be replaced.
<T1H> <T1L>8 is the internal address of the replacement character image.
The mapping of a print pattern to each character address is referred to as a code
page or character set. At any given time, the printer character set is comprised
of 256 characters. Each character is addressed by an 8-bit value generally
referred to as a character code. For example if you want to print an ‘A,’ the
character would be addressed by sending a <65> decimal to the printer. There
are 65 predefined code pages or character maps that assign characters to a
particular address built into the printer. However, there are times when an
application would like to redefine a character or group of characters in a code
page. To be able to redefine characters, the Series 90PLUS Printer allows the
map for any code page to be replaced. The “Define Character Set” command
allows any character or group of characters to be replaced with any other
printable character. There are over 500 printable master characters defined in
the printer.
8
The internal character map is provided in the Master Character Set Definitions Guide (PN 100-9785).
12/14/99Rev GPage 27
Control CodesPcOS Series 150Programmer's Guide
Character Sets and Code Pages
For example, to redefine the character map for the 35th character and replace it
with internal master character 346, the “Redefine Character Set” command is
used as follows:
[ESC] [ S <3> <0> <35> <90> <1>
^^^^ ^^ ^^^^^^
| | +- 346th Character in the Master set
| | [(1*256) + 90]
| +------- 35th Character
+----------- 3 Bytes to follow [(0*256) + 3]
The new map will remain until the printer is power cycled or the character set
is redefined. The code page and character set commands completely redefine
the table.
DescriptionThis command turns off the custom character set contained in the RAM font
buffer.
FunctionInsert Euro Character
ASCII[ESC] [ C <n>
Hexadecimal1BH 5BH 43H <n>
Decimal<27> <91> <67>
IPCL&%EU
EPOSnone
DescriptionThis command allows an application to replace any character in the currently
active character set with the Euro character. The character to be replaced is
defined by <n>. For example, if the currently active character set is CP 850
(multilingual) and the 0D5H character is to be the Euro character, “1BH 5BH
43H 0D5H” will replace the character at 0D5H with the Euro symbol.
There are a number of character pitch and print mode operations that are possible and a few that are
not. The following table lists the operations that are possible in matrix form.
Some features switch to an alternate mode while active. For example, if line graphics are to be printed
the printer always prints them in a two-pass utility font at the selected pitch.
Some enhanced or emphasized print formats are not available in 15 to 24 cpi.
Rotated 180° print fully supports all print features. Rotated 90° and 270° print in a 5 x 7 font at 72
dpi is equivalent to a 12 cpi HSD font. Rotated print supports ten cpi and 12 cpi by controlling the
line spacing.
DescriptionSet intercharacter spacing by adding white space between characters. The value
of <n> sets the spacing and ranges from zero to 11. The normal pitch set
commands set the intervalue to zero. The amount of space depends on the pitch
that was set. The following table specifies the amount of white space for each
pitch setting.
PitchSpacing
HSD 8 cpi1/80 * n
HSD 10 cpi1/100 * n
HSD 12 cpi1/120 * n
HSD 15 cpi1/150 * n
HSD 17 cpi1/171 * n
HSD 20 cpi1/200 * n
HSD 24 cpi1/240 * n
Utility/NLQ 8 cpi1/150 * n
Utility/NLQ 10 cpi1/120 * n
Utility/NLQ 12 cpi1/144 * n
Utility/NLQ 15 cpi1/180 * n
Utility/NLQ 17 cpi1/205 * n
Utility/NLQ 20 cpi1/240 * n
Utility/NLQ 24 cpi1/288 * n
DescriptionThis command causes subsequent characters to be printed at twice the currently
selected character width. For example ten cpi becomes five cpi, 17 cpi becomes
8.5 cpi, and so on. This command will remain in effect until:
a. a valid line terminator is received (CR, LF, or fine line feed);
b. the command is canceled; or
c. the maximum number of characters per line is reached and the printer
performs an auto print.
Example of one line Double Wide[CR][LF]
This is normal 12 cpi Print[CR][LF]
[SO]
Double Wide[CR][LF]
This is back to normal[CR][LF]
Figure 10 Example of one-line double-wide
print
Figure 11 Data sent to printer for one-line
double-wide print
Hexadecimal1BH 47H
Decimal<27> <71>
IPCL&%ME
EPOS[ESC] G <1>
DescriptionThis command begins enhanced print mode. All subsequent text will be printed
in enhanced print mode (two pass with a vertical offset). Enhanced printing
provides a deeper resolution of each character and may enhance multiple part
forms printing.
Note: This feature is not available in all print modes. See page 30 for available
modes.
FunctionEnd enhanced print
ASCII[ESC] H
Hexadecimal1BH 48H
Decimal<27> <72>
IPCL&%CE
EPOS[ESC] G <0>
DescriptionThis command cancels enhanced print mode and returns to the currently
selected font.
FunctionBegin emphasized print
ASCII[ESC] E
Hexadecimal1BH 45H
Decimal<27> <69>
IPCL&%MM
EPOS[ESC] E <1>
DescriptionThis command begins emphasized print mode (single pass with horizontal
offset). This print is bolder than normal print.
FunctionEnd emphasized print
ASCII[ESC] F
Hexadecimal1BH 46H
Decimal<27> <70>
IPCL&%CM
EPOS[ESC] E <0>
Figure 12 Example of underline, enhanced, emphasized, superscript, and subscript print
12/14/99Rev GPage 39
Control CodesPcOS Series 150Programmer's Guide
Rotated Print
Print Rotation Commands
To provide printing flexibility on preprinted and various size forms, rotated print capability is
available in validation and receipt modes. Rotated print mode aligns the print in any of three 90
degree orientations.
In 90° and 270° rotated modes, the print data is first buffered by the printer, processed (rotated), and
then printed. As a result, the print process is slightly delayed. In 180° mode, the print is simply
inverted and mirrored.
Because the rotated 90° and 270° print buffer is limited to 1760 characters, the amount of rotated
print is also limited. The printer can support a limit of 22 lines of rotated print with a maximum line
length of 80 characters. The technique used by the Series 150 Printer is to receive all the print to be
rotated and convert it into graphics. This requires buffer space for all possible characters in each print
line. Each line has a fixed length buffer regardless of how much data is actually sent to the printer.
The printer will space fill the buffer for each line to the maximum size. As a result, a short line of two
characters will take as much buffer space as a long line.
To make the most efficient use of buffer space, the line length is predefined. The default line length is
80 characters, which leaves room for 22 lines. To allow longer lines to be printed, the line length can
be changed; however, no more than 22 lines with no more than 128 characters per line are allowed.
For example, if the line length is expanded to 128 characters per line, there is buffer space for
1760/128 or 13 lines.
Specifying the line length is also useful to determine where data is printed on forms. In rotated 90°
and 270° mode, the print field can be extended to print the complete line length specified. Extending
the line length is useful for printing forms such as checks where the form is fixed but the data can
change. This mode is called line formatted mode. In line formatted mode, the line length is set not by
the longest line entered but by the maximum line length. (Line lengths less than 80 will not print
more than 22 lines, only the format will be affected).
The space between lines is controlled by a line spacing table. The table is defined by the rotated print
line spacing ([ESC] u ...) command or by inserting [LF] or [ESC] J <n> commands in the rotated
data. The [ESC] u command specifies the number of dots to be added between each printed line. Each
line has an entry in the table. There is room for 22 lines in the table. The minimum spacing (and
default) is one dot or 1/80 inch between lines which results in a total of 10 dots in a line or 10/80 inch
(8 lines per inch).
The character cell is 7 x 9 with one dot of white space9 or a total cell size of 7 x 10. The cell is
printed at 80 dots per inch. If three dots are added, there will be a total of four dots, and the cell will
be 7 x 13. The following table specifies lines per inch for various numbers of inserted dots.
Number of dots added
Spacing specified
Cell size
Line spacing (inches)
Number lines per inch
Line graphic characters are 7 x 10 which allow touching characters as a default.
Page 40Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Rotated Print
If a [LF] is used to specify the line spacing, it overrides the default table and sets spacing to one dot
for eight lines per inch. If [ESC] J <n> is used, <n> specifies the spacing in n/216 (including the one
dot white space). Note: the finest resolution is still 1/80, n/216 will be rounded to the nearest n/80 and
the smallest value allowed will be 1/80.
In rotated 90° or 270° mode, the print is done in all-points-addressable (APA) graphics. The
intercharacter spacing is adjusted with the normal line spacing commands. The [ESC] 3 <n>
command is the most effective command for adjusting intercharacter spacing. Line spacing smaller
than 12 cpi will force the characters to overlap. (Spacing of 12 cpi is obtained with an [ESC] 3 <18>.)
When 90° or 270° rotation is selected, only normal text can be printed. Underline, enhanced,
emphasized, and other attributes will not function. See the chart on page 30 for a list of available
features.
In 180° rotation mode, all spacing commands are effective. This mode of operation simply inverts and
mirrors the print operation. All line spacing and print features are available. It should be noted that
the feed direction is not effected by any of the rotate commands.
FunctionBegin 90° rotated print
ASCII[ESC] r <1>
Hexadecimal1BH 72H 01H
Decimal<27> <114> <1>
IPCL&%R1
EPOS[ESC] T <3>
DescriptionPrint data is entered normally from left to right, top to bottom. When an end
rotated print ([ESC] r <0>) command is received, the printer formats and prints
the data.
EPOS Note: The Series 150 Printer does not fully implement EPOS page
mode. The [ESC] T <n> command functions identically to the normal mode
[ESC] r <n> except the definition of <n> is different.
FunctionBegin 90° rotated print with line formatting
ASCII[ESC] r <5>
Hexadecimal1BH 72H 05H
Decimal<27> <114> <5>
IPCL&%R5
EPOS[ESC] T <3>
DescriptionPrint data is entered normally from left to right, top to bottom. When an end
rotated print ([ESC] r <0>) command is received, the printer formats and prints
the data. This command differs from the [ESC] r <1> command in that the line
length is determined not by the longest line entered, but by the line length set
by the [ESC] s command. If input extends past the end of a line, it will line
wrap.
12/14/99Rev GPage 41
Control CodesPcOS Series 150Programmer's Guide
Rotated Print
FunctionBegin 270° rotated print
ASCII[ESC] r <3>
Hexadecimal1BH 72H 03H
Decimal<27> <114> <3>
IPCL&%R3
EPOS[ESC] T <1>
DescriptionPrint data is entered normally from left to right, top to bottom. When an end
rotated print ([ESC] r <0>) command is received, the printer formats and prints
the data. The print will be rotated 270° according to the currently stored format
parameters.
EPOS Note: The Series 150 Printer does not implement EPOS page mode. The
[ESC] T <n> command functions identically to the normal mode [ESC] r <n>
except the definition of <n> is different.
FunctionBegin 270° rotated print with line formatting
ASCII[ESC] r <7>
Hexadecimal1BH 72H 07H
Decimal<27> <114> <7>
IPCL&%R7
EPOS[ESC] T <1>
DescriptionPrint data is entered normally from left to right, top to bottom. When an end
rotated print ([ESC] r <0>) command is received, the printer formats and prints
the data. The print will be rotated 270° according to the currently stored format
parameters. This command differs from the [ESC] r <3> command by spacing
out the lines to the line length specified by the [ESC] s command. If input
extends past the end of a line, it will line wrap.
DescriptionAll subsequent lines will be rotated 180° and positioned at the opposite margin.
This command is effective on all stations including the journal. This command
will remain in effect until rotation is canceled with an end rotated print ([ESC]
r <0>) command, or a station select command is issued.
Note: The last line of print must be terminated with a line terminator before the
end rotated command is issued. Any characters in the print buffer that have not
been printed will not be printed. They will be printed unrotated when a line
terminator is received.
DescriptionThis command sets the print line length to be used in autoformat rotated print
mode. The maximum number of characters is 128 per line. The power on
default line length is 80 characters.
The number of available print lines is found by dividing 1760 by the number of
characters per line and rounding down to the nearest whole number. The
minimum number is 80 characters. Any value less than 80 will not allow any
additional lines to be printed. Values greater than 80 will limit the number of
lines to less than 22.
12/14/99Rev GPage 43
Control CodesPcOS Series 150Programmer's Guide
Edge of form
Rotated Print
FunctionSet rotated print line spacing
ASCII[ESC] u <n1> <m1> <n2> <m2> ... <ni> <mi> <0>
DescriptionThis command adjusts theline spacing for each rotated print line where ni is
the line number and mi is the spacing in dot columns (1/80 inch) from the
previous line.
Left margin
n=1, m
n=2, m
First line
Second line
Third line
For the first print line, the distance is calculated from the margin. An ni value
of 0 is used to terminate the command. Any unspecified spacing will be set to
one. This allows data to be accurately positioned on an inserted form. These
values will be used as a template for all subsequent rotated print. On power up,
all spacing is preset to 1/80 inch (n = 1, 8 lines per inch) for all lines. This
command is only effective in 90° and 270° rotation. It will remain in effect
until a new table is received or until the printer is power cycled. An [ESC] u
<0> will have the effect of setting all lines to one. This table can be overridden
by [LF] or [ESC] J <n> commands in the rotated print data.
The value of m can be from one to 127; n can be from one to 22.
Table 12 on 40 specifies the line spacing for this command.
Page 44Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Graphic Mode
Graphic Mode
The Series 150 Printer conforms to the full definition of IBM all-points-addressable (APA) graphic
commands. The printer will only print graphics that are 2.4 inches wide. This at times can make it
difficult to use off-the-shelf graphic generation programs.
If the Series 150 Printer is used with programs that convert text to graphics, the printer will be slower
than if the printer is sent ASCII text. The Series 150 Printer is supported by a Windows’ print driver
that will allow applications to select fonts that are supported by the printer.
The Series 150 Printer is not designed to print large quantities of graphical data. If the printer is
asked to print an excessive amount of black, it will break down the job into multiple steps. This
protects the printer but slows the printing time. The printer should not be requested to print a white
on black image.
Standard APA Graphics
FunctionPrint single-density graphics (60 h x 72 v dpi)
ASCII[ESC] K <n>1 <n>
IPCLnone
DescriptionThis command prints n1 + 256 * n2 bytes of double-density graphics (120
dpi) at full speed with no consecutive dots. (Full-speed double-density
graphic mode is generally used to print 120 h by 144 v dpi resolutions in
two passes).
12/14/99Rev GPage 45
Control CodesPcOS Series 150Programmer's Guide
Graphic Mode
FunctionPrint quad-density graphics (240 h x 72 v dpi)
ASCII[ESC] Z <n>1 <n>
DescriptionThis command reassigns graphic mode <m> to resolution <n>. Possible
values for <m> are K, L, Y or Z. Resolutions <n> are 0 through 7 as
follows:
Where <m>060 dpiFull speed8-bit slicesDefault for K
1120 dpiHalf speed8-bit slicesDefault for L
2120 dpiFull speed8-bit slicesDefault for Y
3240 dpiFull speed8-bit slicesDefault for Z
480 dpiFull speed8-bit slices
572 dpiFull speed8-bit slices
690 dpiFull speed8-bit slices
7144 dpiFull speed8-bit slices
Page 46Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Graphic Mode
FunctionBegin unidirectional print
ASCII[ESC] U <1>
Hexadecimal1BH 55H 01H
Decimal<27> <85> <1>
IPCL&%GU
EPOS[ESC] U <1>
DescriptionThis command prints all data in unidirectional print mode to improve line
to line registration for graphical data.
Note: This command should be canceled before normal text is printed. It
will slow printing time if it is not canceled.
FunctionBegin bidirectional print
ASCII[ESC] U <0>
Hexadecimal1BH 55H 00H
Decimal<27> <85> <0>
IPCL&%GB
EPOS[ESC] U <0>
DescriptionThis command prints all data in bidirectional, logic-seeking print mode.
12/14/99Rev GPage 47
Control CodesPcOS Series 150Programmer's Guide
Bar codes
Bar codes
The Series 150 Printer has the ability to print bar codes. The printer will print one of five formats,
Interleaved 2 of 5, Code 39, Code 128, UPC A, and EAN-13. The host does not need to form the
graphic image for these bar codes. The host need only send the printer the information to be bar
coded, and a graphic will be generated. Bar codes can be printed in a high-resolution normal mode or
a fast, high-speed mode. The normal mode is more readable than the high speed mode. (See the
[ESC] [EM] B command on the next page for setting the bar code height and print speed.)
FunctionPrint bar code
ASCII[ESC] b <n> {information} [ETX]
EPOS[ESC] b <n> or [GS] k <n>
DescriptionThis command prints the information as a bar code. The bar code will be
centered on the print zone.
Where n0Interleaved 2 of 5Numeric (0-9) only; must be an even number of
1Code 3926 uppercase letters (A-Z) and 10 digits (0-9)
2Code 128Three sets of 106 different characters
3UPC ANumeric (0-9) only; 11 digits
4EAN-13Numeric (0-9) only; 12 digits
5UPC ENumeric (0-9) only; 11 digits
6EAN-8Numeric (0-9) only; 7 digits
7Code 9326 letters, 10 digits (0-9), and 7 special characters
10HollerithASCII data up to 16 digits
Interleaved 2 of 5is a high-density, self-checking, continuous, numeric bar code. It is mainly used
where fixed length numeric fields are required. The data field must be an even
number of characters. If an odd data field is sent to the printer, it will be zero
padded. Due to space limitations, only 16 characters can be printed. (Note:
Interleaved 2 of 5 does not read well in fast mode.)
10
digits
Code 39is an alphanumeric bar code. It is a discrete, self-checking, variable length
code. The complete data field is printed. Due to space limitations, only eight
characters can be printed. If illegal characters are passed to the printer, they
will be converted to legal codes, i.e., a → A.
Code 128is an alphanumeric bar code. It is a high-density, variable length, continuous
code that employs multiple element widths. Code 128 has three possible start
codes. The start code defines the set as Code A, B, or C. The first character in
10
The Hollerith bar code is only available on custom configurations.
Page 48Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Bar codes
the data field defines the code set, Start Code A = <135>, Code B = <136>, and
Code C = <137>. The complete data field is printed by the printer. Due to space
limitations, only nine characters can be printed. A check digit is generated by
the printer.
Code 128 NoteThe “A” space is defined as a <0>, which makes programming difficult and
causes control character conflicts for the printer. To solve the problem, the
Series 150 Printer subtracts 32 from all characters that are to be included in the
bar code. In the Code 128 definition, an “A” is <33>; however, the printer will
convert an ASCII “A” (<65>) to a <33> internally. This sets Code 128C and
the start codes off by 32.
UPC Ais a fixed length, numeric, continuous code that employs four element widths.
The printer supports Universal Product Code Version A, E, EAN-8, and EAN-
13. Version A encodes 11 digits. Typically, the UPC A format starts with a
number system digit, five-digit manufacturer’s code, five-digit product code,
and a check digit. The printer makes no assumptions about any of the codes
except the check digit. The printer will print a UPC bar code with the 11 digits
sent to it and generate the check digit. If fewer than 11 digits are sent, the
remaining digits will be zeroes. The printer will print a UPC that is about
130% the size of the UPC nominal standard, which provides optimal
readability.
UPC Eis a zero suppression version of UPC. The printer requires that the first digit is
zero for number system zero. If it is not zero, the bar code is not printed. The
printer does the compression based on the compression rules for UPC-E. The
printer will print a UPC bar code based on the 11 digits sent to it and generate
the check digit. If fewer than 11 digits are sent, the remaining digits will be
zeroes. The printer will print a UPC that is about 130% the size of the UPC
nominal standard, which provides optimal readability.
EAN-8is a fixed length, numeric, continuous code that employs four element widths.
The printer supports EAN-8, which is a superset of UPC that encodes seven
digits. The printer will print an EAN-8 bar code with the seven digits sent to it
and generate the check digit. If fewer than seven digits are sent, the remaining
digits will be zeroes. The printer will print an EAN-8 bar code that is about
130% the size of the nominal standard which provides optimal readability.
EAN-13This is a fixed length, numeric, continuous code that employs four element
widths. The printer supports EAN-13 which is a superset of UPC which
encodes 12 digits. Typically, the format starts with a number set digit, which
defines how the next six digits are encoded. The next five digits have fixed
encoding. The last is a check digit. The printer will print an EAN-13 bar code
with the 12 digits sent to it and generate the check digit. If fewer than 12 digits
are sent, the remaining digits will be zeroes. The printer will print an EAN-13
bar code that is about 130% the size of the nominal standard, which provides
optimal readability.
Code 93is an alphanumeric, variable length bar code. The complete data field is printed
by the printer. Due to space limitations, only 11 characters can be printed.
Hollerithis variable length, ASCII data that is intended for use with optical mark
readers. The printer will print a grid of encoded rectangles arranged
horizontally across the paper.
NotesA [CR] may also be used in place of the [ETX] to end the bar code data field.
Only information that is usable in a particular bar code will be printed.
DescriptionThis command sets the bar code height. Where <n> is the number of print
passes, each pass is about 0.11 inch high. If n = <0>, the printer returns to the
default values of four passes for all except UPC, which has default values of
seven. Any value from zero to nine may be specified.
FunctionSet bar code justification and human readable number print modes
ASCII[ESC] [EM] J <n>
----xx--Human readable
000----00--No numbers
404----01--Numbers on UPC bar codes
808----10--Numbers on non-UPC bar codes
1212----11--Numbers on all bar codes
Page 50Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Receipt Paper Out Sensor
Receipt Paper Out Sensor
The paper out sensor in the Series 150 Printer, senses when the paper is exhausted. When
the printer generates a paper out fault, the printer stops printing and goes off-line. If the
printer is off-line, inquires may not be accepted. To prevent the printer from going off-line
when paper out is sensed, you can send an [ESC] 8.
DescriptionThis command disables paper out sensing and is intended to
temporally disable the paper out sensor. The printer will not stop
printing or go off-line when paper out is sensed. The [ENQ]
commands will still return paper out status.
FunctionEnable paper out sensor
ASCII[ESC] 9
Hexadecimal1BH 39H
Decimal<27> <57>
IPCL&%PO
EPOSnone
DescriptionThis command enables paper sensing and is intended to reverse the
effect of the disabled paper out sensor command. If the printer is out of
paper when this command is issued, it will go off-line.
12/14/99Rev GPage 51
Control CodesPcOS Series 150Programmer's Guide
Validation Operation
Validation Operation
The form is inserted from the top and extends out the left side and/or top of the printer. It rests on
a fixed stop. A maximum of 16 lines at 40 characters can be printed on a form. In this manual,
top insertion will be termed validation mode.
FunctionOpen for validation
ASCII[ESC] [DC1]
Hexadecimal1BH 11H
Decimal<27> <17>
IPCL&%VO
EPOS[ESC] c 0 <n>
DescriptionThis command opens the form compensation assembly for validation. No
automatic validation form sensing is performed. The application must poll
the printer for validation forms present and then issue a close
compensation command.
FunctionClose for validation
ASCII[ESC] [DC3]
Hexadecimal1BH 13H
Decimal<27> <19>
IPCL&%VC
EPOS[ESC] c 0 <n>
DescriptionThis command closes the form compensation assembly for validation. No
automatic validation form sensing is performed.
FunctionClose for validation when form is sensed
ASCII[ESC] [DC4]
Hexadecimal1BH 14H
Decimal<27> <20>
IPCL&%VS
EPOS[ESC] c 0 <n>
DescriptionThis command closes the form compensation assembly for automatic
validation form sensing by the printer.
Page 52Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Validation Operation
Validation Operation Control
The Series 150 Printer has several features that can be altered during operation. For example, the
time delay between when a form is sensed and when the form clamp is activated can be changed.
This allows the operation of the printer to be tailored to the application and the form being used.
All feature control commands are extensions of the [ESC] [EM] sequence. They are defined as
follows.
FunctionValidation clamp delay
ASCII[ESC] [EM] C <n>
DescriptionThis command sets the time-out after a top validation command with
autosense is issued and the printer returns to receipt mode.
Where <n> is the delay in one minute increments; minimum is one
minute; maximum is 15 minutes. If <n> = 0, the delay is set to no time-out
(waits forever). The default is configurable.
12/14/99Rev GPage 53
Control CodesPcOS Series 150Programmer's Guide
Validation Operation
FunctionSet left/right print margin
ASCII[ESC] X <n1> <n2>
Hexadecimal1BH 58H <n1> <n2>
Decimal<27> <88> <n1> <n2>
IPCLnone
EPOS[ESC] l or [ESC] Q
DescriptionSet left and right print margin in characters from the home position.
Wheren1 = Left margin
n2 = Right margin
The absolute position depends on the current print pitch.
8 cpi10 cpi12 cpi15 cpi17.1 cpi20 cpi24 cpi
Maximum
Columns
<n1>
<n2>
18232835404656
1 to 181 to 231 to 281 to 351 to 401 to 461 to 56
<n1>+2
to 18
<n1>+2
to 23
<n1>+3
to 28
<n1>+3
to 35
<n1>+4
to 40
<n1>+4
to 46
<n1>+4
to 56
If the left and right margins are set to the right of the current horizontal
position, the new left and right margins become valid in the same line.
If the left margin is set to the left of the current horizontal position and the
right margin to the right of the current horizontal position, the right
margin becomes valid in the same line, but the left margin setting becomes
valid in the next line.
When the left and right margins are set to the left of the current horizontal
position, both left and right margin settings appear to become valid in the
next line. This is because an AUTO CR is performed by the following data.
Page 54Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Miscellaneous Control
Miscellaneous Control
FunctionClear print buffer
ASCII[CAN]
Hexadecimal18H
Decimal<24>
IPCL&%RP
EPOS[CAN]
DescriptionThis command clears any unprinted information in the printer received before
the [CAN].
If the input buffer is not being processed because the printer is out of paper or
the form is not inserted, the [CAN] command will not be processed until after
the error is cleared.
The [CAN] command does not restore default conditions. It only clears the
print buffers.
FunctionOpen cash drawer
ASCII[ESC] x <n>
Hexadecimal1BH78H <n>
Decimal<27> <120> <n>
IPCL&%D1 for Cash Drawer 1
IPCL&%D2 for Cash Drawer 2
EPOS[ESC] p
DescriptionThis command energizes cash drawer n for 150 ms. Where <n> = <1> (01H) or
1 (31H) for Cash Drawer 1 and <n> = <2> (02H) or 2 (32H) for Cash Drawer
2.
The time period the drawer is activated can be changed in the configuration
menu. The activation time can be set from 25 to 250 ms.
Note: The open cash drawer commands are processed as part of print data.
They are not processed until they are found in the input buffer by the print
processor. They are not immediate commands.
Note: Cash Drawer 2 is factory configurable in one of two modes. Either Pin 1
or 5 is active depending on an internal jumper setting. The factory default is
Pin 1. Cash Drawer 1 is always on Pin 5.
The cash drawer status is defined as an open circuit for drawer closed.
Response[SOH] <n>…Not supported via PE
DescriptionThis command can be placed in the print data and, when processed by the
printer, will return a progress status marker. The value of <n> can be any
8-bit value. It is returned to the host unaltered. The intent is for it to be a
sequence number. This command can be used to track the print progress of
the printer or verify that the data has been printed.
Note: This command is a line terminator that causes the printer to print all
previous data. If a normal line terminator (like a [CR]) is not supplied,
right justify and autocenter will not function correctly. All data will be left
justified. [ESC] q does not perform a [CR] or [LF] function.
Page 56Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Miscellaneous Control
FunctionPrint suppress and data pass through
ASCII[ESC] < <n>
DescriptionThis command provides print suppress and data pass through features.
WhereBit 0Printer select
Bit 1Pass through On
Bits 2-7 Undefined
If Bit 0 is clear, the printer will stop processing data. If Bit 1 is set, the data
will be passed through the printer and sent out on the serial port.
Notes: The pass through command is processed as part of print data. The pass
through command is not processed until it is found in the input buffer by the
print processor. It is not an immediate command. The printer must be on-line
and ready to activate the command.
The operation of the command can be altered by the print suppress
configuration.
FunctionControl feature commands
ASCII[ESC] y <n>
Hexadecimal1BH79H <n>
Decimal<27> <121> <n>
IPCL&%Y0 through 8
EPOS[ESC] y <n>
Where n0 Disables quiet mode operation
1 Enables quiet mode operation
2 Reinitializes the printer and forces IBM mode
3 Reinitializes the printer and forces EPOS mode
4 Disables IPCL commands
5 Enables IPCL commands
Note: Once disabled, this command will not be a valid IPCL code.
8 Enables extended diagnostics
DescriptionThis command enables and disables command set features.
It is possible that the IPCL commands will interfere with print data. If this is
the case, they can be disabled with an [ESC] y <4>.
Notes: Quiet mode operation prints by making two passes for every pass in
normal mode. It generates less noise because only half the print wires are
activated in each pass. This mode is very slow and should only be used if quiet
operation is needed.
ESC y <2> and <3> allow the printer to switch between Normal and EPOS
modes. When the switch takes place, the current print buffer is printed and the
printer reinitializes. These commands do not permanently change the
configuration. A power on reset will restore the mode that was configured in
menu mode. A reset by command or from the INIT pin will not restore the
mode.
EPOS Note: This command is active in EPOS mode; however, Mode 5 is
disabled.
12/14/99Rev GPage 57
Control CodesPcOS Series 150Programmer's Guide
Miscellaneous Control
FunctionEnable Dynamic Response
ASCII[ESC] w <n>
Hexadecimal1BH77H <n>
Decimal<27> <119> <n>
IPCLnone
EPOS[GS] a <n>
Where ndefines the features that cause dynamic responses.
Bit 0 Cash Drawer 0ACK/NAK <1>
Bit 1 Cash Drawer 1ACK/NAK <2>
Bit 2 Paper out statusACK/NAK <4>
Bit 3 Form in sensorACK/NAK <5>
Bit 6 Form clamp statusACK/NAK <7>
Dynamic status can be used to allow the host to sense status changes without
sending repeated inquire ([ENQ]) commands. The operation of the dynamic
response varies depending on the configuration of the printer. If the printer is
configured for Serial or IEEE 1284 operation, more than one status can be
sensed as the printer will respond to status changes as if an [ENQ] were issued.
In parallel mode, only one status should be requested. If more than one bit is
active, the resulting status on the paper error (PE) signal will not be defined.
Note: Power up default is paper out on PE signal.
FunctionActivate cutter
ASCII[ESC] v
Hexadecimal1BH 76H
Decimal<27> <118>
IPCL&%FC Cut
EPOS[ESC] m or [ESC] I
DescriptionThis command cuts the receipt tape above the current print line.
Note: This command is only effective on printers with a knife.
Page 58Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Printer Status Set/Inquire
Printer Status Set/Inquire
The Series 150 Printer is designed to be used as part of an automated system where the host computer
makes every attempt to correct problems with the printer. In addition, the host application requires
that it be able to obtain more information from the printer than is typical of normal computer printers.
A normal computer printer does not have to deal with cash drawers or validation. As a result, the
standard printer protocol must be extended to address the additional features of a POS printer.
The Series 150 Printer has defined a set of status inquiry commands that will allow a host to obtain
information about the printer and devices connected to it. The method chosen to interact with the
computer is designed to allow a reasonable approach to the host application. It will not always be
possible for an existing application to use the inquire commands unless the communication drivers
are available to the programmer.
All inquire commands require a response from the printer. For this reason, the parallel, non-IEEE
1284; IEEE 1284; and serial operation of inquire commands are different. In serial and parallel,
IEEE 1284 modes, all inquire commands are responded to by an acknowledged (ACK) or not
acknowledged (NAK) and then the command ID. In parallel non-IEEE 1284 operation, the paper
error (PE) signal is driven as a response to an inquire.
Parallel, Non-IEEE 1284 Mode Inquire
There are several status inquiry commands and inquire control commands. The inquire character
is treated differently from all other characters received by the printer. Under normal operating
conditions, all information that is sent to the printer is received and placed in a holding buffer.
The information stays in the holding buffer until the printer prints or interprets it.
The inquire command in non-IEEE 1284 mode presents a few problems for the printer to decode.
In parallel mode, the inquire character is intercepted before it is placed in the print buffer. The
next character is looked at to determine if it is a valid inquire command. If it is valid or a
graphic, further input is then blocked by not removing the busy status. The buffer is then emptied
by the printer during normal operation. If the inquire was false, the command decoder processes
a command. If an inquire is found in the data stream at this time, input is unblocked and normal
operation is resumed. The printer is unaffected by this unintended operation except that the
buffer efficiency is reduced. If the inquire was real, the inquire is processed. This ensures that the
response to the inquire is synchronized with the inquire request and that no false inquires are
processed.
In parallel, non-IEEE 1284 operation, there is no easy way to return complex information to the
host. For this reason, the paper error (PE) signal is used for inquire responses. The fault signal
will not be asserted by inquire requests. If a true PE is being signaled, the fault line will also be
driven. It is, therefore, possible to distinguish between a paper error and an inquire response.
In parallel mode, the printer will respond to the inquire before the parallel sequence is complete.
In other words, when the parallel port acknowledges the ID part of the inquire sequence, the PE
signal is valid. The host must, however, remember what status was requested as the printer has
no way of signaling that information. In addition, the host must not interpret the PE signal as an
error but as a response to an inquire. There are two ways in which inquire responses can be
signaled. The PE can be static or dynamic. When a dynamic PE occurs, the inquiry is sent once,
and the PE signal follows the requested status. If the PE remains static, the status will not
change.
12/14/99Rev GPage 59
Control CodesPcOS Series 150Programmer's Guide
Printer Status Set/Inquire
Receipt paper status is always dynamic. If the PE signal is to be returned to the valid paper error
state, an [ENQ] <4> should be issued when all other inquires are completed.
PE
DATA
STROBE
BUSY
ACK
IDNext
Valid
Figure 13 Paper-error to inquire-request timing
Serial Mode Inquire
In serial mode, inquires are not handled any differently than other commands. All inquire
commands require a response from the printer and are responded to by an acknowledged (ACK)
or not acknowledged (NAK) and then the command ID.
The serial ACK or NAK responses are always uniform and followed with a command ID. This
makes the design of the host application easier because the response can be identified and the
same format is always followed.
The printer always accepts serial data. When the printer is off-line, serial data is still accepted. It
is possible to send inquire commands to the printer even if it is off-line. Because inquire
commands are processed before they go in the buffer, the printer will respond even when it is
busy printing.
In serial mode, it is desirable that the response to an inquire be received by the host before
another inquire command is issued to the printer. When the printer receives an inquire, it must
generate a response. If inquires are sent to the printer too fast, the printer could overrun its output
buffer.
Parallel, IEEE 1284 Mode Inquire
In parallel, IEEE 1284 mode, there is a way to return status information to the host. After the
host makes an inquire request, the host can activate parallel, IEEE 1284 Mode 0 reverse channel
and wait for a response from the printer. The response to the inquire is identical to serial mode.
The printer will always accept IEEE 1284 reverse channel requests but will not accept inquire
commands when off-line. It is possible to obtain status when off-line by placing the printer in
dynamic response mode before the printer goes off-line. The IEEE 1284 reverse channel will
then respond to status changes even if the printer is off-line.
Dynamic Response Mode
Dynamic status, [ESC] w <n>, can be used to allow the host to sense status changes without
sending repeated inquiry commands. The operation of the dynamic response varies depending on
the configuration of the printer. If the printer is configured for serial or parallel, IEEE 1284
operation, more than one status can be sensed as the printer will respond to status changes as if
Page 60Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Printer Status Set/Inquire
an [ENQ] were issued. In parallel mode, only one status should be requested. If more than one bit
is active, the resulting status on the paper error (PE) signal will not be defined. The reply to
dynamic responses is the same as for inquire commands. That is, if the cash drawer status is to be
sensed, the PE or ACK/NAK will be the same as for inquire commands.
12/14/99Rev GPage 61
Control CodesPcOS Series 150Programmer's Guide
Printer Status Set/Inquire
Inquire Commands
FunctionInquire printer status
ASCII[ENQ] <n>
Hexadecimal05H <n>
Decimal<5> <n>
IPCLnone
EPOS[GS] r or [DLE] [ENQ] or [DLE] [EOT]
DescriptionThis command inquires as to the printer’s status and returns the result. The
following inquires are defined.
Note: If the printer is off-line, inquires may not be accepted.
FunctionInquire Cash Drawer 1 status
ASCII[ENQ] <1>
Hexadecimal05H 01H
Decimal<5> <1>
FunctionCash Drawer 1 status
Serial/Parallel, IEEE 1284Parallel, non-IEEE 1284
ResponseACK <1> (06H 01H)PE low
Cash Drawer 1 is closed.
NAK <1> (15H 01H)PE high
Cash Drawer 1 is open.
The cash drawer status is defined as open circuit being drawer closed.
FunctionInquire Cash Drawer 2 status
ASCII[ENQ] <2>
Hexadecimal05H 02H
Decimal<5> <2>
FunctionCash Drawer 2 status
Serial/Parallel, IEEE 1284Parallel, non-IEEE 1284
ResponseACK <2> (06H 02H)PE low
Cash Drawer 2 is closed.
NAK <2> (15H 02H)PE high
Cash Drawer 2 is open.
The cash drawer status is defined as open circuit being drawer closed.
FunctionInquire receipt-paper out
ASCII[ENQ] <4>
Hexadecimal05H 04H
Decimal<5> <4>
FunctionReceipt-paper out
Serial/Parallel, IEEE 1284Parallel, non-IEEE 1284
ResponseACK <4> (06H 04H)PE low
There is receipt paper.
NAK <4> (15H 04H)PE high
The receipt paper is exhausted.
Page 62Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Printer Status Set/Inquire
FunctionInquire form position sensor status
ASCII[ENQ] <6>
Hexadecimal05H 06H
Decimal<5> <6>
FunctionIs the form position sensor detecting a form?
Serial/Parallel, IEEE 1284Parallel, non-IEEE 1284
ResponseACK <6> (06H 06H) PE low
The position sensor is clear.
(No form present.)
NAK <6> (15H 06H)PE high
The form position sensor is
blocked. (There is a form.)
FunctionInquire form clamp status
ASCII[ENQ] <7>
Hexadecimal05H 07H
Decimal<5> <7>
FunctionInquire whether the form clamp is closed
Serial/Parallel, IEEE 1284Parallel, non-IEEE 1284
ResponseACK <7> (06H 07H)PE low
The clamp is closed.
NAK <7> (15H 07H)PE high
The clamp is not closed.
(It is open or in jam position.)
FunctionIs the buffer empty? Clear IEEE 1284 buffer.
ASCII[ENQ] <9>
Hexadecimal05H 09H
Decimal<5> <9>
FunctionThis command allows the host to know when the print buffer is
empty. If IEEE 1284 is active, this command also clears the
response buffer.
Serial/Parallel, IEEE 1284Parallel, non-IEEE 1284
ResponseACK <9> (06H 09H) PE low
The buffer is empty.
NAK <9> (15H 09H)PE high
The buffer is not empty.
12/14/99Rev GPage 63
Control CodesPcOS Series 150Programmer's Guide
Printer Status Set/Inquire
FunctionRequest printer reset
ASCII[ENQ] <10>
Hexadecimal05H 0AH
Decimal<5> <10>
FunctionReset printer
SerialParallel mode
ResponseACK <10> (06H 0AH)No response in parallel mode.
The command was accepted.
NAK <10> (15H 0AH)
The command was rejected.
DescriptionThis command is similar to asking for a power-on reset except no
internal diagnostics are run. The internal print buffer will be cleared.
The printer will be ready to except new information when the
acknowledged (ACK) response is sent. In parallel mode, the INIT
signal should be used because this command will be rejected. (In
serial/parallel mode, the command will also be rejected).
FunctionInquire power cycle status
ASCII[ENQ] <11>
Hexadecimal05H 0BH
Decimal<5> <11>
FunctionHas the printer been power cycled since the last request?
Serial/Parallel, IEEE 1284Parallel, non-IEEE 1284
ResponseACK <11> (06H 0BH)PE low
Printer power has been cycled
since last [ENQ] <11>.
NAK <5> (15H 0BH)PE high
Printer has not power cycled
since last [ENQ] <11>.
DescriptionThe first time after a reset this command will return [ACK] <11>, after
that the command will return [NAK] <11>. This command allows the
application to determine if the printer has been power cycled and needs to
be reinitialized. The [ENQ] <10> command and the INIT signal on the
parallel port will both cause the printer to return power-up status.
Page 64Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Printer Status Set/Inquire
FunctionInquire printer state
ASCII[ENQ] <15>
Hexadecimal05H 0FH
Decimal<5> <15>
FunctionReturns current printer state
Serial/Parallel, IEEE1284Parallel, non-IEEE 1284
Response[ACK] <15> <n> <r1> <r2>…Not supported via PE
Where<15> is the echo of the command ID.
n = number of return bytes + 40 (to prevent confusion with
XON/XOFF).
<r1>: Bit 0 = Form clamp closed
Bit 1 = Undefined
Bit 2 = Receipt paper out
Bit 3 = Undefined
Bit 4 = In error state (Waiting for error to be cleared)
Bit 5 = Undefined
Bit 6 = 1 always
Bit 7 = 0 always
<r2>:Forms processing state
040HNo forms processing
044HWaiting to enter validation mode or for the paper path to be
cleared to enter validation mode
045HWaiting for an internal delay time-out (auto clear)
Other states may be active but will automatically be cleared.
12/14/99Rev GPage 65
Control CodesPcOS Series 150Programmer's Guide
Printer Status Set/Inquire
FunctionInquire all printer status
ASCII[ENQ] <20>
Hexadecimal05H 14H
Decimal<5> <20>
FunctionReturns all status flags
Serial/Parallel, IEEE1284Parallel, non-IEEE 1284
Response[ACK] <20> <n> <r1> <r2>…Not supported via PE
Where<20> is the echo of the command ID.
n = number of return bytes + 40 (to prevent confusion with
XON/XOFF).
<r1>:Bit 0 = Cash Drawer 1 open
Bit 1 = Cash Drawer 2 open
Bit 2 = Receipt paper out
Bit 3 = Undefined
Bit 4 = Undefined
Bit 5 = Form sensor detects paper
Bit 6 = 1 always
Bit 7 = 0 always
<r2>:Bit 0 = Form clamp closed
Bit 1 = Undefined
Bit 2 = Buffer empty
Bit 3 = Printer power cycled (does not affect state of power
cycled flag) Use [ENQ] <11> to reset.
Bit 4 = Printer waiting in error mode
Bit 5 = Undefined
Bit 6 = 1 always
Bit 7 = 0 always
<r3>:Bit 0 = Receipt station selected
Response[ACK] <21> <n> {ID string}Not supported via PE
Where<21> is the echo of the command ID.
<n> = number of return bytes in the ID string
{ID string} is the IEEE 1284 ID return string, which is as follows:
MFG:Ithaca-Periph.;
CMD:M150CL,IPCL;
CLS:PRINTER;
MDL:S150 PcOS;
DES:Ithaca-Peripherals Series 150;
REV:01.00;
OPTS:$51xy
Where x is a bit field defined as follows:
Bit 0 = Alternate print zone
Bit 1 = 0 not defined
Bit 2 = 0 not defined
Bit 3 = Always 0
Bit 4 = Always 1
Bit 5 = Always 1
Bit 6 = Always 0
Bit 7 = Always 0
and y is a bit field defined as follows:
Bit 0 = Slip capability
Bit 1 = Knife installed
Bit 2 = MICR installed
Bit 3 = Always 0
Bit 4 = Always 1
Bit 5 = Always 1
Bit 6 = Always 0
Bit 7 = Always 0
Where n =0Prints model, configuration, and serial number
1 <n>Sets vertical alignment (<n> is the alignment value.)
Note: <n> will be written to the EEPROM if the EEPROM save sequence is
processed.
2Decreases vertical alignment adjustment
3Increases vertical alignment adjustment
4Prints a vertical adjustment alignment chart
[ACK]Returns a configuration synchronization code
C <a> <d>Changes EEPROM data at <a> to <d> (pass code locked)
DReturns menu to default (pass code locked)
IReturns ROM ID
PForces IEEE 1284 mode (This does not alter menu RAM.)
RReads and returns the menu RAM
SForces serial mode (This does not alter menu RAM.)
TClears the totals (pass code locked)
WWrites menu RAM back to EEPROM (pass code locked)
ZHalts the software
[CAN]Forces the printer to power cycle
DescriptionThese commands are designed to be used by the factory to help adjust and test
the printer. There is no guarantee that these commands are valid and/or stable.
They are not intended for use by the end user. To prevent accidental use of
these commands, they must be enabled by an [ESC] y <8> command. In some
cases, a pass code sequence is also required.
Write EEPROMThis command allows specific Menu RAM locations to be written. The
definition of the locations is not defined here. This command is intended for
use by the factory and is only active if a pass code is sent to the printer.
Page 68Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
EPOS Codes
EPOS Codes
This section lists the EPOS codes that are supported by the Series 150 Printer. Ithaca Peripherals has
no control over how Epson extends or changes these control codes. Ithaca Peripherals makes no
guarantees as to the operation of its printer when it replaces an Epson printer. The EPOS emulation is
intended to make it as easy as possible to replace an Epson printer with an Ithaca Series 150 Printer.
The following section lists the EPOS commands that are processed. They are as close as possible to
Epson printers. The user must remember that the Series 150 Printer is not designed as a drop-in
replacement for an Epson printer. The Series 150 Printer is designed to bring new and unique
features and functionalities to a POS receipt/validation printer.
Real-time Status
The Series 150 Printer is available in serial and parallel versions. When Epson supports parallel
operation, the company redefines some of the standard IEEE 1284 interface signals to be special
status lines. The Series 150 Printer does not alter the IEEE 1284 standard. If an application
requires real-time status from the printer, the IEEE 1284 bidirectional protocol must be used.
The Series 150 Printer supports real-time status. The EPOS real-time status commands [DLE]
[ENQ] and [DLE] [EOT] are processed by the printer. The printer, however, does not support all
the response bit fields. See the descriptions below.
EPOS Command Summary
Please refer to the Epson ESC/POS Information Manual for field definitions.
The following is a list of the EPOS commands that are supported.
CommandCommentDescription
[BEL]ExtensionActivate sound buzzer.
[VT]ExtensionSet vertical tabs.
[LF]Set line feed.
[FF]Eject form.
[HT]ExtensionSet horizontal tabs.
[BS]Extension
[CR]Set carriage returns.
[CAN]Not the sameCancel print.
[ESC] [BEL]ExtensionActivate sound buzzer.
[ESC] SIExtensionSet 24 cpi.
[ESC] [SP] <n>Set right-side character spacing.
[ESC] ! <n>Select print modes.
[ESC] $ <nL> <nH>Set absolute print position.
[ESC] % <n>Not implementedSelect or cancel the user-defined character set.
[ESC] & ...Not implementedDefine user-defined characters.
[ESC] * <m> <n>1 <n>2ExtensionSelect single-density bit image mode.
[ESC] - <n>Turn underline mode ON/OFF.
[ESC] 0Set eight lines per inch spacing.
[ESC] 1Set 7/72-inch spacing.
[ESC] 2Set 6 lines per inch spacing.
[ESC] 3 <n>Set line spacing.
[ESC] 4ExtensionSet italic mode set.
[ESC] 5ExtensionSet italic mode reset.
12/14/99Rev GPage 69
Control CodesPcOS Series 150Programmer's Guide
EPOS Codes
[ESC] <Return home (not necessary with the Series
150 printer).
[ESC] =Not the sameSelect peripheral device (Pass through).
[ESC] ?IgnoredCancel user-defined characters.
[ESC] @Initialize printer.
[ESC] B <n>1 <n>2 <n>3
... <n>i 0
[ESC] C <n>SimilarSet form length.
[ESC] D <n>1 <n>2
<n>3 ... <n>i 0
[ESC] E <n>Turn emphasize mode ON/OFF.
[ESC] G <n>Turn double-strike mode ON/OFF.
[ESC] J <n>Print and feed.
[ESC] K <n>Not implementedPrint and reverse feed.
[ESC] M <n>Select character font.
[ESC] Q <n>Set right margin in characters.
[ESC] R <n>Select International Character Set.
[ESC] U <n>Turn unidirectional mode ON/OFF.
[ESC] V <n>Similar
[ESC] [ <m> <n>Select code page/print features (same as
[ESC] \ <nL> <nH>Set relative print position.
[ESC] ^ ...Set Epson 9-pin bit image.
[ESC] a <n>Set left, center, or right justify.
[ESC] b <n>Print bar code (same as normal mode).
[ESC] c <n>SimilarSelect station. See description below.
[ESC] d <n>Feed <n> lines.
[ESC] e <n>Not implementedPrint and reverse feed.
[ESC] f <t1> <t2>SimilarSet wait time. See description below.
[ESC] ISet full cut.
[ESC] l <n>Set left margin in characters.
[ESC] mSet partial cut.
[ESC] p <m> <t1> <t2>SimilarGenerate pulse. See description below.
[ESC] qRelease form.
[ESC] t <n>Select Character Code Table (may vary from
[ESC] u <n>Return status of cash drawer (Serial and IEEE
[ESC] vExtensionReturn null byte to host.
[ESC] x <n>ExtensionSet print font (same as Normal [ESC] I <n>).
[ESC] { <n>Turn upside down print ON/OFF.
[ESC] ~ <n>ExtensionTest mode diagnostic commands.
[GS] !Select character size.
[GS] I <n>Transmit specified ID (different than Epson).
[GS] L ...Set left margin in 1/160 inch.
[GS] W ...Select printable area in 1/160 inch.
[GS] h <n>ExtensionSet bar code height.
[GS] k <m> ... <0>ExtensionPrint bar code.
ExtensionSet vertical tab stops.
ExtensionSet horizontal tab stops.
Turn 90° clockwise mode ON/OFF.
normal mode).
Epson Select Code).
1284 only).
Page 70Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
EPOS Deviations
EPOS Deviations
There are several important differences between the Series 150 and EPSON printers. The closest
EPSON printer to the Series 150 is the TM-U325. An application that was written for the
EPSON printer may require some modification to use the Series 150.
Command Descriptions
FunctionActivate buzzer
ASCII[BEL] or [ESC] [BEL]
DescriptionThis command activates the sound buzzer.
Note: This command only functions if the internal buzzer option was
installed at the factory.
FunctionEject form
ASCII[FF]
DescriptionThe Series 150 Printer does not support page mode. The printer will
eject a form.
FunctionCancel print data
ASCII[CAN]
DescriptionThe Series 150 Printer uses [CAN] to clear the printer line buffer.
FunctionReturn home
ASCII[ESC] <
DescriptionThe Series 150 Printer does not need this command. The Series 150
Printer never loses track of the print head. The affect of this command
is to set the next print line to print from left to right.
FunctionSelect peripheral device
ASCII[ESC] = <n>
DescriptionThe Series 150 Printer does not support the Epson Pole Display. This
command provides print suppress and data pass through functions.
WhereBit 0 Printer select
Bit 1 Pass through
Bits 2-7 Undefined
FunctionSet form length
ASCII[ESC] C <n>
DescriptionThe Series 150 Printer uses this command to set the form length.
12/14/99Rev GPage 71
Control CodesPcOS Series 150Programmer's Guide
EPOS Deviations
FunctionSet print direction
ASCII[ESC] T <n>
DescriptionThe Series 150 Printer does not implement page mode. This command
uses the normal rotated print format procedures. See [ESC] r <n> in
normal mode.
Note: EPOS reverses Modes 1 and 3.
FunctionPrint graphics
ASCII[ESC] * <m> <n>1 <n>
DescriptionThe Series 150 Printer defines the extended graphic modes. Mode 4 is
normally 80 dpi. The Series 150 Printer does not support 80 dpi. If
Mode 4 is selected, 72 dpi will be used.
Print n1 + 256 * n2 bytes of graphics where m specifies the density.
FunctionTurn 90°° clockwise font ON/OFF
ASCII[ESC] V <n>
DescriptionThe Series 150 Printer uses the rotated 90° font to implement this
command. If one dot spacing is selected, ten cpi is used. If 1.5 dot
spacing is selected, eight cpi is used.
FunctionSelect print paper
ASCII[ESC] c 0 <n>
DescriptionThe Series 150 Printer uses this command to select a print station. The
Series 150 Printer does not keep track of different settings for each
mode. If a specific print mode is required, it must be respecified.
FunctionSelect print paper for setting
ASCII[ESC] c 1 <n>
DescriptionThe Series 150 Printer does not keep track of different settings for
each mode. If a specific print mode is required, it must be respecified.
FunctionSelect detectors to stop printing
ASCII[ESC] c 4 <n>
DescriptionThe Series 150 Printer does not stop at the end of forms. The
application must keep track of the form length.
Page 72Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
EPOS Deviations
FunctionEnable/disable panel buttons
ASCII[ESC] c 5 <n>
DescriptionThe Series 150 Printer does not allow the front panel to be disabled.
FunctionEnable/disable on-line switch
ASCII[ESC] c 6 <n>
DescriptionThe Series 150 Printer ignores this command.
FunctionGenerate pulse
ASCII[ESC] p <m> <t1> <t2>
DescriptionThe Series 150 Printer does not allow the cash drawer pulse to be
altered under software control. The <t1> <t2> parameters are ignored.
<m> selects Drawer 1 or 2.
FunctionSet impact energy
ASCII[GS] E <n>
DescriptionThe Series 150 Printer allows higher impact energy in validation
modes only.
FunctionSet bar code height
ASCII[GS] h <n>
DescriptionThis command sets the bar code height in dot lines. The Series 150
Printer prints bar codes in eight dot passes in graphics. The height
used in EPOS is intended for thermal printers. To allow some type of
compatibility between EPOS and the Series 150 Printer, the value of
<n> is divided by 28. This allows a similar size bar code to be printed.
Note: Values less than 28 return the printer to the default values
defined by the [ESC] [EM] B command in normal mode.
12/14/99Rev GPage 73
Control CodesPcOS Series 150Programmer's Guide
EPOS Deviations
FunctionSet bar code
ASCII[GS] k <m> {information} [NUL]
DescriptionThe Series 150 Printer uses the same print functions to print EPOS bar
codes as the normal mode bar codes.
EPOS has two formats for bar codes. One is [NUL] terminated; the
other has a length field. If <m> is greater than 64, the next byte sets
the length in bytes. Only the [NUL] terminated command is supported
by the Series 150 Printer.
Where m0 UPC ANumeric (0-9) only, 11 digits maximum
1 UPC ENumeric (0-9) only, 11 digits maximum
2 EAN-13Numeric (0-9) only, 12 digits maximum
3 EAN-8Numeric (0-9) only, 6 digits maximum
4 Code 3926 uppercase letters (A-Z), 10 digits (0-9)
5 Interleaved 2 of 5Numeric (0-9) only, must be even number of
digits
Note: If Code 128 is to be printed, it must be printed with the [ESC] b
<n> command as described on page 48.
Page 74Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
MICROLINE Codes
MICROLINE Codes
This section lists the MICROLINE codes that are supported by the PcOS Series 150 Printer. Ithaca
Peripherals has no control over how Okidata extends or changes these control codes. Ithaca
Peripherals makes no guarantees as to the operation of its printer when it replaces an Okidata printer.
The MICROLINE emulation is intended to make it as easy as possible to replace an Okidata printer
with a Series 150 Printer.
The following section lists the MICROLINE commands that are processed. They are as close as
possible to Okidata printers. The user must remember that the Series 150 Printer is not designed as a
drop-in replacement for an Okidata printer. The PcOS Series 150 Printer is designed to bring new
and unique features and functionalities to a POS receipt/validation printer.
MICROLINE Command Summary
Please refer to the Okidata MICROLINE Information Manual for field definitions.
The following is a list of the MICROLINE commands that are supported.
This section lists the Star codes that are supported by the PcOS Series 150 Printer. Ithaca Peripherals
has no control over how Star extends or changes these control codes. Ithaca Peripherals makes no
guarantees as to the operation of its printer when it replaces a Star printer. The Star emulation is
intended to make it as easy as possible to replace a Star printer with a PcOS Series 150 Printer.
The following section lists the Star commands that are processed. They are as close as possible to a
Star printer. The user must remember that the Series 150 Printer is not designed as a drop in
replacement for a Star printer. The PcOS Series 150 Printer is designed to bring new and unique
features and functionalities to a POS receipt/validation printer.
Star Command Summary
Please refer to the Star Information Manual for field definitions.
The following is a list of the Star commands that are supported.
CommandDescription
Control codes used in character setting
[LF]Set line feed.
[CR]Set carriage return.
[ESC] z 1Set 1/6-inch line feed.
[ESC] 0Set 1/8-inch line feed.
[ESC] a <n>Feed paper n lines.
Control codes used for page layout
[FF]Set form feed.
[ESC] C <n>Set page length at n lines.
[ESC] C <0> <n>Set page length at n inches.
[VT]Set vertical tabs.
[ESC] B <n1> <n2>Set vertical tab positions.
[ESC] l <n>Set left margin.
[ESC] Q <n>Set right margin.
[HT]Set horizontal tabs.
[ESC] D <n1> <n2>Set horizontal tab positions.
12/14/99Rev GPage 77
Control CodesPcOS Series 150Programmer's Guide
STAR Codes
Control codes used for graphic printing
[ESC] 1Set 7/72-inch line feed.
[ESC] ADefine n/72-inch line feed.
[ESC] 2Set n/72-inch line feed.
[ESC] J <n>Set one-time line feed of n/72-inch.
[ESC] z 0Set 1/12-inch line feed.
[ESC] K <n1> <0>Set 8-dot single-density bit image.
[ESC] L <n1> <n2>Set 8-dot double-density bit image.
[ESC] h 1Select vertical expanded character mode.
[ESC] h 0Cancel vertical expanded character mode.
Control codes used for peripheral units
[BEL]Defer drive command for Peripheral Unit 1.
[EM]Set immediate drive command for Peripheral Unit 2.
[FS]Set immediate drive command for Peripheral Unit 1.
[SUB]Set immediate drive command for Peripheral Unit 2.
Other control codes
[RS]
[CAN]Cancel print data in buffer.
[ESC] U 1Select unidirectional print mode.
[ESC] U 0Select bidirectional print mode.
[ESC] @Initialize printer.
[ESC] ! *End italics.
[ENQ]Perform inquiry.
[ESC] d 0
[ESC] d 1Cycle autocutter.
[ESC] W 1Select expanded character mode.
[ESC] W 0Cancel expanded character mode.
[ESC] y <n>Set n/144-inch line feed.
[ESC] 3 <n>Set n/216-inch line feed.
Activate sound buzzer.
Cycle autocutter.
11
12
11
This command only functions if the internal buzzer option was installed at the factory.
12
The printer can be equipped with either a full or partial cutter option.
Page 78Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
NCR2567 Codes
NCR2567 Codes
This section lists the NCR codes that are supported by the PcOS Series 150 Printer. Ithaca Peripherals
has no control over how NCR extends or changes these control codes. Ithaca Peripherals makes no
guarantees as to the operation of its printer when it replaces an NCR printer. The NCR emulation is
intended to make it as easy as possible to replace an NCR printer with a Series 150 Printer.
The following section lists the NCR commands that are processed. They are as close as possible to
NCR printers. The user must remember that the Series 150 Printer is not designed as a drop-in
replacement for an NCR printer. The PcOS Series 150 Printer is designed to bring new and unique
features and functionalities to a POS receipt/validation printer.
NCR Command Summary
Please refer to the NCR Information Manual for field definitions. The following is a list of the
NCR commands that are supported.
CommandDescription
[ENQ]Send status byte to host.
[BEL]Open Cash Drawer 1.
[BS]Open Cash Drawer 1.
[LF]Set line feed.
[FF]Advance form one line.
[SO]Set one-line double-wide mode.
[SI]Cancel double-wide command.
[DLE]Clear all printer and interface functions.
[DC1]Deactivate all option drivers.
[DC2]Set one-line double-wide alternate command.
[DC3]Cancel double-wide alternate command.
[DC4] nSet paper feed n lines.
[NAK] nFeed n dot rows after each print line.
[SYN] nSet number of dot rows fed after each print line.
[ETB]Print buffer contents; advance one line.
[CAN]Perform validation open assembly.
[EM]Perform knife cut.
[SUB]Perform knife cut.
[GS]Close platen when form is present.
[RS]Close platen when form is present.
12/14/99Rev GPage 79
Control CodesPcOS Series 150Programmer's Guide
TELPAR Codes
Telpar Codes
This section list the Telpar codes that are supported by the PcOS Series 150 Printer. The Telpar
emulation is intended to make it as easy as possible to replace a Series 50 Printer with a Series 150.
Telpar Command Summary
The following is a list of the Telpar commands that are supported.
CommandDescription
[CR]Print and carriage return.
[LF]Print and line feed.
[ESC] [LF] <n>Feed <n> number of lines.
[FF]Advance to top of form.
[CAN]Clear buffer; restore defaults.
[ESC] 0 <n>Set page length in lines.
[ESC] 3 <n>Set extra dot row feeds per line.
ESC VT <n>Feed <n> number of dot rows.
[ESC] @Reset printer.
[SO]Set double-wide print.
[SI]Cancel double-wide print.
[BEL]Open Cash Drawer 1.
[ESC] +Open Cash Drawer 1.
[ESC] !Open Cash Drawer 1.
[ESC] [BEL] <n>Open Cash Drawer 1.
[ESC] a <n>Open Cash Drawer 1.
[ESC] c <n>Open Cash Drawer 1.
[ESC] b <n>Open Cash Drawer 2.
[ESC] d <n>Open Cash Drawer 2.
[ESC] “ <n>Open Cash Drawer 2.
[ESC] [DEL]Deactivate all option drivers.
[ESC] [DC1]Open for validation.
[ESC] [DC3]Close for validation.
[ESC] [NAK]Close for validation with autoform sense.
[ESC] [SYN] <n>Close for validation with autoform sense.
[ESC] [DC2]Cycle autocutter.
[VT]Feed to cut position.
[SOH] <n>Select multidrop printer.
[SOH] ASelect printer with address, A.
[SOH] BSelect printer with address, B.
[SOH] CSelect printer with address, C.
[SOH] [DC3]Select all printers.
Page 80Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Summary by Code
Control Codes Summary by Code
Normal
ASCII
[NUL]00Null
[ENQ]<n>05HSet inquire status.
[BS]08H&%BSSet back space.16
[HT]09H&%HTSet horizontal tabs.16
[LF]0AH&%LFSet line feed.15
[VT]0BH&%VTSet vertical tabs.20
[FF]0CH&%FFSet form feed.20
[CR]0DH&%CRSet carriage return.15
[SO]0EH&%MWSe one-line double-wide print.33
[SI]0FH&%F1Set 17 cpi.31
[DC2]12H&%F3Set 10 cpi.31
[DC4]14H&%MNCancel one-line double-wide print.33
[CAN]18H&%RPClear print buffer.55
[ESC][SI]1BH,0FH&%F4Set 24 cpi.31
[ESC][DC1]1BH,11H&%VOOpen for validation.52
[ESC][DC3]1BH,13H&%VCClose for validation.52
[ESC][DC4]1BH,14H&%VSSelect validation mode with
[ESC][EM] B
[ESC][EM] C
[ESC][EM] J
[ESC][EM] V
[ESC]# <0>1BH,23H,
[ESC]$1BH,24HCopy ROM character set to RAM
[ESC]% G1BH,25H,
[ESC]% H1BH,25H,
[ESC]*
[ESC]! <n>1BH,21H&%CS<n>Select the International Character
[ESC]- <n>1BH,2DH&%CU {n=0}
[ESC]01BH,30H&%STSet 1/8-inch line space.18
[ESC]11BH,31H&%SGSet 7/72-inch line space.19
[ESC]21BH,32HBegin variable line spacing.
[LF]0AH&%LFSet line feed.15
[VT]0BH&%VTSet vertical tabs.20
[FF]0CH&%FFSet form feed.20
[ESC]01BH,30H&%STSet 1/8-inch line space.18
[ESC]11BH,31H&%SGSet 7/72-inch line space.19
[ESC]21BH,32HBegin variable line spacing.
[ESC]3 <n>1BH,33H&%SV
[ESC]41BH,34H&%STSet top of form.20
[ESC]5 <n>1BH,35H&%CA {n=0}
[ESC]A <n>1BH,41HSet variable line spacing n/72 where
[ESC]B
[ESC]C <n>1BH,43H&%Set form length in lines or inches.21
[ESC]J <n>1BH,4AH&%FM
[ESC]R1BH,52H&%HVReset horizontal and vertical tabs to
[ESC]]1BH,5DH&%LRReverse line feed.21
[ESC]d <n>1BH,64H&%FL
[HT]09H&%HTSet horizontal tabs.16
[ESC]D
[ESC]R1BH,52H&%HVReset horizontal and vertical tabs to
[ESC]V <n>1BH,56HSet intercharacter spacing.32
[ESC]X
[ESC]a <n>1BH,61H&%JR
Second
ASCII
field
<n>1<n>
<n>3...
<n>k <0>
<n>1<n>
<n>3...
<n>k <0>
<n1><n2>
Hex CodeIPCL equivalent
code
Print/paper motion
Vertical motion
<m1><m2><m3>
&%MA {n=1}
1BH,42HSet vertical tabs at lines n1 n2...
2
<m1><m2><m3>
<m1><m2>
Horizontal motion
1BH,44HSet horizontal tabs at columns n1 n
2
1BH,58HSet left and right margins.
&%JC
&%JL
DescriptionPage
(Enable [ESC] A n).
Set fine line space n/216 inch where
n=1..255 defines the feed used by
line feed.
Set auto line feed.
n=0 end
n=1 begin
n=1..85 is enabled by [ESC] 2.
nk 0.
Do a fine line feed n/216 inch.
n=0 no line feed
n=1..255
defaults.
Feed <n> lines at the current
spacing.
... nk 0. The maximum value of n
depends on the station selected.
defaults.
n1=left in characters
n2=right in characters
Set justification.
n=0 left
n=1 center
n=2 right
n=4 180° right
n=5 180° center
n=6 180° left
180° mode not available in IPCL.
Select print mode.
n=0 High Speed Draft
n=1 Utility
n=2 NLQ Sans-Serif
n=3 NLQ Courier
Set print style. (See command
description.)
Set character set by code page.26
character set.
n=0 OFF
n=1 ON
n=0 OFF
n=1 ON
Set underline.
n=0 end
n=1 begin
Select superscript/subscript.
n=0 superscript
n=1 subscript
47
22
37
22
34
28
28
28
36
38
Page 86Rev G12/14/99
Programmer's GuidePcOS Series 150Control Codes
Summary by Function
[ESC]W <n>1BH,57H&%FS {n=0}
&%FD {n=1}
&%FH {n=3}
[ESC]_ <n>1BH,5FH&%CO {n=0}
&%MO {n=1}
Rotated print
[ESC]P <n>1BH,50H&%RF {n=1}
&%RI {n=2}
&%RN {n=0}
[ESC]r <n>1BH,72H&%R0 {n=0}
&%R1 {n=1}
&%R2 {n=2}
&%R3 {n=3}
[ESC]s <n>1BH,73H&%RL
<m1><m2><m3>
[ESC]u <n>
<m>
<n>
<m>
1
1
2
2
1BH,75H&%RSSet rotated print line spacing.
...
<n>k <0>
Graphics
[ESC]* <m>
<n>
<n>
1
2
[ESC]?
<m><n>
[ESC]K <n>
[ESC]L <n>
[ESC]Y <n>
[ESC]Z <n>
<n>
<n>
<n>
<n>
2
2
2
2
1BH,2AHPrint Epson 9-pin graphics in mode
1BH,3FHReassign graphic mode.46
1
1BH,4BHSet single-density graphics.
1
1BH,4CHSet double-density half-speed
1
1BH,59HSet double-density full-speed
1
1BH,5AHSet quad-density full-speed
[ESC]U <n>1BH,55H&%GU {n=1}
&%GB {n=0}
Set multiline double-wide doublehigh sequence.
n=0 end all
n=1 double-wide
n=2 double-high
n=3 both
Set overscore.
n=0 end
n=1 begin
Rotate font.
n=0 normal
n=1 rotated 90°
n=2 rotated 270°
Rotate print.
n=0 end
n=1 rotate by 90°
n=2 rotate left 180°
n=3 rotate by 270°
Set rotated print line length.
n=1..128 (Default 80)
nk=0 End where n=line and
m=dots from last line.
Note: All lines not specified are set
to 1 dot.
Print bar codes.
n=0 Interleave 2 of 5
n=1 Code 39
n=2 Code 128
n=3 UPC A
n=4 EAN-13
n=5 UPC E
n=6 EAN-8
n=7 Code 93
n=10 Hollerith
n=0 restore defaults
n=1-9 number of passes
(0.11” per pass)
form sense.
(Refer to command descriptions.)
through.
Open cash drawer.
n=1
n=2
features.
(See descriptions on page 57.)
by [ESC]y<8>. (See command
description for <n>.)
48
50
52
62
57
55
57
68
Page 88Rev G12/14/99
Programmer's GuidePcOS Series 150Operator Panel Controls
Chapter 6:
Operator Panel Controls
Push Buttons - Momentary Switches
The FEED key advances the receipt and journal paper.
The RELEASE key opens and closes the validation clamp. It cycles through open and close mode.
The RESUME key restarts the printer after a failure has been cleared.
Indicators
There are three indicators. They are READY, ALARM, and POWER. The printer can be in any of
the following states.
STATEREADYALARMPOWER
(Green(Red(Green
Indicator)Indicator)Indicator)
Ready (The printer is ready to receive data and print.)OnOffOn
Not readyOffOffOn
Off-line
Ready but waiting for a formFlashOffOn
Out of paperOffOnOn
Menu modeFlashOffFlash
Test modeFlashOffOn
Printer faultOffFlashOn
Printer failureOffOffOff
Watchdog fault (The printer resets.)
12/14/99Rev GPage 89
Operator Panel ControlsPcOS Series 150Programmer's Guide
Fault Indicators
If the printer indicates printer fault, the error is not recoverable. The printer must be restarted and
may lose information. To aid in printer troubleshooting, the RESUME key will activate an extended
diagnostic indication. This will blink the status indicator a number of times. The number of blinks
indicates the fault. The fault list follows.
15Firmware control fault (loss of program control)
16Cutter option fault
After the fault code is displayed, the printer can be restarted by pressing the RESUME and RELEASE
keys simultaneously.
If the EEPROM check-sum fault occurs (Fault Code 14), the EEPROM can be set to default by
pressing the RESUME and LF keys simultaneously. The printer will be functional but must be
reconfigured. This procedure is only to allow reconfiguration and not to recover printer function in
the field.
If the indication is printer failure, the printer controller is not running and is being held in reset. If
this failure occurs, the printer is not functional and should be serviced.
If the printer appears to go through a power cycle by itself, the hardware watchdog has detected a
fault. This fault is generally a hardware failure or an external interference. If the fault is hardware,
the printer will continue to cycle through its diagnostics and then reset. If this happens, the printer
must be serviced. If the fault is caused by external interference like electrostatic discharge (ESD), the
printer will generally recover by itself. (Note: The parallel port INIT pin causes a soft reset.)
Page 90Rev G12/14/99
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.