Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 6 of 16

PcOS Series 150 Receipt/Validation/Journal Printers Programmer's Guide, pages 51 to 60

Pages 51 to 60 of 151

The original document is the PDF (746 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Ithaca Model 151, Ithaca Model 153 and Ithaca Model 152

Page 51

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 <n> is used, <n> specifies the spacing in n/216 (including the one dot white space). Note: the finest resolution is still 1/80, n/216 will be rounded to the nearest n/80 and the smallest value allowed will be 1/80. In rotated 90° or 270° mode, the print is done in all-points-addressable (APA) graphics. The intercharacter spacing is adjusted with the normal line spacing commands. The [ESC] 3 <n> command is the most effective command for adjusting intercharacter spacing. Line spacing smaller than 12 cpi will force the characters to overlap. (Spacing of 12 cpi is obtained with an [ESC] 3 <18>.) When 90° or 270° rotation is selected, only normal text can be printed. Underline, enhanced, emphasized, and other attributes will not function. See the chart on page 30 for a list of available features. In 180° rotation mode, all spacing commands are effective. This mode of operation simply inverts and mirrors the print operation. All line spacing and print features are available. It should be noted that the feed direction is not effected by any of the rotate commands. 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 <n> command functions identically to the normal mode [ESC] r <n> except the definition of <n> 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

Page 52

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 <n> command functions identically to the normal mode [ESC] r <n> except the definition of <n> 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

Page 53

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 <n> 1BH 73H <n> <27> <115> <n> &%RL <m1> <m2><m3> 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

Page 54

Control Codes

PcOS Series 150

Programmer's Guide

Rotated Print Function ASCII Hexadecimal Decimal IPCL EPOS

Set rotated print line spacing [ESC] u <n1> <m1> <n2> <m2> ... <ni> <mi> <0> 1BH 75H <n1> <m1> <n2> <m2> ... <ni> <mi> 00H <27> <117> <n1> <m1> <n2> <m2> ... <ni> <mi> <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 <n> commands in the rotated print data. The value of m can be from one to 127; n can be from one to 22. Table 12 on 40 specifies the line spacing for this command.

Page 44

Rev G

12/14/99

Page 55

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 <n>1 <n>2 1BH 4BH <n>1 <n>2 <27> <75> <n>1 <n>2 none

Description

This command prints n1 + 256 * n2 bytes of single-density graphics (60 dpi).

Function ASCII Hexadecimal Decimal IPCL

Print half-speed double-density graphics (120 h x 72 v dpi) [ESC] L <n>1 <n>2 1BH 4CH <n>1 <n>2 <27> <76> <n>1 <n>2 none

Description

This command prints n1 + 256 * n2 bytes of double-density graphics (120 dpi) at half-speed allowing full and half dots to be printed.

Function ASCII Hexadecimal Decimal IPCL

Print full-speed double-density graphics (120 h x 72 v dpi) [ESC] Y <n>1 <n>2 1BH 59H <n>1 <n>2 <27> <89> <n>1 <n>2 none

Description

This command prints n1 + 256 * n2 bytes of double-density graphics (120 dpi) at full speed with no consecutive dots. (Full-speed double-density graphic mode is generally used to print 120 h by 144 v dpi resolutions in two passes).

Rev G

Page 45

Page 56

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 <n>1 <n>2 1BH 5AH <n>1 <n>2 <27> <90> <n>1 <n>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).

Function ASCII Hexadecimal Decimal IPCL

Print graphics in mode <m> (60 h/120 h/240 h x 72 v dpi) [ESC] * <m> <n>1 <n>2 1BH 2AH <m> <n>1 <n>2 <27> <42> <m> <n>1 <n>2 none

Description

