Star Micronics 150 Users Manual 100 7961g
150 to the manual 125dde58-5652-4c0b-b676-48e901827f18
2015-02-02
: Star-Micronics Star-Micronics-150-Users-Manual-487759 star-micronics-150-users-manual-487759 star-micronics pdf
Open the PDF directly: View PDF .
Page Count: 151
Download | |
Open PDF In Browser | View PDF |
PcOS SERIES 150 Receipt/Validation/Journal Printers PROGRAMMER'S GUIDE Rev G PN: 100-7959 12/14/99 Programmer’s Guide PcOS Series 150 Change History Change History 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. D Update for Firmware Rev 1.20 Added NCR2567 emulation commands Rev. C Update 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. B Update Corrected physical specifications Corrected warranty information Rev. A 12/14/99 Initial Release Rev G Page i Disclaimer PcOS Series 150 Programmer’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 ii Rev G 12/14/99 Programmer’s Guide PcOS Series 150 Table of Contents Table of Contents Overview of the Series 150 Printer ............................................................................................................1 Warranty Information..................................................................................................................1 Warranty Options ..........................................................................................................1 Service Information .......................................................................................................1 What is in this book? ...................................................................................................................1 Who should read this book? ...........................................................................................1 What does it cover?........................................................................................................1 Where can you find more information? ..........................................................................2 Contacting Ithaca Peripherals ........................................................................................2 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 Printing Specifications.................................................................................................................5 Physical Specifications ................................................................................................................8 Dimensions....................................................................................................................8 Weight...........................................................................................................................8 Electrical Characteristics .............................................................................................................8 Self-powered AC............................................................................................................8 Interface Specifications ..................................................................................................9 Media Specifications ...................................................................................................................9 Ribbon ...........................................................................................................................9 Receipt Paper.................................................................................................................9 Receipt/Journal Paper ..................................................................................................10 Printable Area ...........................................................................................................................10 Receipt Printing...........................................................................................................10 Validation Forms Printing ...........................................................................................10 Validation - Top Insertion............................................................................................11 Validation - Left-side Insertion ....................................................................................11 Control Codes Overview .........................................................................................................................12 Nomenclature ............................................................................................................................12 Standard Emulation .....................................................................................................13 IPCL Codes .................................................................................................................13 EPOS Emulation..........................................................................................................13 Microline Emulation....................................................................................................13 Star Emulation.............................................................................................................13 NCR2567 Emulation....................................................................................................14 Telpar Emulation.........................................................................................................14 Application Development ..........................................................................................................14 Tables and Charts......................................................................................................................14 Printer Control Codes..............................................................................................................................15 Print/Paper Motion ....................................................................................................................15 Low-level Paper Motion Control ..................................................................................15 Horizontal Motion Control...........................................................................................16 Vertical Motion Control ............................................................................................................18 Character Font...........................................................................................................................22 12/14/99 Rev G Page iii Table of Contents PcOS Series 150 Programmer's Guide International Character Sets and Code Pages .............................................................................24 Character Print Control .............................................................................................................30 Character Pitch..........................................................................................................................31 Character Attribute Commands .................................................................................................33 Print Rotation Commands .........................................................................................................40 Graphic Mode ...........................................................................................................................45 Standard APA Graphics...............................................................................................45 Bar codes...................................................................................................................................48 Validation Operation ...................................................................................................52 Validation Operation Control.......................................................................................53 Miscellaneous Control ...............................................................................................................55 Printer Status Set/Inquire...........................................................................................................59 Parallel, Non-IEEE 1284 Mode Inquire .......................................................................59 Serial Mode Inquire .....................................................................................................60 Parallel, IEEE 1284 Mode Inquire ...............................................................................60 Dynamic Response Mode .............................................................................................60 Inquire Commands ......................................................................................................62 Extended Diagnostic Commands ...............................................................................................68 EPOS Codes ..............................................................................................................................69 Real-time Status...........................................................................................................69 EPOS Command Summary..........................................................................................69 EPOS Deviations .........................................................................................................71 MICROLINE Codes ..................................................................................................................75 MICROLINE Command Summary ..............................................................................75 Star Codes .................................................................................................................................77 Star Command Summary.............................................................................................77 NCR2567 Codes........................................................................................................................79 NCR Command Summary ...........................................................................................79 Telpar Codes .............................................................................................................................80 Telpar Command Summary .........................................................................................80 Control Codes Summary by Code ..............................................................................................81 Control Codes Summary by Function.........................................................................................85 Operator Panel Controls..........................................................................................................................89 Push Buttons - Momentary Switches..........................................................................................89 Indicators ..................................................................................................................................89 Fault Indicators .........................................................................................................................90 Product Self-tests ....................................................................................................................................91 Level 0 Diagnostics ...................................................................................................................91 Extended Diagnostics ................................................................................................................91 Self test........................................................................................................................91 Hex-dump Mode .....................................................................................................................................92 Configuration Mode ................................................................................................................................93 Initial Power ON .......................................................................................................................93 Manual Configuration ...............................................................................................................93 Enable Remote Configuration....................................................................................................93 Feature Configuration................................................................................................................94 General Control .........................................................................................................103 Vertical Control.........................................................................................................105 Character ...................................................................................................................105 Interface ....................................................................................................................105 Options......................................................................................................................106 Save Changes ............................................................................................................106 Communications Protocol and Print Buffers..........................................................................................107 Overview.................................................................................................................................107 Page iv Rev G 12/14/99 Programmer's Guide PcOS Series 150 Table of Contents Parallel Port ............................................................................................................................110 Parallel Port Protocol .................................................................................................110 Printer Buffer Size .....................................................................................................111 Parallel Port Inquire IEEE 1284.................................................................................111 Parallel Port Inquire (Non-IEEE 1284) ......................................................................114 Parallel Port Plug and Play.........................................................................................115 Parallel Port Connector..............................................................................................116 Signal Levels .............................................................................................................116 Serial Port ...............................................................................................................................117 Serial Port Features....................................................................................................117 Serial Port Pin-out .....................................................................................................117 Serial Port Protocol....................................................................................................118 Print Buffer Flow .......................................................................................................120 Printer Buffer Size .....................................................................................................123 Serial Port Inquire .....................................................................................................124 Remote Printer Reset ...............................................................................................................125 Reset in Serial Mode..................................................................................................125 Reset in Parallel Mode ...............................................................................................125 Power-cycle Recovery ..............................................................................................................125 Programmer’s Notes................................................................................................................126 Cash Drawer Interface...........................................................................................................................127 Interface Description ...............................................................................................................127 Interface Connectors................................................................................................................127 Printing Graphics..................................................................................................................................128 Character Graphics..................................................................................................................128 APA Graphics .........................................................................................................................130 Appendix A Language Tables ...............................................................................................................133 Appendix B ASCII Code Chart .............................................................................................................135 Appendix C Ordering Cables ................................................................................................................136 General Information ................................................................................................................136 Index.....................................................................................................................................................137 12/14/99 Rev G Page v Figures and Tables PcOS Series 150 Programmer's Guide Table of Figures Figure 1 Single-wide character cell ...........................................................................................................7 Figure 2 Character forming.......................................................................................................................7 Figure 3 Physical dimensions ....................................................................................................................8 Figure 4 Receipt printable area................................................................................................................10 Figure 5 Validation print – top insertion .................................................................................................11 Figure 6 Validation print – left-side insertion..........................................................................................11 Figure 7 Example of fine line feed...........................................................................................................18 Figure 8 Data sent to printer for fine line feed .........................................................................................18 Figure 9 Examples of character print.......................................................................................................31 Figure 10 Example of one-line double-wide print ....................................................................................33 Figure 11 Data sent to printer for one-line double-wide print...................................................................33 Figure 12 Example of underline, enhanced, emphasized, superscript, and subscript print........................39 Figure 13 Paper-error to inquire-request timing.......................................................................................60 Figure 14 Parallel link options ..............................................................................................................105 Figure 15 Typical POS system...............................................................................................................107 Figure 16 Host to printer link ................................................................................................................107 Figure 17 Printer communications buffer flow.......................................................................................108 Figure 18 Parallel port data timing........................................................................................................110 Figure 19 PE to ENQ request timing .....................................................................................................114 Figure 20 Serial port flow control using DTR........................................................................................118 Figure 21 Serial port flow control XON/XOFF......................................................................................119 Figure 22 Serial buffer operation...........................................................................................................120 Figure 23 Print controller using data .....................................................................................................122 Figure 24 Inquire flow...........................................................................................................................124 Figure 25 Receipt with extended graphic characters ..............................................................................129 Figure 26 Receipt with APA graphics....................................................................................................130 Table of Tables Table 1 Normal print zone character specifications ...................................................................................5 Table 2 Wide print zone character specifications.......................................................................................6 Table 3 Power input requirements .............................................................................................................8 Table 4 Validation lines ..........................................................................................................................10 Table 5 Language table IDs.....................................................................................................................25 Table 6 EPOS language table IDs............................................................................................................25 Table 7 Code page definition table ..........................................................................................................26 Table 8 EPOS code page definition table .................................................................................................27 Table 9 Euro Character Substitution Matrix ............................................................................................29 Table 10 Print modes ..............................................................................................................................30 Table 11 Intercharacter spacing table ......................................................................................................32 Table 12 Rotated print spacing................................................................................................................40 Table 13 Parallel port pin-outs ..............................................................................................................116 Table 14 Serial bit rates.........................................................................................................................117 Table 15 Serial port pin-outs .................................................................................................................117 Table 16 Ithaca cash drawer connector..................................................................................................127 Table 17 Epson/Axiohm cash drawer connector ....................................................................................127 Table 18 Star cash drawer connector .....................................................................................................127 Table 19 Code page definitions .............................................................................................................134 Page vi Rev G 12/14/99 Programmer's Guide PcOS Series 150 Table of Figures Table 20 ASCII chart ............................................................................................................................135 12/14/99 Rev G Page vii Programmer's Guide PcOS Series 150 Overview Chapter 1: Overview of the Series 150 Printer Warranty Information Warranty Options 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: • • • • • • • 12/14/99 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. Rev G Page 1 Overview PcOS Series 150 Programmer'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 Guide Windows 95 print driver with documentation Windows NT 4.0 print driver with documentation OPOS drivers with documentation Master character set definitions PN 100-01085 PN 100-9167 PN 100-9170 PN 100-9732 PN 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 Main fax Sales fax Technical Support fax Technical Support E-mail (607) 257-8901 (607) 257-8922 (607) 257-3868 (607) 257-3911 techsupport@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 2 Rev G 12/14/99 Programmer's Guide PcOS Series 150 General 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: • • • • • • • • • • • • • • • 1 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;1 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; Emphasized, enhanced, double-wide, double-high, double-wide double-high, half-high, underline, subscript, superscript, and rotated print; Operator-visible print zone; Self-diagnostics; and Setup and configuration utility program. Other emulation’s can be made available. Contact Ithaca Peripherals’ Sales Department for more information. See “Contacting Ithaca Peripherals” on page 2. 12/14/99 Rev G Page 3 General Description PcOS Series 150 Programmer'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 4 Rev G 12/14/99 Programmer's Guide PcOS Series 150 General Specifications Chapter 3: General Specifications Printing Specifications Printing method Head wire arrangement Print wire diameter Print wire pitch Printing directions Print zone Characters per inch Characters per line Characters per second impact dot matrix 9 pins in line 0.34 mm (0.012 inch) 0.35 mm (0.013 inch) bidirectional, logic-seeking 60.96 mm (2.40 inch) or 71.97 mm (2.83 inch) Refer to Table 1. Refer to Table 1. Refer to Table 1. Print Pitch Capability (in characters per inch) Normal 2.40” Maximum Characters per Line Characters per Second 8 18 220 10 24 275 12 28 330 15 36 340 17.1 (condensed) 41 340 20 (super-condensed) 48 340 24 (super-condensed) 57 340 5 (double-wide) 12 175 6 (double-wide) 14 175 7.5 (condensed, double-wide) 18 175 8.5 (condensed, double-wide) 20 175 10 (super-condensed, double-wide) 24 175 12 (super-condensed, double-wide) 28 175 Table 1 Normal print zone character specifications Note: The Series 150 Compatibility Mode can be set in menu RAM and will limit printing to 40 characters in 17.1 characters per inch (cpi). 12/14/99 Rev G Page 5 General Specifications Print Pitch Capability PcOS Series 150 Programmer's Guide Wide 2.83” Maximum Characters per Characters per Line Second 8 22 (180) 10 28 (250) 12 34 (275) 15 42 (275) 17.1 (condensed) 48 (275) 20 (super-condensed) 56 (275) 24 (super-condensed) 68 (275) 5 (double-wide) 14 (140) 6 (double-wide) 17 (140) 7.5 (condensed, double-wide) 21 (140) 8.5 (condensed, double-wide) 24 (140) 10 (super-condensed, double-wide) 28 (140) 12 (super-condensed, double-wide) 34 (140) (in characters per inch) Table 2 Wide print zone character specifications Character Generation 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 6 Rev G 12/14/99 Programmer's Guide PcOS Series 150 General Specifications The following illustration shows a single-wide character cell. 1 3 5 7 9 2 4 6 8 10 1 3 5 7 9 11 2 4 6 8 10 12 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 Full Dots Half Dots Descender (Row 8 & 9) & Underline (Row 9) Character Spacing Character Spacing Utility Mode High Speed Draft 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 3 5 7 9 2 4 6 8 10 1 3 5 7 9 2 4 6 8 10 1 2 3 4 5 6 7 8 9 Figure 2 Character forming 12/14/99 Rev G Page 7 General Specifications PcOS Series 150 Programmer'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 weight Shipping weight 7.0 pounds (3.2 kg) 10.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) Supply Voltage Range (VAC) Frequency (Hz) Rated Power (watts) Idle Current (amps) Printing Current (amps) 100 - 240 90 - 264 47 - 63 45 0.08 @ 120VAC 0.9 @ 120VAC 0.04 @ 240VAC 0.4 @ 240VAC Table 3 Power input requirements Page 8 Rev G 12/14/99 Programmer's Guide PcOS Series 150 General 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 method Ink color Ribbon life at 25 °C Manufacturer Cartridge type, 1.8 m seamless ribbon with reinker Black or purple 3 million (black) or 4.5 million (purple) characters to ink depletion2 Only Ithaca Peripherals approved ribbons should be used. Receipt Paper Paper feed method Paper feed pitch Paper width Roll diameter Paper thickness Roll paper core Roll footage (typical) Receipt-paper out 2 Friction feed Default - 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 2.75, 3.00, or 3.25 inches (69.85, 76.20, 82.55 mm) 3.50 inches (88.90 mm) 0.003 - 0.0035 inch (0.76 - 0.089 mm) at 25 °C Inside diameter 0.44 inch (7/16 inch or 11.11 mm) 240 feet (7315 cm) Paper exhaust is sensed by software, and printing is prevented at the end of the roll. 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/99 Rev G Page 9 General Specifications PcOS Series 150 Programmer's Guide Receipt/Journal Paper Paper-feed method Paper-feed pitch Paper width Roll diameter Paper thickness at 25 °C Two-ply Three-ply Roll paper core Roll footage (typical) Two-ply Three-ply Receipt-paper out Friction feed Default - 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 2.75, 3.00, or 3.25 inches (69.85, 76.20, 82.55 mm) 3.50 inches (88.90 mm) 0.006 - 0.007 inch (0.15 - 0.18 mm) 0.009 - 0.0105 inch (0.23 - 0.27 mm) Inside diameter 0.44 inch (7/16 inch or 11.11 mm) 110 feet (3353 cm) 70 feet (2134 cm) Paper 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) 0.46 inch (11.68 mm) 3.25 inches (82.55 mm) Figure 4 Receipt printable area 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 8 16 6 12 Table 4 Validation lines Page 10 Rev G 12/14/99 Programmer's Guide PcOS Series 150 General Specifications Validation - Top Insertion First line of print 4.25 inches (min) (107.95 mm) 2.85 inches (72.39 mm) Last line of print 0.68 inch (17.15 mm) 2.34 inches (59.44 mm) 0.50 in (12.70 mm) 2.50 inches (min) (63.50 mm) Figure 5 Validation print – top insertion Validation - Left-side Insertion First line of print 0.50 inch (12.7 mm) Last line of print 2.50 inches (min) (63.50 mm) 2.85 inches (72.39 mm) 2.34 inches (59.44 mm) 0.68 inch (17.15 mm) 6.00 inches (min) (152.40 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/99 Rev G Page 11 Control Codes Overview PcOS Series 150 Programmer'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.indicates a variable parameter. can have a value of from 0 to 255. The meaning of is described and defined in the description of the command. indicates that there are two parameters, and , where both can have values from 0 to 255. is an IPCL parameter consisting of two digits where and are ASCII characters from 0 to 9. The values will be combined to form a value from 0 to 99. If 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 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 12 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control 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/99 Rev G Page 13 Control Codes Overview PcOS Series 150 Programmer'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 14 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Print/Paper Motion Chaper 5: Printer Control Codes Print/Paper Motion Low-level Paper Motion Control Function ASCII Hexadecimal Decimal IPCL EPOS Carriage return [CR] 0DH <13> &%CR 0DH Description This 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. 6 Function ASCII Hexadecimal Decimal IPCL EPOS Line feed [LF] 0AH <10> &%LF 0AH Description This 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. 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/99 Rev G Page 15 Control Codes PcOS Series 150 Programmer'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. Function ASCII Hexadecimal Decimal IPCL EPOS Horizontal tab [HT] 09H <9> &%HT [HT] Description This command inserts spaces in the print buffer up to the next tab stop. The default tab locations are every 8 spaces. Function ASCII Hexadecimal Decimal IPCL EPOS Back space [BS] 08H <8> &%BS [BS] Description This command prints the data 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. Function ASCII Hexadecimal Decimal IPCL EPOS Set horizontal tab stops [ESC] D ... 0 1BH 44H ... 00H <27> <68> ... <0> none [ESC] D ... 0 Description This command sets tab stops at the character columns specified by . 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 16 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Horizontal Motion Function ASCII Hexadecimal Decimal IPCL EPOS Reset horizontal and vertical tab stops [ESC] R 1BH 52H <27> <82> &%HV none Description This command resets horizontal and vertical tab stops to power up configuration. The power up horizontal default is every 8 spaces, i.e., 9, 17, 25, etc. The vertical default is every line. Function ASCII Hexadecimal Decimal IPCL EPOS Set justification [ESC] a 1BH 61H <27> <97> &%JL, &%JC, &%JR [ESC] a Description This command sets the horizontal justification. Where 0 = left justified 1 = center justified 2 = right justified &%JL &%JC &%JR The print format can be right, center, or left justified. The value of 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. Note: Justify commands do not affect graphics. 12/14/99 Rev G Page 17 Control Codes PcOS Series 150 Programmer's Guide Vertical Motion Vertical Motion Control Function Fine line feed ASCII Hexadecimal Decimal IPCL EPOS [ESC] J 1BH 4AH <27> <74> &%FM [ESC] J Description This command prints the contents of the buffer (if any) and performs a line feed of n/216 inch. This command does not change the default line spacing value. The next character print position is reset to the left margin. EPOS Note: In EPOS mode, this command performs line feeds in n/144-inch increments. Example of Fine Line Feed[CR] [ESC]J<54> This line is 1/4" below the first.[CR][LF] This line is spaced at the default 1/8".[CR][LF] Figure 7 Example of fine line feed of Figure 8 Data sent to printer for fine line feed Function ASCII Hexadecimal Decimal IPCL EPOS Set variable line space in n/216 inch [ESC] 3 1BH 33H <27> <51> &%SV [ESC] 3 Description This command sets the default line spacing in n/216 inch. Set n = 1 to 255. This command takes effect immediately and sets the line feed spacing used by [LF] to values other than 1/8 or 7/72 inch. EPOS Note: Line spacing of n/144 is used. Function ASCII Hexadecimal Decimal IPCL EPOS Set line space to 27/216 inch [ESC] 0 1BH 30H <27> <48> &%ST [ESC] 2 Description This command sets the text default line spacing to 1/8 or 27/216 inch which is the standard eight lines per inch line spacing at initial power up. EPOS Note: In EPOS mode, this command sets 1/6-inch spacing or 6 lines per inch. Page 18 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Vertical Motion Function ASCII Hexadecimal Decimal IPCL EPOS Set line space 21/216 or 7/72 inch [ESC] 1 1BH 31H <27> <49> &%SG none Description This command sets the default line spacing to 21/216 inch. This line spacing is for all-points-addressable (APA) graphics printing. Function ASCII Hexadecimal Decimal IPCL EPOS Set variable line space n/72 inch [ESC] A 1BH 41H <27> <65> none none Description This 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. Function ASCII Hexadecimal Decimal IPCL EPOS Enable [ESC] A line spacing [ESC] 2 1BH 32H <27> <50> none none Description [ESC] 2 enables [ESC] A line spacing. This is a companion to the [ESC] A command and puts the specified line spacing into effect. It will remain in effect until another line spacing command is issued. Function ASCII Hexadecimal Decimal IPCL EPOS Feed lines at current spacing [ESC] d 1BH 64H <27> <100> &%FL [ESC] d Description This command prints the contents of the buffer (if any) and performs 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/99 Rev G Page 19 Control Codes PcOS Series 150 Programmer's Guide Vertical Motion Function ASCII Hexadecimal Decimal IPCL EPOS Vertical tab [VT] 0BH <11> &%VT (VT) Description The 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. Function ASCII Hexadecimal Decimal IPCL EPOS Set vertical tab stops [ESC] B ... 0 1BH 42H ... 00H <27> <66> ... <0> none [ESC] B ... 0 Description This command sets tab stops at line positions specified by . 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. Function ASCII Hexadecimal Decimal IPCL EPOS Form feed [FF] 0CH <12> &%FF none Description This command performs a form feed to the top of the form. Function ASCII Hexadecimal Decimal IPCL EPOS Set top of form [ESC] 4 1BH 34H <27> <52> &%TF [ESC] L Description This command sets the top of form to the current position. Page 20 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Vertical Motion Function ASCII Hexadecimal Decimal IPCL EPOS Set form length in lines [ESC] C 1BH 43H <27> <67> &%SL [ESC] C Description This command sets the form length to lines at the current line spacing. Function ASCII Hexadecimal Decimal IPCL EPOS Set form length in inches [ESC] C [NUL] 1BH 43H <0> <27> <67> <0> &%SI none Description This command sets the form length to inches. Function ASCII Hexadecimal Decimal IPCL EPOS Begin auto line feed [ESC] 5 <01> 1BH 35H 01H <27> <53> <01> &%MA none Description This command sets auto line feed mode. Note: This overrides the configuration setting. Function ASCII Hexadecimal Decimal IPCL EPOS End auto line feed [ESC] 5 <0> 1BH 35H 00H <27> <53> <0> &%CA none Description This command ends auto line feed mode. Note: This overrides the configuration setting. Function ASCII Hexadecimal Decimal IPCL EPOS Reverse line feed [ESC] ] 1BH 5DH <27> <93> &%LR none Description This command performs a reverse line feed at the current line spacing. Note: The receipt station can tolerate no more than 1/2 inch of reverse feed. Note: This command is not available in models with validation. 12/14/99 Rev G Page 21 Control Codes PcOS Series 150 Programmer's Guide Character Font Character Font Function Begin High Speed Draft (HSD) Mode ASCII Hexadecimal Decimal IPCL EPOS [ESC] # <0> 1BH 23H 00H <27> <35> <0> &%QT [ESC] ! Description This command begins high speed draft print mode (one pass, 7 x 7 font). Enhanced, emphasized, subscript, superscript, and underline character attributes are not available in this mode. To maintain optimum print speed, the printer should be returned to HSD mode when possible. Function ASCII Hexadecimal Decimal IPCL EPOS Select print quality mode [ESC] I 1BH 49H 00H <27> <73> <0> &%QT High Speed Draft (HSD) &%QU Utility &%QL Near Letter Quality (NLQ) Courier &%QS Near Letter Quality (NLQ) Sans Serif [ESC] x and/or [ESC] ! Description This command begins utility or NLQ print mode. Where n 0 = HSD 1 = Utility 2 = NLQ Courier 3 = NLQ Sans Serif 4 - 7 repeats 0 - 3 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] ! performs a similar function; however, NLQ is not available. Where n-bits Page 22 76543210 1--------1-------1----------X Function Underline Double-wide Double-high Font: 1 = Utility, 0 = HSD Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Character Font Function ASCII Hexadecimal Decimal IPCL EPOS Description Begin 90°° rotated font [ESC] P <1> 1BH 50H 1H <27> <80> <1> &%RF{n=1} &%RN{n=0} [ESC] V This 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 = 0, rotation is turned off. If = 1, the pitch is set to ten cpi. If = 2, the cpi is set to eight. Function ASCII Hexadecimal Decimal IPCL EPOS Begin 270°° rotated font [ESC] P <2> 1BH 50H 2H <27> <80> <2> &%RI{n=2} &%RN{n=0} none Description This 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. Function ASCII Hexadecimal Decimal IPCL EPOS End rotated font [ESC] P <0> 1BH 50H 00H <27> <80> <0> &%RN [ESC] V Description This command returns the print font to normal nonrotated mode. Note: This command leaves the printer in utility mode. 12/14/99 Rev G Page 23 Control Codes PcOS Series 150 Programmer'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.7 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. 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] ^ 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. 7 Function ASCII Hexadecimal Decimal IPCL EPOS Select international character set [ESC] ! 1BH 21H <27> <33> &%CS [ESC] R Description This command selects the international character set, . In standard mode, the value of is as follows: Epson provides limited code page support through ID to code page translation. Only six translations are defined. Page 24 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Character Sets and Code Pages Language Language Language 64-’@’ ASCII (slashed zero) 71-’G’ Norwegian 78-’N’ Swedish IV 65-’A’ ASCII (unslashed zero) 72-’H’ Dutch 79-’O’ Turkish 66-’B’ British 73-’I’ Italian 80-’P’ Swiss I 67-’C’ German 74-’J’ French Canadian 81-’Q’ Swiss II 68-’D’ French 75-’K’ Spanish 69-’E’ Swedish 76-’L’ Swedish II 70-’F’ Danish 77 -’M’ Swedish III Table 5 Language table IDs Country Code/ Language Set Epson ID ASCII 0 Swiss II 20 Windows Greek 50 French 1 Cyrillic II-866 21 Latin 5 51 Language Set Epson ID Country Code/ Language Set Epson ID Country Code/ (Windows Turkey) German 2 Polska Mazovia 22 Windows Cyrillic 52 British 3 ISO Latin 2 23 Hungarian CWI 54 Danish I 4 Serbo Croatic I 24 Kamenicky (MJK) 55 Swedish I 5 Serbo Croatic II 25 ISO Latin 4 (8859/4) 56 Italian 6 Multilingual 26 Turkey_857 57 Spanish I 7 Norway 27 Roman-8 58 Japanese 8 Portugal 28 Hebrew NC (862) 60 Norwegian 9 Turkey 29 Hebrew OC 61 Danish II 10 Greek 437 38 Windows Hebrew 62 Spanish II 11 Greek 928 39 KBL- Lithuanian 63 Latin American 12 Greek 437 CYPRUS 42 Ukrainian 66 French Canadian 13 ECMA-94 43 ISO Latin 6 (8859/10) 67 Dutch 14 Canada French 44 Windows Baltic 68 Swedish II 15 Cyrillic I-855 45 Cyrillic-Latvian 69 Swedish III 16 Cyrillic II-866 46 Bulgarian 72 Swedish IV 17 East Europe Latin II-852 47 Icelandic-861 73 Turkish 18 Greek 869 49 Baltic 774 74 Swiss I 19 Windows East Europe Table 6 EPOS language table IDs 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/99 Rev G Page 25 Control Codes PcOS Series 150 Programmer's Guide Character Sets and Code Pages Function ASCII Hexadecimal Decimal IPCL EPOS Select character code page [ESC] [ T 1BH 5BH 54H <27> <91> <84> &%CP [ESC] t Description This command selects the character code page . The Series 150 Printer supports many code pages. The following code pages are supported. Code Page Country Code/ Language Set USA (slashed zero) Decimal 0,64 Hex 0H,040H Code Page 866 Country Code/ Language Set Cyrillic II-866 Decimal 3,98 Hex 3H,062H 65 USA (unslashed zero) 0,65 0H,041H 869 Greek 869 3,101 3H,065H 66 British 0,66 0H,042H 67 German 0,67 0H,043H 874 Thailand 3,106 3H,06AH 895 Kamenicky (MJK) 3,127 68 French 0,68 3H,07FH 0H,044H 1008 Greek 437 3,240 69 Swedish I 3H,0F0H 0,69 0H,045H 1009 Greek 928 3,241 70 3H,0F1H Danish 0,70 0H,046H 1011 Greek 437 Cyprus 3,243 3H,0F3H 71 Norwegian 0,71 0H,047H 1012 Turkey 3,244 3H,0F4H 72 Dutch 0,72 0H,048H 1013 Cyrillic II-866 3,245 3H,0F5H 73 Italian 0,73 0H,049H 1014 Polska Mazovia 3,246 3H,0F6H 74 French Canadian 0,74 0H,04AH 1015 ISO Latin 2 3,247 3H,0F7H 75 Spanish 0,75 0H,04BH 1016 Serbo Croatic I 3,248 3H,0F8H 76 Swedish II 0,76 0H,04CH 1017 Serbo Croatic II 3,249 3H,0F9H 77 Swedish III 0,77 0H,04DH 1018 ECMA-94 3,250 3H,0FAH 78 Swedish IV 0,78 0H,04EH 1019 Windows East Europe 3,251 3H,0FBH 79 Turkish 0,79 0H,04FH 1020 Windows Greek 3,252 3H,0FCH 80 Swiss I 0,80 0H,050H 1021 Latin 5 (Windows Turkey) 3,253 3H,0FDH 81 Swiss II 0,81 0H,051H 1022 Windows Cyrillic 3,254 3H,0FEH 90 Publisher 0,90 0H,05AH 1024 Hungarian CWI 4,0 4H,000H 91 Welsh 0,91 0H,05BH 1026 ISO Latin 4 (8859/4) 4,2 4H,002H 437 USA 1,181 1H,0B5H 1027 Ukrainian 4,3 4H,003H 774 Baltic 774 3,6 3H,006H 1028 Roman-8 4,4 4H,004H 850 Multilingual 3,82 3H,052H 852 East Europe Latin II-852 3,84 3H,054H 1029 ISO Latin 6 (8859/10) 4,5 4H,005H 855 Cyrillic I-855 3,87 3H,057H 1030 Hebrew NC (862) 4,6 4H,006H 857 Turkey 857 3,89 3H,059H 1031 Hebrew OC 4,7 4H,007H 860 Portugal 3,92 3H,05CH 1032 Windows Hebrew 4,8 4H.008H 861 Icelandic-861 3,93 3H,05DH 1033 KBL- Lithuanian 4,9 4H,009H 862 Hebrew NC (862) 3,94 3H,05EH 1034 Windows Baltic 4,10 4H,00AH 863 Canada French 3,95 3H,05FH 1035 Cyrillic-Latvian 4,11 4H,00BH 865 Norway 3,97 3H,061H 1072 Bulgarian 4,48 4H,030H 64 Table 7 Code page definition table 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. Page 26 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Character Sets and Code Pages EPOS Note: EPOS defines as follows: Character Code Page Character Code Page 0 Code Page 437 3 Code Page 860 1 Not supported 4 Code Page 863 2 Code Page 850 5 Code Page 865 Table 8 EPOS code page definition table Function ASCII Hexadecimal Decimal IPCL EPOS Print control character [ESC] ^ 1BH 5EH <27> <94> &%CC [ESC] ^ Description This 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. can be from 0 to 255. Function ASCII Redefine Character Set [ESC] [ S … 1BH 5BH 40H … <27> <91> <64> none none This command allows an application to replace or redefine the active character set mapping in the printer. defines the total length of the following data: + 256 * = 1 + 2 * is the total number of characters to be replaced. is the first character in the active map to be replaced. 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. Hexadecimal Decimal IPCL EPOS Description Where 8 The internal character map is provided in the Master Character Set Definitions Guide (PN 100-9785). 12/14/99 Rev G Page 27 Control Codes PcOS Series 150 Programmer'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. Function ASCII Hexadecimal Decimal IPCL EPOS Character font image download [ESC] = 1BH 3DH <27> <61> none none Description This command allows custom characters to be downloaded. The total count is [(number of characters x 9) + 1] = (n1 + 256 * n2). The start code is the starting character where the download is to start. Function ASCII Hexadecimal Decimal IPCL EPOS Copy ROM Character Set to RAM Character Set [ESC] $ 1BH 24H <27> <36> none none Description This command copies the internal ROM character set to the RAM character set. Function ASCII Hexadecimal Decimal IPCL EPOS Custom character set ON [ESC] > 1BH 3EH <1> <27> <62> <1> none none Description This selects the custom character set contained in the RAM font buffer. Page 28 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Character Sets and Code Pages Function ASCII Hexadecimal Decimal IPCL EPOS Custom character set OFF [ESC] > 1BH 3EH <0> <27> <62> <0> none none Description This command turns off the custom character set contained in the RAM font buffer. Function ASCII Hexadecimal Decimal IPCL EPOS Description Insert Euro Character [ESC] [ C 1BH 5BH 43H <27> <91> <67> &%EU none This 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 . 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. Euro Character Substitution Matrix Name Epson IBM Code Page Insertion Point 850 26 850 0xD5 Turkey 857 57 857 0xD5 Win Cyrillic 52 1022 0x88 Win Turkish 51 1021 0x80 Win Greek 50 1020 0x80 Win Hebrew 62 1032 0x80 Win Baltic 68 1034 0x80 Table 9 Euro Character Substitution Matrix 12/14/99 Rev G Page 29 Control Codes PcOS Series 150 Character Pitch Programmer's Guide Ithaca Peripherals Character Print Control 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. Operation 8 cpi 10 cpi 12 cpi 15 cpi 17 cpi 20 cpi 24 cpi Line gph Ital Super /sub Util NLQ HSD Emph Enhan Dblwide Dblhigh Under /over ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü L L L L ü ü ü ü ü ü ü ü ü ü ü ü L L L L L ü ü ü L L L L L ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü L ü ü L L ü ü ü ü ü ü ü ü ü ü ü ü L L ü ü ü L L ü ü ü L L L L ü L L ü ü ü L ü ü ü ü ü ü L L L L Line graphics ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü Italics ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü L ü L L ü ü ü ü L ü L L ü ü ü ü L ü L L ü ü ü ü L ü L L ü ü ü ü ü ü L L ü ü L ü ü L ü ü ü ü ü ü ü L ü ü ü ü ü ü ü ü ü ü ü ü ü L L ü ü L L ü ü L L L L ü L L L L L 8 cpi 10 cpi 12 cpi 15 cpi 17 cpi 20 cpi 24 cpi Supercript/ subscript Utility NLQ HSD Emphasized Enhanced Double-wide Double-high Underline/ Overline Rotate 90°/270° Table 10 Print modes Notes: ü L Page 30 Feature available Feature not available Rev G 12/14/99 L Programmer's Guide PcOS Series 150 Control Codes Character Pitch Character Pitch Function Begin 10 cpi character pitch ASCII Hexadecimal Decimal IPCL EPOS [DC2] 12H <18> &%F3 [ESC] [SP] Description This command sets ten character per inch print pitch. Function ASCII Hexadecimal Decimal IPCL EPOS Begin 12 cpi character pitch [ESC] : 1BH 3AH <27> <58> &%F2 [ESC] [SP] Description This command sets 12 character per inch print pitch. Function ASCII Hexadecimal Decimal IPCL EPOS Begin 17 cpi character pitch [SI] 0FH <15> &%F1 [ESC] [SP] Description This command sets 17 character per inch print pitch Function ASCII Hexadecimal Decimal IPCL EPOS Begin 24 cpi character pitch [ESC] [SI] 1BH 0FH <27> <15> &%F4 [ESC] [SP] Description This command sets 24 character per inch print pitch Figure 9 Examples of character print 12/14/99 Rev G Page 31 Control Codes PcOS Series 150 Programmer's Guide Character Pitch Function ASCII Hexadecimal Decimal IPCL EPOS Set specified character pitch [ESC] [ P 1BH 5BH 50H <27> <91> <80> &%F [ESC] [SP] Description This command sets characters per inch print pitch to . Where n = <8> <10> <12> <15> <17> <20> <24> Function Mode ASCII Hexadecimal Decimal IPCL EPOS Set intercharacter spacing Global [ESC] V 1BH 56H <27> <86> none [ESC] [SP] Description Set intercharacter spacing by adding white space between characters. The value of 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. selects 8 cpi selects 10 cpi selects 12 cpi selects 15 cpi selects 17 cpi selects 20 cpi selects 24 cpi &%F7 &%F3 &%F2 &%F6 &%F1 &%F5 &%F4 Pitch Spacing HSD 8 cpi 1/80 * n HSD 10 cpi 1/100 * n HSD 12 cpi 1/120 * n HSD 15 cpi 1/150 * n HSD 17 cpi 1/171 * n HSD 20 cpi 1/200 * n HSD 24 cpi 1/240 * n Utility/NLQ 8 cpi 1/150 * n Utility/NLQ 10 cpi 1/120 * n Utility/NLQ 12 cpi 1/144 * n Utility/NLQ 15 cpi 1/180 * n Utility/NLQ 17 cpi 1/205 * n Utility/NLQ 20 cpi 1/240 * n Utility/NLQ 24 cpi 1/288 * n Table 11 Intercharacter spacing table Page 32 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Character Attributes Character Attribute Commands Function Begin one-line double-wide print ASCII Hexadecimal Decimal IPCL EPOS [SO] 0EH <14> &%MW none Description This 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 Function ASCII Hexadecimal Decimal IPCL EPOS Cancel one-line double-wide print [DC4] 14H <20> &%MN none Description This command cancels one-line double-wide mode set by the [SO] command and allows single- and double-wide characters to be printed on the same line. 12/14/99 Rev G Page 33 Control Codes PcOS Series 150 Programmer's Guide Character Attributes Function ASCII Hexadecimal Decimal IPCL EPOS Description Where Multiline double-wide and double-high [ESC] W 1BH 57H <27> <87> &%FD, &%FS, &%FH (Note: Single-wide, double-high print is not available in IPCL). [ESC] ! This command controls multiline double-wide or double-high mode. n specifies the mode 0 begins standard single-wide and single-high &%FS 1 begins double-wide &%FD 2 begins double-high none 3 begins double-wide, double-high &%FH Note: This command does not affect line spacing. EPOS Note: [ESC] ! performs a similar function; however, NLQ is not available. Where n-bits 76543210 1--------1-------1----------X Function ASCII Hexadecimal Decimal IPCL Set print style: double-wide, double-high, italic control [ESC] [ @ [EOT] [NUL] [NUL] 1BH 5BH 40H 04H 00H 00H <27> <91> <64> <04> <0> <0> &%DH Double-high, double-wide, and double-space &%SH Single-high, single-wide, and single-space Also, see [ESC] W. This command sets double-wide, double-high, and italic print mode. k-bits 76543210 ----xxxx Italic control 0 ----0000 No change 1 ----0001 Italic On 2 ----0010 Italic Off n-bits 76543210 ----xxxx Height multiplier 0 ----0000 No change 1 ----0001 Single high 2 ----0010 Double high xxxx---Line spacing 0 0000---No change 16 0001---Single line feed 32 0010---Double line feed m-bits 76543210 ----xxxx Width multiplier 0 ----0000 No change Description Where Where Where Page 34 Function Underline Double-wide Double-high Font: 1 = Utility, 0 = HSD Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Character Attributes 1 2 12/14/99 ----0001 ----0010 Rev G Single-wide Double-wide Page 35 Control Codes PcOS Series 150 Programmer's Guide Character Attributes Function ASCII Hexadecimal Decimal IPCL EPOS Begin underline [ESC] - <1> 1BH 2DH 01H <27> <45> <1> &%MU [ESC] ! Description This command begins the underline print mode. All subsequent text and leading spaces will be underlined. Trailing spaces are also underlined. Note: Underline is not available in HSD mode. See page 30 for available modes. EPOS Note: [ESC]! performs a similar function; however, NLQ is not available. Where n-bits 76543210 1--------1-------1----------X Function Underline Double-wide Double-high Font: 1 = Utility, 0 = HSD Function ASCII Hexadecimal Decimal IPCL EPOS End underline [ESC] - <0> 1BH 2DH 00H <27> <45> <0> &%CU none Description This command ends underline print mode. Function ASCII Hexadecimal Decimal IPCL EPOS Begin overscore [ESC] _ <1> 1BH 5FH 01H <27> <95> <1> &%MO none Description This command begins overscore print mode. All subsequent text and leading spaces will be overscored. Trailing spaces are also overscored. Note: Overscore is not available in HSD mode. See page 30 for available modes. Function ASCII Hexadecimal Decimal IPCL EPOS End overscore [ESC] _ <0> 1BH 5FH 00H <27> <95> <0> &%CO none Description This command ends overscore print mode. Page 36 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Character Attributes Function ASCII Hexadecimal Decimal IPCL EPOS Begin enhanced print [ESC] G 1BH 47H <27> <71> &%ME [ESC] G <1> Description This 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. Function ASCII Hexadecimal Decimal IPCL EPOS End enhanced print [ESC] H 1BH 48H <27> <72> &%CE [ESC] G <0> Description This command cancels enhanced print mode and returns to the currently selected font. Function ASCII Hexadecimal Decimal IPCL EPOS Begin emphasized print [ESC] E 1BH 45H <27> <69> &%MM [ESC] E <1> Description This command begins emphasized print mode (single pass with horizontal offset). This print is bolder than normal print. Function ASCII Hexadecimal Decimal IPCL EPOS End emphasized print [ESC] F 1BH 46H <27> <70> &%CM [ESC] E <0> Description This command cancels emphasized print mode. 12/14/99 Rev G Page 37 Control Codes PcOS Series 150 Programmer's Guide Character Attributes Function ASCII Hexadecimal Decimal IPCL EPOS Select superscript [ESC] S <0> 1BH 53H 00H <27> <83> <0> &%SP none Description This command selects superscript. All following characters will be printed half size on the upper side of the print line. Note: This feature is not available in all print modes. See page 30 for available modes. Function ASCII Hexadecimal Decimal IPCL EPOS Select subscript [ESC] S <1> 1BH 53H 01H <27> <83> <1> &%SB none Description This command selects subscript. All following characters will be printed half size on the bottom side of the print line. Note: This feature is not available in all print modes. See page 30 for available modes. Function ASCII Hexadecimal Decimal IPCL EPOS End superscript or subscript [ESC] T 1BH 54H <27> <84> &%SE none Description This command cancels superscript or subscript. Function ASCII Hexadecimal Decimal IPCL EPOS Begin italics [ESC] % G 1BH 25H 47H <27> <37> <71> &%MI [ESC] 4 Description This command begins italic print mode. Note: Italics are not available in all print modes. See page 30 for available modes. Page 38 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Character Attributes Function ASCII Hexadecimal Decimal IPCL EPOS End italics [ESC] % H 1BH 25H 48H <27> <37> <48> &%CI [ESC] 5 Description This command ends italic print mode. Figure 12 Example of underline, enhanced, emphasized, superscript, and subscript print 12/14/99 Rev G Page 39 Control Codes PcOS Series 150 Programmer'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 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 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 7 x 10 0.125 7 x 11 0.1375 7 x 12 0.15 7 x 13 0.1625 7 x 14 0.175 7 x 15 0.1875 7 x 16 0.2 7 x 17 0.2125 8 7.27 6.67 6.15 5.71 5.33 5.0 4.7 Table 12 Rotated print spacing 9 Line graphic characters are 7 x 10 which allow touching characters as a default. Page 40 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control 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 is used, 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 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. Function ASCII Hexadecimal Decimal IPCL EPOS Begin 90° rotated print [ESC] r <1> 1BH 72H 01H <27> <114> <1> &%R1 [ESC] T <3> Description Print 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 command functions identically to the normal mode [ESC] r except the definition of is different. Function ASCII Hexadecimal Decimal IPCL EPOS Begin 90° rotated print with line formatting [ESC] r <5> 1BH 72H 05H <27> <114> <5> &%R5 [ESC] T <3> Description Print 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/99 Rev G Page 41 Control Codes PcOS Series 150 Programmer's Guide Rotated Print Function ASCII Hexadecimal Decimal IPCL EPOS Begin 270° rotated print [ESC] r <3> 1BH 72H 03H <27> <114> <3> &%R3 [ESC] T <1> Description Print 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 command functions identically to the normal mode [ESC] r except the definition of is different. Function ASCII Hexadecimal Decimal IPCL EPOS Begin 270° rotated print with line formatting [ESC] r <7> 1BH 72H 07H <27> <114> <7> &%R7 [ESC] T <1> Description Print 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. Function ASCII Hexadecimal Decimal IPCL EPOS Begin 180° rotated print [ESC] r <2> 1BH 72H 02H <27> <114> <2> &%R2 [ESC] { <1> Description All 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. Page 42 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control Codes Rotated Print Function ASCII Hexadecimal Decimal IPCL EPOS End rotated print [ESC] r <0> 1BH 72H 00H <27> <114> <0> &%R0 [ESC] { <0> Description In 90° or 270° mode, this command prints the contents of the rotated print buffer and returns to normal print orientation. In 180° mode, the printer will return to normal print orientation. Characters in the print buffer that have not been printed will not be printed. Function ASCII Hexadecimal Decimal IPCL EPOS Set rotated print line length [ESC] s 1BH 73H <27> <115> &%RL none Description This 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/99 Rev G Page 43 Control Codes PcOS Series 150 Programmer's Guide Rotated Print Function ASCII Hexadecimal Decimal IPCL EPOS Set rotated print line spacing [ESC] u ... <0> 1BH 75H ... 00H <27> <117> ... <0> none none Description This command adjusts the line 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. E d g e o f fo r m L e ft m a r g in F irst lin e n=1, m S e c o n d lin e n=2, m T h ird lin e 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 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 44 Rev G 12/14/99 Programmer's Guide PcOS Series 150 Control 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 12/14/99 Function ASCII Hexadecimal Decimal IPCL Print single-density graphics (60 h x 72 v dpi) [ESC] K 1 2 1BH 4BH 1 2 <27> <75>