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 5 of 16

PcOS Series 150 Receipt/Validation/Journal Printers Programmer's Guide, pages 41 to 50

Pages 41 to 50 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 41

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] <n>

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] <n>

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] <n>

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] <n>

Description

This command sets 24 character per inch print pitch

Figure 9 Examples of character print

12/14/99

Rev G

Page 31

Page 42

Control Codes

PcOS Series 150

Programmer's Guide

Character Pitch Function ASCII Hexadecimal Decimal IPCL EPOS

Set specified character pitch [ESC] [ P <n> 1BH 5BH 50H <n> <27> <91> <80> <n> &%F<n> [ESC] [SP] <n>

Description

This command sets characters per inch print pitch to <n>.

Where n =

<8> <10> <12> <15> <17> <20> <24>

Function Mode ASCII Hexadecimal Decimal IPCL EPOS

Set intercharacter spacing Global [ESC] V <n> 1BH 56H <n> <27> <86> <n> none [ESC] [SP] <n>

Description

Set intercharacter spacing by adding white space between characters. The value of <n> sets the spacing and ranges from zero to 11. The normal pitch set commands set the intervalue to zero. The amount of space depends on the pitch that was set. The following table specifies the amount of white space for each pitch setting.

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

Page 43

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

Page 44

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 <n> 1BH 57H <n> <27> <87> <n> &%FD, &%FS, &%FH (Note: Single-wide, double-high print is not available in IPCL). [ESC] ! <n> 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] ! <n> 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] <k> [NUL] <n> <m> 1BH 5BH 40H 04H 00H <k> 00H <n> <m> <27> <91> <64> <04> <0> <k> <0> <n> <m> &%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

Page 45

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

Page 46

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] ! <n>

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]!<n> 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

Page 47

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

Page 48

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

Page 49

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

Page 50

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 <n> commands in the rotated data. The [ESC] u command specifies the number of dots to be added between each printed line. Each line has an entry in the table. There is room for 22 lines in the table. The minimum spacing (and default) is one dot or 1/80 inch between lines which results in a total of 10 dots in a line or 10/80 inch (8 lines per inch). The character cell is 7 x 9 with one dot of white space9 or a total cell size of 7 x 10. The cell is printed at 80 dots per inch. If three dots are added, there will be a total of four dots, and the cell will be 7 x 13. The following table specifies lines per inch for various numbers of inserted dots. Number of dots added Spacing specified Cell size Line spacing (inches) Number lines per inch

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