This command selects one of the three above graphics modes as specified by <m>. 0 60 dpi Full speed 8-bit slices 1 120 dpi Half speed 8-bit slices 2 120 dpi Full speed 8-bit slices 3 240 dpi Full speed 8-bit slices 4 80 dpi Full speed 8-bit slices 5 72 dpi Full speed 8-bit slices 6 90 dpi Full speed 8-bit slices 7 144 dpi Full speed 8-bit slices 8,9,11,12,13,14,16 Not supported

Where <m>

Function ASCII Hexadecimal Decimal IPCL

Reassign graphic mode <m> [ESC] ? <m> <n> 1BH 3FH <m> <n> <27> <63> <m> <n> none

Description

This command reassigns graphic mode <m> to resolution <n>. Possible values for <m> are K, L, Y or Z. Resolutions <n> are 0 through 7 as follows: 0 60 dpi Full speed 8-bit slices Default for K 1 120 dpi Half speed 8-bit slices Default for L 2 120 dpi Full speed 8-bit slices Default for Y 3 240 dpi Full speed 8-bit slices Default for Z 4 80 dpi Full speed 8-bit slices 5 72 dpi Full speed 8-bit slices 6 90 dpi Full speed 8-bit slices 7 144 dpi Full speed 8-bit slices

Where <m>

Page 46

Rev G

12/14/99

Page 57

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.

12/14/99

Function ASCII Hexadecimal Decimal IPCL EPOS

Begin bidirectional print [ESC] U <0> 1BH 55H 00H <27> <85> <0> &%GB [ESC] U <0>

Description

This command prints all data in bidirectional, logic-seeking print mode.

Rev G

Page 47

Page 58

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. The normal mode is more readable than the high speed mode. (See the [ESC] [EM] B command on the next page for setting the bar code height and print speed.) Function ASCII Hexadecimal Decimal IPCL

EPOS Description Where n

Interleaved 2 of 5

Print bar code [ESC] b <n> {information} [ETX] 1BH 62H <n>... 03H <27> <98> <n> ... <3> &%25 ... [CR] Interleaved 2 of 5 &%39 ... [CR] Code 39 &%12 ... [CR] Code 128 &%UP ... [CR] UPC A &%UE ... [CR] UPC E &%EA .. [CR] EAN-13 &%E8 ... [CR] EAN-8 &%93 ... [CR] Code 93 &%HB<n> .. Hollerith10 [ESC] b <n> or [GS] k <n> This command prints the information as a bar code. The bar code will be centered on the print zone. 0 Interleaved 2 of 5 Numeric (0-9) only; must be an even number of digits 1 Code 39 26 uppercase letters (A-Z) and 10 digits (0-9) 2 Code 128 Three sets of 106 different characters 3 UPC A Numeric (0-9) only; 11 digits 4 EAN-13 Numeric (0-9) only; 12 digits 5 UPC E Numeric (0-9) only; 11 digits 6 EAN-8 Numeric (0-9) only; 7 digits 7 Code 93 26 letters, 10 digits (0-9), and 7 special characters 10 Hollerith ASCII data up to 16 digits is a high-density, self-checking, continuous, numeric bar code. It is mainly used where fixed length numeric fields are required. The data field must be an even number of characters. If an odd data field is sent to the printer, it will be zero padded. Due to space limitations, only 16 characters can be printed. (Note: Interleaved 2 of 5 does not read well in fast mode.)

Code 39 is an alphanumeric bar code. It is a discrete, self-checking, variable length code. The complete data field is printed. Due to space limitations, only eight characters can be printed. If illegal characters are passed to the printer, they will be converted to legal codes, i.e., a → A.

Code 128 is an alphanumeric bar code. It is a high-density, variable length, continuous code that employs multiple element widths. Code 128 has three possible start codes. The start code defines the set as Code A, B, or C. The first character in

10 The Hollerith bar code is only available on custom configurations.

Page 48

Rev G

12/14/99

