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.
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.
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 ............
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 ...........................
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..................................
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 ....................................................................................................................
Programmer's Guide PcOS Series 150 Table of Figures Table 20 ASCII chart ............................................................................................................................
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.
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.
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.
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.
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.
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.
Programmer's Guide PcOS Series 150 General Specifications The following illustration shows a single-wide character cell.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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> ...
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.
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.
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.
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.
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
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.
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
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 i
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.
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.
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.
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 .
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Control Codes PcOS Series 150 Programmer's Guide Graphic Mode Function ASCII Hexadecimal Decimal IPCL Print quad-density graphics (240 h x 72 v dpi) [ESC] Z 1 2 1BH 5AH 1 2 <27> <90> 1 2 none Description This command prints n1 + 256 * n2 bytes of quad-density graphics (240 dpi) at half speed with no consecutive dots. (Quad-density graphic mode is generally used to print 240 h by 144 v dpi resolutions in two passes).
Programmer's Guide PcOS Series 150 Control Codes Graphic Mode Function ASCII Hexadecimal Decimal IPCL EPOS Begin unidirectional print [ESC] U <1> 1BH 55H 01H <27> <85> <1> &%GU [ESC] U <1> Description This command prints all data in unidirectional print mode to improve line to line registration for graphical data. Note: This command should be canceled before normal text is printed. It will slow printing time if it is not canceled.
Control Codes PcOS Series 150 Programmer's Guide Bar codes Bar codes The Series 150 Printer has the ability to print bar codes. The printer will print one of five formats, Interleaved 2 of 5, Code 39, Code 128, UPC A, and EAN-13. The host does not need to form the graphic image for these bar codes. The host need only send the printer the information to be bar coded, and a graphic will be generated. Bar codes can be printed in a high-resolution normal mode or a fast, high-speed mode.
Programmer's Guide PcOS Series 150 Control Codes Bar codes the data field defines the code set, Start Code A = <135>, Code B = <136>, and Code C = <137>. The complete data field is printed by the printer. Due to space limitations, only nine characters can be printed. A check digit is generated by the printer. Code 128 Note The “A” space is defined as a <0>, which makes programming difficult and causes control character conflicts for the printer.
Control Codes PcOS Series 150 Programmer's Guide Bar codes Function ASCII Hexadecimal Decimal IPCL EPOS Bar code height [ESC] [EM] B 1BH 19H 42H <27> <25> <66> &%BH [GS] h Description This command sets the bar code height. Where is the number of print passes, each pass is about 0.11 inch high. If n = <0>, the printer returns to the default values of four passes for all except UPC, which has default values of seven. Any value from zero to nine may be specified.
Programmer's Guide PcOS Series 150 Control Codes Receipt Paper Out Sensor Receipt Paper Out Sensor The paper out sensor in the Series 150 Printer, senses when the paper is exhausted. When the printer generates a paper out fault, the printer stops printing and goes off-line. If the printer is off-line, inquires may not be accepted. To prevent the printer from going off-line when paper out is sensed, you can send an [ESC] 8.
Control Codes PcOS Series 150 Programmer's Guide Validation Operation Validation Operation The form is inserted from the top and extends out the left side and/or top of the printer. It rests on a fixed stop. A maximum of 16 lines at 40 characters can be printed on a form. In this manual, top insertion will be termed validation mode.
Programmer's Guide PcOS Series 150 Control Codes Validation Operation Validation Operation Control The Series 150 Printer has several features that can be altered during operation. For example, the time delay between when a form is sensed and when the form clamp is activated can be changed. This allows the operation of the printer to be tailored to the application and the form being used. All feature control commands are extensions of the [ESC] [EM] sequence. They are defined as follows.
Control Codes PcOS Series 150 Programmer's Guide Validation Operation Function ASCII Hexadecimal Decimal IPCL EPOS Set left/right print margin [ESC] X 1BH 58H <27> <88> none [ESC] l or [ESC] Q Description Where Set left and right print margin in characters from the home position. n1 = Left margin n2 = Right margin The absolute position depends on the current print pitch. 8 cpi 10 cpi 12 cpi 15 cpi 17.
Programmer's Guide PcOS Series 150 Control Codes Miscellaneous Control Miscellaneous Control Function Clear print buffer ASCII Hexadecimal Decimal IPCL EPOS [CAN] 18H <24> &%RP [CAN] Description This command clears any unprinted information in the printer received before the [CAN]. If the input buffer is not being processed because the printer is out of paper or the form is not inserted, the [CAN] command will not be processed until after the error is cleared.
Control Codes PcOS Series 150 Programmer's Guide Miscellaneous Control Function ASCII Hexadecimal Decimal IPCL EPOS Function Query marker [ESC] q 1BH 71H <27> <113> none none Return status to host Serial/IEEE1284 Parallel, non-IEEE 1284 Response [SOH] … Not supported via PE Description This command can be placed in the print data and, when processed by the printer, will return a progress status marker. The value of can be any 8-bit value. It is returned to the host unaltered.
Programmer's Guide PcOS Series 150 Control Codes Miscellaneous Control Function ASCII Hexadecimal Decimal IPCL EPOS Print suppress and data pass through [ESC] < 1BH 3CH <27> <60> &%PT [ESC] = Description Where This command provides print suppress and data pass through features. Bit 0 Printer select Bit 1 Pass through On Bits 2-7 Undefined If Bit 0 is clear, the printer will stop processing data.
Control Codes PcOS Series 150 Programmer's Guide Miscellaneous Control Function ASCII Hexadecimal Decimal IPCL EPOS Where n Enable Dynamic Response [ESC] w 1BH 77H <27> <119> none [GS] a defines the features that cause dynamic responses.
Programmer's Guide PcOS Series 150 Control Codes Printer Status Set/Inquire Printer Status Set/Inquire The Series 150 Printer is designed to be used as part of an automated system where the host computer makes every attempt to correct problems with the printer. In addition, the host application requires that it be able to obtain more information from the printer than is typical of normal computer printers. A normal computer printer does not have to deal with cash drawers or validation.
Control Codes PcOS Series 150 Programmer's Guide Printer Status Set/Inquire Receipt paper status is always dynamic. If the PE signal is to be returned to the valid paper error state, an [ENQ] <4> should be issued when all other inquires are completed. PE DATA Valid ID Next STROBE BUSY ACK Figure 13 Paper-error to inquire-request timing Serial Mode Inquire In serial mode, inquires are not handled any differently than other commands.
Programmer's Guide PcOS Series 150 Control Codes Printer Status Set/Inquire an [ENQ] were issued. In parallel mode, only one status should be requested. If more than one bit is active, the resulting status on the paper error (PE) signal will not be defined. The reply to dynamic responses is the same as for inquire commands. That is, if the cash drawer status is to be sensed, the PE or ACK/NAK will be the same as for inquire commands.
Control Codes PcOS Series 150 Programmer's Guide Printer Status Set/Inquire Inquire Commands Function ASCII Hexadecimal Decimal IPCL EPOS Description Inquire printer status [ENQ] 05H <5> none [GS] r or [DLE] [ENQ] or [DLE] [EOT] This command inquires as to the printer’s status and returns the result. The following inquires are defined. Note: If the printer is off-line, inquires may not be accepted.
Programmer's Guide PcOS Series 150 Control Codes Printer Status Set/Inquire Function ASCII Hexadecimal Decimal Function Response Is the form position sensor detecting a form? Serial/Parallel, IEEE 1284 Parallel, non-IEEE 1284 ACK <6> (06H 06H) PE low The position sensor is clear. (No form present.) NAK <6> (15H 06H) PE high The form position sensor is blocked. (There is a form.
Control Codes PcOS Series 150 Programmer's Guide Printer Status Set/Inquire Function ASCII Hexadecimal Decimal Function Response Description Function ASCII Hexadecimal Decimal Function Response Description Page 64 Request printer reset [ENQ] <10> 05H 0AH <5> <10> Reset printer Serial ACK <10> (06H 0AH) The command was accepted. NAK <10> (15H 0AH) The command was rejected. Parallel mode No response in parallel mode.
Programmer's Guide PcOS Series 150 Control Codes Printer Status Set/Inquire Function ASCII Hexadecimal Decimal Function Response Where 12/14/99 Inquire printer state [ENQ] <15> 05H 0FH <5> <15> Returns current printer state Serial/Parallel, IEEE1284 Parallel, non-IEEE 1284 [ACK] <15> … Not supported via PE <15> is the echo of the command ID. n = number of return bytes + 40 (to prevent confusion with XON/XOFF).
Control Codes PcOS Series 150 Programmer's Guide Printer Status Set/Inquire Function ASCII Hexadecimal Decimal Function Response Where Page 66 Inquire all printer status [ENQ] <20> 05H 14H <5> <20> Returns all status flags Serial/Parallel, IEEE1284 Parallel, non-IEEE 1284 [ACK] <20> … Not supported via PE <20> is the echo of the command ID. n = number of return bytes + 40 (to prevent confusion with XON/XOFF).
Programmer's Guide PcOS Series 150 Control Codes Printer Status Set/Inquire Function ASCII Hexadecimal Decimal Inquire printer ID [ENQ] <21> 05H 15H <5> <21> Function Returns printer IEEE 1284 ID string Serial/Parallel, IEEE1284 Parallel, non-IEEE 1284 Response Where [ACK] <21> {ID string} Not supported via PE <21> is the echo of the command ID. = number of return bytes in the ID string {ID string} is the IEEE 1284 ID return string, which is as follows: MFG:Ithaca-Periph.
Control Codes PcOS Series 150 Programmer's Guide Extended Diagnostics Extended Diagnostic Commands Function Extended diagnostics ASCII Hexadecimal Decimal IPCL EPOS Where n = [ESC] ~ 1BH 7EH <27> <126> none [ESC] ~ 0 Prints model, configuration, and serial number 1 Sets vertical alignment ( is the alignment value.) Note: will be written to the EEPROM if the EEPROM save sequence is processed.
Programmer's Guide PcOS Series 150 Control Codes EPOS Codes EPOS Codes This section lists the EPOS codes that are supported by the Series 150 Printer. Ithaca Peripherals has no control over how Epson extends or changes these control codes. Ithaca Peripherals makes no guarantees as to the operation of its printer when it replaces an Epson printer. The EPOS emulation is intended to make it as easy as possible to replace an Epson printer with an Ithaca Series 150 Printer.
Control Codes PcOS Series 150 Programmer's Guide EPOS Codes [ESC] < [ESC] = [ESC] ? [ESC] @ [ESC] B 1 2 3 ... i 0 [ESC] C [ESC] D 1 2 3 ... i 0 [ESC] E [ESC] G [ESC] J [ESC] K [ESC] M [ESC] Q [ESC] R [ESC] U [ESC] V [ESC] [ [ESC] \ [ESC] ^ ...
Programmer's Guide PcOS Series 150 Control Codes EPOS Deviations EPOS Deviations There are several important differences between the Series 150 and EPSON printers. The closest EPSON printer to the Series 150 is the TM-U325. An application that was written for the EPSON printer may require some modification to use the Series 150. Command Descriptions Function ASCII Activate buzzer [BEL] or [ESC] [BEL] Description This command activates the sound buzzer.
Control Codes PcOS Series 150 Programmer's Guide EPOS Deviations Function ASCII Set print direction [ESC] T Description The Series 150 Printer does not implement page mode. This command uses the normal rotated print format procedures. See [ESC] r in normal mode. Note: EPOS reverses Modes 1 and 3. Function ASCII Print graphics [ESC] * 1 2 Description The Series 150 Printer defines the extended graphic modes. Mode 4 is normally 80 dpi.
Programmer's Guide PcOS Series 150 Control Codes EPOS Deviations Function ASCII Enable/disable panel buttons [ESC] c 5 Description The Series 150 Printer does not allow the front panel to be disabled. Function ASCII Enable/disable on-line switch [ESC] c 6 Description The Series 150 Printer ignores this command. Function ASCII Generate pulse [ESC] p Description The Series 150 Printer does not allow the cash drawer pulse to be altered under software control.
Control Codes PcOS Series 150 Programmer's Guide EPOS Deviations Function ASCII Set bar code [GS] k {information} [NUL] Description The Series 150 Printer uses the same print functions to print EPOS bar codes as the normal mode bar codes. Where m EPOS has two formats for bar codes. One is [NUL] terminated; the other has a length field. If is greater than 64, the next byte sets the length in bytes. Only the [NUL] terminated command is supported by the Series 150 Printer.
Programmer's Guide PcOS Series 150 Control Codes MICROLINE Codes MICROLINE Codes This section lists the MICROLINE codes that are supported by the PcOS Series 150 Printer. Ithaca Peripherals has no control over how Okidata extends or changes these control codes. Ithaca Peripherals makes no guarantees as to the operation of its printer when it replaces an Okidata printer. The MICROLINE emulation is intended to make it as easy as possible to replace an Okidata printer with a Series 150 Printer.
Control Codes PcOS Series 150 Programmer's Guide MICROLINE Codes [ESC] 6 [ESC] 8 [ESC] C [ESC] D [ESC] J [ESC] M [ESC] N [ESC] M [ESC] T [ESC] H [ESC] I [ESC] K 1 2 [ESC] L 1 2 [ESC] Y 1 2 [ESC] Z 1 2 [ESC] r N/A [ESC] # [ESC] d [ESC] “ [ESC] RS Page 76 Set 6 lines per inch. Set 8 lines per inch. Start underline. Stop underline. Start superscript. Stop superscript. Start subscript. Stop subscript. Begin emphasized print (half speed). Begin enhanced print (double pass).
Programmer's Guide PcOS Series 150 Control Codes STAR Codes Star Codes This section lists the Star codes that are supported by the PcOS Series 150 Printer. Ithaca Peripherals has no control over how Star extends or changes these control codes. Ithaca Peripherals makes no guarantees as to the operation of its printer when it replaces a Star printer. The Star emulation is intended to make it as easy as possible to replace a Star printer with a PcOS Series 150 Printer.
Control Codes PcOS Series 150 Programmer's Guide STAR Codes Control codes used for graphic printing [ESC] 1 Set 7/72-inch line feed. [ESC] A Define n/72-inch line feed. [ESC] 2 Set n/72-inch line feed. [ESC] J Set one-time line feed of n/72-inch. [ESC] z 0 Set 1/12-inch line feed. [ESC] K <0> Set 8-dot single-density bit image. [ESC] L Set 8-dot double-density bit image. [ESC] h 1 Select vertical expanded character mode. [ESC] h 0 Cancel vertical expanded character mode.
Programmer's Guide PcOS Series 150 Control Codes NCR2567 Codes NCR2567 Codes This section lists the NCR codes that are supported by the PcOS Series 150 Printer. Ithaca Peripherals has no control over how NCR extends or changes these control codes. Ithaca Peripherals makes no guarantees as to the operation of its printer when it replaces an NCR printer. The NCR emulation is intended to make it as easy as possible to replace an NCR printer with a Series 150 Printer.
Control Codes PcOS Series 150 Programmer's Guide TELPAR Codes Telpar Codes This section list the Telpar codes that are supported by the PcOS Series 150 Printer. The Telpar emulation is intended to make it as easy as possible to replace a Series 50 Printer with a Series 150. Telpar Command Summary The following is a list of the Telpar commands that are supported.
Programmer's Guide PcOS Series 150 Control Codes Summary by Code Control Codes Summary by Code Normal ASCII [NUL] [ENQ] Second ASCII field Hex Code IPCL equivalent code Description Page 00 05H [SI] [DC1] [DC3] [DC4] 08H 09H 0AH 0BH 0CH 0DH 0EH 0FH 12H 14H 18H 1BH,0FH 1BH,11H 1BH,13H 1BH,14H &%BS &%HT &%LF &%VT &%FF &%CR &%MW &%F1 &%F3 &%MN &%RP &%F4 &%VO &%VC &%VS [ESC] [EM] B 1BH,19H, 42H &%BH [ESC] &%BJ Set bar code justification.
Control Codes PcOS Series 150 Programmer's Guide Summary by Code [ESC] [ESC] 4 5 1BH,34H 1BH,35H &%TF &%CA {n=0} &%MA {n=1} [ESC] [ESC] [ESC] [ESC] 8 9 : < 1BH,38H 1BH,39H 1BH,3AH 1BH,3CH &%PF &%PO &%F2 &%PT [ESC] = > 1BH,3DH ? A 1BH,3FH 1BH,42H [ESC] [ESC] [ESC] [ESC] [ESC] B ... <0> C C [NUL] D ..
Programmer's Guide PcOS Series 150 Control Codes Summary by Code [ESC] U 1BH,55H [ESC] [ESC] V W 1BH,56H 1BH,57H [ESC] X 1BH,58H [ESC] 1BH,59H [ESC] Y 1 2 Z 1 2 [ @ ... [ESC] [ P [ESC] [ T [ESC] [ESC] ] ^ 1BH,5BH, 40H 1BH,5BH, 50H 1BH,5BH, 54H 1BH,5DH 1BH,5EH [ESC] _ 1BH,5FH [ESC] a 1BH,61H &%JL {n=0} &%JC {n=1} &%JR {n=2} [ESC] b ...
Control Codes PcOS Series 150 Programmer's Guide Summary by Code 1BH,75H [ESC] [ESC] [ESC] u ... <0> v w x 1BH,76H 1BH,77H 1BH,78H &%FC Cut [ESC] y 1BH,79H &%Y0-8 [ESC] ~ 1BH,7EH [ESC] Page 84 &%D1 {n=1} &%D2 {n=2} Rev G Set rotated print line spacing. 44 Activate cutter Enable dynamic response. Open cash drawer. n=1 Cash Drawer 1 n=2 Cash Drawer 2 Control diagnostics and extended features. (See description.) Set extended diagnostics.
Programmer's Guide PcOS Series 150 Control Codes Summary by Function Control Codes Summary by Function Normal ASCII Second ASCII field Hex Code [CR] 0DH [LF] [VT] [FF] [ESC] [ESC] [ESC] 0 1 2 0AH 0BH 0CH 1BH,30H 1BH,31H 1BH,32H [ESC] 3 1BH,33H [ESC] [ESC] 4 5 1BH,34H 1BH,35H [ESC] A 1BH,41H [ESC] 1BH,42H [ESC] [ESC] B 12 3... k <0> C J [ESC] R 1BH,52H [ESC] [ESC] ] d 1BH,5DH 1BH,64H [HT] [ESC] [ESC] D 1 2 3 ...
Control Codes PcOS Series 150 Programmer's Guide Summary by Function [ESC] U 1BH,55H [ESC] #0 [ESC] E 1BH,23H, 30H 1BH,45H [ESC] [ESC] [ESC] [ESC] F G H I 1BH,46H 1BH,47H 1BH,48H 1BH,49H [ESC] [ @ ... 1BH,5BH, 40H [ESC] [ESC] ! [ T 1BH,21H 1BH,5BH, 54H [ESC] $ 1BH,24H [ESC] =1 2 > 1BH,3DH [ESC] [DC2] [ESC] [SI] [ESC] [ESC] : [SI] [ P 1BH,3EH 12H 1BH,3AH 0FH 1BH, 0FH 1BH,5BH, 50H Select bidirectional/unidirectional mode.
Programmer's Guide PcOS Series 150 Control Codes Summary by Function [ESC] W 1BH,57H [ESC] _ 1BH,5FH [ESC] P 1BH,50H [ESC] r 1BH,72H [ESC] s 1BH,73H [ESC] u 1 1 2 2 ... k <0> 1BH,75H [ESC] * 1 2 ? K 1 2 1BH,2AH [ESC] L 1 2 1BH,4CH [ESC] Y 1 2 1BH,59H [ESC] Z 1 2 1BH,5AH [ESC] U 1BH,55H [ESC] [ESC] 12/14/99 Set multiline double-wide doublehigh sequence.
Control Codes PcOS Series 150 Programmer's Guide Summary by Function [ESC] b ...
Programmer's Guide PcOS Series 150 Operator Panel Controls Chapter 6: Operator Panel Controls Push Buttons - Momentary Switches The FEED key advances the receipt and journal paper. The RELEASE key opens and closes the validation clamp. It cycles through open and close mode. The RESUME key restarts the printer after a failure has been cleared. Indicators There are three indicators. They are READY, ALARM, and POWER. The printer can be in any of the following states.
Operator Panel Controls PcOS Series 150 Programmer's Guide Fault Indicators If the printer indicates printer fault, the error is not recoverable. The printer must be restarted and may lose information. To aid in printer troubleshooting, the RESUME key will activate an extended diagnostic indication. This will blink the status indicator a number of times. The number of blinks indicates the fault. The fault list follows.
Programmer's Guide PcOS Series 150 Product Self-tests Chapter 7: Product Self-tests The Series 150 Printer contains several levels of self-test features. At power on, the printer always runs Level 0 diagnostics which check the printer’s operation. After Level 0 diagnostics, the printer checks the keypad and enters normal operation or extended tests. Level 0 Diagnostics Level 0 diagnostics always run at power up. They perform the following tasks.
Hex-dump Mode PcOS Series 150 Programmer's Guide Chapter 8: Hex-dump Mode Hex-dump mode is entered by pressing and holding the RESUME and RELEASE keys at power up. This mode is used to diagnose communication problems with the printer. As information is received by the printer, the information is converted to a HEX/ASCII format and printed. No translation is made which means that no commands are interpreted. All information is converted to HEX/ASCII and printed on the receipt tape.
Programmer's Guide PcOS Series 150 Configuration Mode Chapter 9: Configuration Mode Initial Power ON The initial power cycle of a Series 150 diagnostic will find that the EEPROM is not valid. Remaining in Level 0 diagnostics for about ten seconds will indicate this. During this time, the EEPROM is initialized and a default configuration loaded. The default will allow manual or remote configuration. It is unlikely to be the desired configuration.
Configuration Mode PcOS Series 150 Programmer's Guide Feature Configuration The Series 150 Printer has many configurable features. The following section discusses these features and the possible configurations. An operator can configure most of the features by manipulating the key panel in configuration mode. This method is termed manual configuration. Features can be configured by the CFG150 program. This program runs on most standard personal computers.
Programmer's Guide PcOS Series 150 Configuration Mode Unidirectional General Receive Buffer Print Alignment Impact Energy Form Sense Wait Validation Time-out Cash Drawer Time Reset Inhibit Print Suppress and Pass through 12/14/99 Recommendation The input receive buffer can be configured to various sizes. The optimal size is dependent on the application. The options are from 256 to 6144 bytes. To provide tight control of the printer, one-line mode is also available.
Configuration Mode Page 96 PcOS Series 150 Rev G Programmer's Guide 12/14/99
Programmer's Guide General 10 cpi PcOS Series 150 Configuration Mode Recommendation The 10 cpi command can be prevented from being acted on. If set to disable, the printer will ignore the 10 cpi command (DC2). Active Disabled Print Illegal Commands Print Zone Series 50 Compatibility Vertical Control Line Spacing Auto Line Feed Auto Carriage Return Form Length Line Feeds Before Cut Character Print Mode Character Pitch 12/14/99 No Yes There are two print zone settings. Normal (2.
Configuration Mode Page 98 PcOS Series 150 Rev G Programmer's Guide 12/14/99
Programmer's Guide General Font Language Set 12/14/99 PcOS Series 150 Configuration Mode Recommendation The Series 150 Printer supports 66 Language Sets. This setting defines only the default printer mode. Any set can be selected through software. IBM specifies code pages differently than Epson.
Configuration Mode PcOS Series 150 Programmer's Guide 80 – Swiss I General EPOS Mode Code Page Page 100 Recommendation 81 – Swiss II 90 – Publisher 91 – Welsh 68 – French 70 – Danish 71 – Norwegian 64 – ASCII (Slashed 0) 73 – Italian 75 – Spanish 91 – Welsh Epson specifies code pages differently than IBM. This is the Epson description.
Programmer's Guide PcOS Series 150 Configuration Mode 5 – Swedish I 6 – Italian 7 – Spanish I General Zero Character Interface Parallel Mode Parallel Link Options Parity Bit Data Protocol 12/14/99 Recommendation 8 – Japanese 9 – Norwegian 10 – Danish II 11 – Spanish II 12 – Latin American 13 – French Canadian 14 – Dutch 15 – Swedish II 16 – Swedish III 17 – Swedish IV 18 – Turkish 19 – Swiss I 20 – Swiss II 64 – Publisher The zero character can be configured to be unslashed or slashed in all char
Configuration Mode General Baud Rate SSD Signal DTR/RTS Signal CTS Signal DSR Signal Off-line Microsoft Windows Plug and Play Multidrop Page 102 PcOS Series 150 Programmer's Guide Recommendation The bit rate of the printer can be set to 19200, 9600, 4800, 2400, 1200, 600, or 300 bits per second. The same bit rate is for send and receive.
Programmer's Guide PcOS Series 150 Configuration Mode C device Options Knife Validation General Journal Save Changes This specifies that the knife is attached. Not present Enabled This specifies that the unit has validation. Not present Enabled Recommendation This specifies that the unit has journal take-up. Not present Enabled This is set only in self-configuration mode to force the printer to save changes. If this is not set to yes, any changes made to the configuration will not be saved.
Configuration Mode PcOS Series 150 Programmer's Guide The print suppress feature can be off, on, or pass (pass through). This will determine the operation of the print suppress command. If print suppress is set to off, the command will be ignored. If on, the command will be active. If pass is selected, the command and data pass through will be active.
Programmer's Guide PcOS Series 150 Configuration Mode Vertical Control The line spacing can be defaulted to six or eight lines per inch (lpi). An auto line feed feature can be set as a default where all [CR]’s will have a [LF] added. If auto line feed is set to on, this feature is activated. An auto line feed feature can be set as a default where all [LF]’s will have a [CR] added. If auto CR is set to on, this feature is activated. The default form length can be set from 3 to 17 inches.
Configuration Mode PcOS Series 150 Programmer's Guide The serial port DTR and/or RTS signal can be configured to provide flow control. If DTR is configured as the flow control signal, it will toggle to false when the buffer is full, RTS will not. Options The knife is an optional feature on the Series 150 Printer. If the hardware is installed, the corresponding feature should be activated.
Programmer's Guide PcOS Series 150 Communications Overview Chapter 10: Communications Protocol and Print Buffers Overview The following figure illustrates the communication flow from the host computer to the printer and from the printer to the cash drawer. Host to printer link Host computer Printer Host to keypad Printer to cash drawer Cash drawer Keypad Figure 15 Typical POS system For the host to printer communication link, the Series 150 Printer supports serial or parallel communications.
Communications PcOS Series 150 Programmer's Guide Overview In most cases, the host computer is capable of sending information to the printer much faster than the printer can print it. To prevent information from being lost, a flow control mechanism is provided. This mechanism is called the flow control protocol. The goal of the flow control protocol is to exchange as much information as possible as fast as possible without losing any data.
Programmer's Guide PcOS Series 150 Communications Overview The print control software takes information from the buffer (as it needs it and can use it). When the buffer output function finds that the buffer is getting low, it notifies the communication driver that the information flow can be resumed (if it was stopped) and allows more information to be placed in the buffer. The Series 150 Printer has a configurable input buffer.
Communications PcOS Series 150 Programmer's Guide Parallel Port Parallel Port Parallel Port Protocol The Series 150 parallel port behaves just like any printer connected to a personal computer. The parallel interface accepts eight bits of data from the host. The strobe signal from the host is used to indicate that data is available. When the printer sees the strobe and accepts the data, it asserts a busy signal.
Programmer's Guide PcOS Series 150 Communications Parallel Port Printer Buffer Size The Series 150 Printer has a configurable buffer size. It can be set from 256 bytes to 6144 bytes. This allows an application to control how far ahead of the printer it can get. The smaller the buffer is, the tighter the control will be. It is up to the application developer to select the optimal buffer size. One-line mode The Series 150 Printer supports a one-line mode of operation.
Communications PcOS Series 150 Programmer's Guide Parallel Port When a Mode 4 request is made, the IEEE 1284 buffer is cleared before the ID is sent.
Programmer's Guide PcOS Series 150 Communications Parallel Port Mode 0 Mode 0 provides a reverse channel for information from the printer. Normal responses to inquire (ENQ) commands will be placed in the IEEE 1284 reverse channel buffer. The Mode 0 reverse channel request will begin returning this information to the host. The host may terminate the transmission at any time. If the link is terminated between nibbles, the last nibble is retransmitted on the next request.
Communications PcOS Series 150 Programmer's Guide Parallel Port Parallel Port Inquire (Non-IEEE 1284) All inquire commands require a response from the printer. The serial port is bidirectional; the non-IEEE 1284 parallel port is not. For this reason, the parallel, non-IEEE 1284 operation of inquire commands is different from serial and IEEE 1284 modes.
Programmer's Guide PcOS Series 150 Communications Parallel Port Parallel Port Plug and Play Microsoft Windows implements Plug and Play (PnP) by doing an IEEE 1284 inquire during boot. The Series 150 Printer will respond to this inquire if IEEE 1284 is active. If the Windows PnP configuration flag is set in the printer, IEEE 1284 will be active for all parallel port modes. For example, Windows PnP in parallel mode forces IEEE 1284.
Communications PcOS Series 150 Programmer's Guide Parallel Port Parallel Port Connector The parallel printer interface is a 25-pin D-shell connector. The pin out is such that the printer will interface to a standard personal computer parallel printer interface with a one to one cable. The INIT\ (initialize) printer input acts as a hardware reset to the printer. This signal must be inactive (high) for about four seconds before the printer will respond to information input.
Programmer's Guide PcOS Series 150 Communications Serial Port Serial Port Serial Port Features The serial port features are as follows: Baud rates Bit patterns Flow control 300, 600, 1200, 2400, 4800, 9600, 19.2K 8-bit, no parity; 8-bit odd; 8-bit even; 7-bit no parity; 7-bit odd; 7-bit even DTR and XON/XOFF Table 14 Serial bit rates It should be noted that the 7-bit, no parity is in fact an 8-bit format.
Communications PcOS Series 150 Programmer's Guide Serial Port Serial Port Protocol The serial port supports two flow control standards, XON/XOFF and Ready/Busy (sometimes called DTR or hardware handshake.) When Ready/Busy flow control is selected, the printer can be configured to use DTR, RTS, or both for flow control. If only DTR is selected for flow control, RTS will indicate that the printer has faulted. The following discussions will assume the DTR is being used for flow control.
Programmer's Guide PcOS Series 150 Communications Serial Port Serial Port Flow Control XON/XOFF Communications Printer control software port Serial data in Serial data out Data Inquire commands Send XOFF High speed FIFO Data ENQ Data Proc.
Communications PcOS Series 150 Programmer's Guide Serial Port Print Buffer Flow The following flow chart illustrates the communication driver getting data from the serial port and placing the data in the buffer using Ready/Busy or XON/XOFF flow control. Wait for data from the host in high speed FIFO buffer. Place data in print buffer. Is the buffer full? Yes Update buffer pointers. Is the buffer past the high watermark? Yes Clear the DTR signal or transmit XOFF.
Programmer's Guide PcOS Series 150 Communications Serial Port The following flow chart illustrates how the print controller takes information from the buffer and controls flow. At the top of the chart, the print control software asks for data. If there is no data in the buffer, a no data flag is returned. The print software must then wait for data. If there is data in the buffer, it is read and pointers are updated. The buffer is then checked to see how much information is left.
Communications PcOS Series 150 Programmer's Guide Serial Port The print controller needs data to print or a command to decode. Is there any data in the buffer? Loop through idle task, and then look for more data. No Return to print controller with no data available. Yes Set DTR or transmit XON. Aquire data from the buffer. Move buffer pointers to the next data byte. Is the buffer below the low watermark? No DTR = Data Terminal Ready Return data to print controller.
Programmer's Guide PcOS Series 150 Communications Serial Port When XON/XOFF protocol is implemented, it is possible for the host to miss an XON or an XOFF. To prevent this from causing a communication lockup, the printer will send an XOFF for every character received after the high watermark is reached. Whenever the printer detects that the serial data link is inactive, it will send out an XON. This results in an XON being sent out about every two seconds.
Communications PcOS Series 150 Programmer's Guide Serial Port Serial Port Inquire The serial port inquire is more straightforward than parallel mode. The serial acknowledge (ACK) or not-acknowledge (NAK) responses follow a uniform format. The ACK or NAK is always followed by the command ID that requested it. This makes the design of the host application easier because the response can be identified and always follows the same format. Figure 24 is an example of a host/printer inquiry response exchange.
Programmer's Guide PcOS Series 150 Communications Programmer’s Notes Remote Printer Reset Reset in Serial Mode It is possible to generate a printer reset in serial mode. The [ENQ] <10> command will request that the printer reset. (This is not a hardware reset). It will, however, completely initialize the hardware and software but will not recover from a loss of software control.
Communications PcOS Series 150 Programmer's Guide Remote Printer Reset Programmer’s Notes When the serial port is being used, it is important that the output lines from the printer not be shorted or back driven. If the signals are not to be used, they should be left open. Pins 3, 4, and 7 are outputs from the printer. If any one of these signals is grounded or back driven, the other two outputs will be degraded.
Programmer’s Guide PcOS Series 150 Cash Drawer Interface Chapter 11: Cash Drawer Interface Interface Description The Series 150 Printer supports dual cash drawers with status. The driver in the printer is capable of supplying 24 VDC at up to 1.5 amps and 250 milliseconds. The Series 150 Printer defines cash drawer closed as switch open. If the drawer is disconnected, it will be viewed by the printer as closed.
Printing Graphics PcOS Series 150 Programmer’s Guide Chapter 12: Printing Graphics The Series 150 Printer has bit image graphic capabilities and a full PC-compatible graphic character set. The bit image format is similar to that used on other personal computer printers. There are three modes of operation: single-density, half-speed double-density, and full-speed double-density. Single-density is the fastest mode. It makes a single, unidirectional, 60 dpi print pass.
Programmer's Guide PcOS Series 150 Printing Graphics [ESC]U<1> Select unidirectional print for better alignment. [ESC]: Select 12 cpi. [ESC]3<34> Set line spacing to 0.157 inch. (This is slightly smaller than 1/6 inch.) <201> Send the line graphic characters to the printer.
Printing Graphics PcOS Series 150 Programmer's Guide When printing line graphics, the data path to the printer must be eight bits. Seven-bit serial protocols will not access the extended characters. The extended characters require that the form be reverse fed. This means that printing line graphics on the receipt may be less than acceptable. APA Graphics The printer is capable of all-points-addressable (APA) graphics. Generating a graphic image by hand is time consuming and tedious.
Programmer's Guide 0100 0110 0120 0130 0140 0150 0160 0170 0180 0190 01A0 01B0 01C0 01D0 01E0 01F0 0200 0210 0220 0230 0240 0250 0260 0270 0280 0290 02A0 02B0 02C0 02D0 02E0 02F0 12/14/99 1B 00 1B 00 00 00 00 02 02 02 02 02 02 02 02 02 02 02 02 00 00 00 00 00 00 01 00 00 00 00 00 02 43 1B 55 00 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 00 00 00 00 00 00 1B 00 00 00 00 00 00 00 55 01 00 00 00 00 02 02 02 02 02 02 02 02 02 02 02 02 00 00 00 00 00 00 59 00 00 00 00 00 02 0B 00 1B 00 00 00 00 01 01 01
PcOS Series 150 Page 132 Rev G Programmer’s Guide 12/14/99
Programmer's Guide PcOS Series 150 Appendix A Appendix A Language Tables Code Country Code/ Decimal Hex ASCII Page Language Set Epson ID 64 USA (slashed 0) 0,64 0H,040H 0,0,6,4 NA 65 USA (unslashed 0) 0,65 0H,041H 0,0,6,5 NA 66 British 0,66 0H,042H 0,0,6,6 3 67 German 0,67 0H,043H 0,0,6,7 2 68 French 0,68 0H,044H 0,0,6,8 NA 69 Swedish I 0,69 0H,045H 0,0,6,9 5 70 Danish I 0,70 0H,046H 0,0,7,0 NA 71 Norwegian 0,71 0H
Appendix A PcOS Series 150 Programmer's Guide Code Country Code/ Decimal Hex ASCII Page Language Set Epson ID 895 Kamenicky (MJK) 3,127 3H,07FH 0,8,9,5 55 1008 Greek 437 3,240 3H,0F0H 1,0,0,8 38 1009 Greek 928 3,241 3H,0F1H 1,0,0,9 39 1011 Greek 437 CYPRUS 3,243 3H,0F3H 1,0,1,1 41 1012 Turkey 3,244 3H,0F4H 1,0,1,2 29 1014 Polska Mazovia 3,246 3H,0F6H 1,0,1,4 22 1015 ISO Latin 2 3,247 3H,0F7H 1,0,1,5 23 1016 Serbo Cro
Programmer’s Guide PcOS Series 150 Appendix B Appendix B ASCII Code Chart HEX Decimal ASCII HEX Decimal ASCII HEX Decimal ASCII HEX Decimal ASCII 00 0 NULL 20 32 (SP) 40 64 @ 60 96 ` 01 1 SOH 21 33 ! 41 65 A 61 97 A 02 2 STX 22 34 " 42 66 B 62 98 B 03 3 ETX 23 35 # 43 67 C 63 99 C 04 4 EOT 24 36 $ 44 68 D 64 100 d 05 5 ENQ 25 37 % 45 69 E 65 101 e 06 6 ACK 26 38 & 46 70 F 66 102 f 07 7 BEL 27 39 ' 47 71
Appendix C PcOS Series 150 Programmer's Guide Appendix C Ordering Cables General Information To order cables, use the following order numbers: 10-2020 10-2021 10-2022 253-9800007 98-01992 9-pin female to 9-pin female serial interconnect 9-pin female to 25-pin female serial interconnect 9-pin female to 25-pin male serial interconnect 25-pin male to 25-pin male parallel interconnect USB Series “A” plug to Series “B” plug interconnect All of the above may be ordered by calling (607) 257-8901 and asking fo
Programmer's Guide PcOS Series 150 Index Index [ESC] 2 Enable variable line spacing......................19 [ESC] 3 Set line spacing in n/216 inch ............18 [ESC] 4 Set top of form..........................................20 [ESC] 5 <0> End auto line feed..............................21 [ESC] 5 <1> Begin auto line feed ...........................21 [ESC] 8 Disable PE sensor .....................................50 [ESC] 9 Enable PE sensor ......................................
Index PcOS Series 150 Programmer's Guide [SO] One-line double-wide .................................... 33 [VT] Vertical tab ................................................... 20 —I— —A— IPCL codes.............................................................13 Italics.....................................................................33 Ithaca Peripherals.................................................... 2 APA graphic file.................................................. 124 ASCII Chart.........
Programmer's Guide PcOS Series 150 Warranty.................................................................
INSERT PN: 100-7961 Rev G 12/14/99