Page 59

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. To solve the problem, the Series 150 Printer subtracts 32 from all characters that are to be included in the bar code. In the Code 128 definition, an “A” is <33>; however, the printer will convert an ASCII “A” (<65>) to a <33> internally. This sets Code 128C and the start codes off by 32.

UPC A is a fixed length, numeric, continuous code that employs four element widths. The printer supports Universal Product Code Version A, E, EAN-8, and EAN13. Version A encodes 11 digits. Typically, the UPC A format starts with a number system digit, five-digit manufacturer’s code, five-digit product code, and a check digit. The printer makes no assumptions about any of the codes except the check digit. The printer will print a UPC bar code with the 11 digits sent to it and generate the check digit. If fewer than 11 digits are sent, the remaining digits will be zeroes. The printer will print a UPC that is about 130% the size of the UPC nominal standard, which provides optimal readability.

UPC E is a zero suppression version of UPC. The printer requires that the first digit is zero for number system zero. If it is not zero, the bar code is not printed. The printer does the compression based on the compression rules for UPC-E. The printer will print a UPC bar code based on the 11 digits sent to it and generate the check digit. If fewer than 11 digits are sent, the remaining digits will be zeroes. The printer will print a UPC that is about 130% the size of the UPC nominal standard, which provides optimal readability.

EAN-8 is a fixed length, numeric, continuous code that employs four element widths. The printer supports EAN-8, which is a superset of UPC that encodes seven digits. The printer will print an EAN-8 bar code with the seven digits sent to it and generate the check digit. If fewer than seven digits are sent, the remaining digits will be zeroes. The printer will print an EAN-8 bar code that is about 130% the size of the nominal standard which provides optimal readability.

EAN-13

This is a fixed length, numeric, continuous code that employs four element widths. The printer supports EAN-13 which is a superset of UPC which encodes 12 digits. Typically, the format starts with a number set digit, which defines how the next six digits are encoded. The next five digits have fixed encoding. The last is a check digit. The printer will print an EAN-13 bar code with the 12 digits sent to it and generate the check digit. If fewer than 12 digits are sent, the remaining digits will be zeroes. The printer will print an EAN-13 bar code that is about 130% the size of the nominal standard, which provides optimal readability.

Code 93 is an alphanumeric, variable length bar code. The complete data field is printed by the printer. Due to space limitations, only 11 characters can be printed.

Hollerith is variable length, ASCII data that is intended for use with optical mark readers. The printer will print a grid of encoded rectangles arranged horizontally across the paper.

Notes

A [CR] may also be used in place of the [ETX] to end the bar code data field. Only information that is usable in a particular bar code will be printed.

12/14/99

Rev G

Page 49

Page 60

Control Codes

PcOS Series 150

Programmer's Guide

Bar codes Function ASCII Hexadecimal Decimal IPCL EPOS

Bar code height [ESC] [EM] B <n> 1BH 19H 42H <n> <27> <25> <66> <n> &%BH <m1> <m2> [GS] h <n>

Description

This command sets the bar code height. Where <n> is the number of print passes, each pass is about 0.11 inch high. If n = <0>, the printer returns to the default values of four passes for all except UPC, which has default values of seven. Any value from zero to nine may be specified.

Function ASCII Hexadecimal Decimal IPCL EPOS

Set bar code justification and human readable number print modes [ESC] [EM] J <n> 1BH 19H 4AH <n> <27> <25> <74> <n> &%BJ <m1> <m2> none The power on default is center justified with numbers on UPC bar codes. Note: This command only effects bar code printing.

Description Where n-bits

Page 50

This command selects the operation of the bar code justification and number printing. n IPCL 76543210 ------xx Justification 0 00 ------00 Left 1 01 ------01 Center 2 02 ------10 Right ----xx-Human readable 0 00 ----00-No numbers 4 04 ----01-Numbers on UPC bar codes 8 08 ----10-Numbers on non-UPC bar codes 12 12 ----11-Numbers on all bar codes

Rev G

12/14/99