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

PcOS Series 150 Receipt/Validation/Journal Printers Programmer's Guide, pages 31 to 40

Pages 31 to 40 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 31

Programmer's Guide

PcOS Series 150

Control Codes Vertical Motion

Function ASCII Hexadecimal Decimal IPCL EPOS

Set form length in lines [ESC] C <n> 1BH 43H <n> <27> <67> <n> &%SL <m1> <m2> [ESC] C <n>

Description

This command sets the form length to <n> lines at the current line spacing.

Function ASCII Hexadecimal Decimal IPCL EPOS

Set form length in inches [ESC] C [NUL] <n> 1BH 43H <0> <n> <27> <67> <0> <n> &%SI <m1> <m2> none

Description

This command sets the form length to <n> inches.

Function ASCII Hexadecimal Decimal IPCL EPOS

Begin auto line feed [ESC] 5 <01> 1BH 35H 01H <27> <53> <01> &%MA none

Description

This command sets auto line feed mode. Note: This overrides the configuration setting.

Function ASCII Hexadecimal Decimal IPCL EPOS

End auto line feed [ESC] 5 <0> 1BH 35H 00H <27> <53> <0> &%CA none

Description

This command ends auto line feed mode. Note: This overrides the configuration setting.

Function ASCII Hexadecimal Decimal IPCL EPOS

Reverse line feed [ESC] ] 1BH 5DH <27> <93> &%LR none

Description

This command performs a reverse line feed at the current line spacing. Note: The receipt station can tolerate no more than 1/2 inch of reverse feed. Note: This command is not available in models with validation.

12/14/99

Rev G

Page 21

Page 32

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

Description

This command begins high speed draft print mode (one pass, 7 x 7 font). Enhanced, emphasized, subscript, superscript, and underline character attributes are not available in this mode. To maintain optimum print speed, the printer should be returned to HSD mode when possible.

Function ASCII Hexadecimal Decimal IPCL

EPOS

Select print quality mode [ESC] I <n> 1BH 49H 00H <27> <73> <0> &%QT High Speed Draft (HSD) &%QU Utility &%QL Near Letter Quality (NLQ) Courier &%QS Near Letter Quality (NLQ) Sans Serif [ESC] x <n> and/or [ESC] ! <n>

Description

This command begins utility or NLQ print mode.

Where n

0 = HSD 1 = Utility 2 = NLQ Courier 3 = NLQ Sans Serif 4 - 7 repeats 0 - 3 Utility mode is a one pass, 9 x 7 font. Utility print mode enables enhanced, emphasized, subscript, superscript, and underline character attributes. Print speed is reduced approximately 20% over HSD mode. NLQ Courier and Sans Serif print modes are each twp pass, 9 x 7 fonts. The print speed is reduced and character features are added to the font to enhance the appearance. EPOS Note: [ESC] x is identical to [ESC] I in normal mode. [ESC] ! <n> performs a similar function; however, NLQ is not available.

Where n-bits

Page 22

76543210 1--------1-------1----------X

Function Underline Double-wide Double-high Font: 1 = Utility, 0 = HSD

Rev G

12/14/99

Page 33

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 <n> This command rotates the print font by 90°. The print font is a one pass, 7 x 10 font. Enhanced, emphasized, subscript, superscript, and underline character attributes are not available in this mode. Double-wide and double-high print are available in 90° rotated mode. However, because the font is rotated, doublewide print will make the characters taller and double-high print will make the characters wider. The current pitch sets the spacing between lines. If eight cpi is set, the printer will produce the equivalent of eight lines per inch rotated print. Print pitches greater than 12 cpi are small and difficult to read. This mode prints faster than the formatted, rotated print mode. However, there is no formatting in this mode. Note: Line graphic characters (<176> to <223>) print unrotated. EPOS Note: In EPOS mode if <n> = 0, rotation is turned off. If <n> = 1, the pitch is set to ten cpi. If <n> = 2, the cpi is set to eight.

Function ASCII Hexadecimal Decimal IPCL EPOS

Begin 270° rotated font [ESC] P <2> 1BH 50H 2H <27> <80> <2> &%RI{n=2} &%RN{n=0} none

Description

This command rotates the print font by 270°. The print font is a one pass, 7 x 10 font. Enhanced, emphasized, subscript, superscript, and underline character attributes are not available in this mode. Double-wide and double-high print are available in 270° rotated mode. However, because the font is rotated, doublewide print will make the characters taller and double high will make the characters wider.

Function ASCII Hexadecimal Decimal IPCL EPOS

End rotated font [ESC] P <0> 1BH 50H 00H <27> <80> <0> &%RN [ESC] V <n>

Description

This command returns the print font to normal nonrotated mode. Note: This command leaves the printer in utility mode.

12/14/99

Rev G

Page 23

Page 34

Control Codes

PcOS Series 150

Programmer's Guide

Character Sets and Code Pages

International Character Sets and Code Pages The Series 150 Printer supports 65 different international character sets. In IBM and EPOS printers, there has historically been two ways of selecting a character set. The first way substitutes international characters in the upper 128 characters of the standard character set to support different countries. As time passed, this approach became difficult to support. It became a problem for the application to match the characters displayed and the characters printed. To solve the problem, code pages were developed. The printer and the display could use the same code page and the application would then display and print the same characters. IBM and EPOS defined new commands to select code pages and left the old commands in effect. The Series 150 Printer supports international character sets as well as code pages. However, both methods are extended in the Series 150 Printer. This is to allow the most flexibility for the application programmer. In IBM mode, there are 19 character sets and 60 code pages. In EPOS mode, there are 57 character sets and five code pages.7 The Series 150 Printer has extended the IBM code page selection command to allow the character sets as well as normal IBM code pages to be selected. The EPOS character set select command has been extended to allow additional character sets over and above the 11 defined by EPOS. The EPOS code page select command has not been extended as there is no EPOS definition beyond the first six ID’s. All characters in code pages as well as character sets are addressed as 0 thorough 255. (Characters below 32 must be addressed with the [ESC] ^ <n> command.) Code pages may be changed at any time and are active for all features including rotated print. As discussed above, there are two commands for language selection in IBM mode. The first is [ESC] ! which will select one of 19 international character sets. This command will not select all the possible sets and is provided for compatibility with older programs. The second is [ESC] [ T which will select any of the 58 code pages. In EPOS mode, the command [ESC] R has been expanded and will select any of the 59 international character sets or code pages. Function ASCII Hexadecimal Decimal IPCL EPOS

Select international character set [ESC] ! <n> 1BH 21H <27> <33> &%CS <n> [ESC] R <n>

Description

This command selects the international character set, <n>. In standard mode, the value of <n> is as follows:

7 Epson provides limited code page support through ID to code page translation. Only six translations are defined.

Page 24

Rev G

12/14/99

Page 35

Programmer's Guide

PcOS Series 150

Control Codes Character Sets and Code Pages

<n>

Language

<n>

Language

<n>

Language

64-’@’

ASCII (slashed zero)

71-’G’

Norwegian

78-’N’

Swedish IV

65-’A’

ASCII (unslashed zero)

72-’H’

Dutch

79-’O’

Turkish

66-’B’

British

73-’I’

Italian

80-’P’

Swiss I

67-’C’

German

74-’J’

French Canadian

81-’Q’

Swiss II

68-’D’

French

75-’K’

Spanish

69-’E’

Swedish

76-’L’

Swedish II

70-’F’

Danish

77 -’M’

Swedish III

Table 5 Language table IDs Country Code/

Language Set

Epson ID

ASCII

0

Swiss II

20

Windows Greek

50

French

1

Cyrillic II-866

21

Latin 5

51

Language Set

Epson ID

Country Code/ Language Set

Epson ID

Country Code/

(Windows Turkey) German

2

Polska Mazovia

22

Windows Cyrillic

52

British

3

ISO Latin 2

23

Hungarian CWI

54

Danish I

4

Serbo Croatic I

24

Kamenicky (MJK)

55

Swedish I

5

Serbo Croatic II

25

ISO Latin 4 (8859/4)

56

Italian

6

Multilingual

26

Turkey_857

57

Spanish I

7

Norway

27

Roman-8

58

Japanese

8

Portugal

28

Hebrew NC (862)

60

Norwegian

9

Turkey

29

Hebrew OC

61

Danish II

10

Greek 437

38

Windows Hebrew

62

Spanish II

11

Greek 928

39

KBL- Lithuanian

63

Latin American

12

Greek 437 CYPRUS

42

Ukrainian

66

French Canadian

13

ECMA-94

43

ISO Latin 6 (8859/10)

67

Dutch

14

Canada French

44

Windows Baltic

68

Swedish II

15

Cyrillic I-855

45

Cyrillic-Latvian

69

Swedish III

16

Cyrillic II-866

46

Bulgarian

72

Swedish IV

17

East Europe Latin II-852

47

Icelandic-861

73

Turkish

18

Greek 869

49

Baltic 774

74

Swiss I

19

Windows East Europe

Table 6 EPOS language table IDs Note: There is a demonstration script distributed with the CFG150 program that will print a complete character chart for IBM or EPOS modes. See the CFG150 distribution disk.

12/14/99

Rev G

Page 25

Page 36

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 <nh> <nl> 1BH 5BH 54H <nh> <nl> <27> <91> <84> <nh> <nl> &%CP <m1> <m2> <m3> <m4> [ESC] t <n>

Description

This command selects the character code page <nh> <nl>. The Series 150 Printer supports many code pages. The following code pages are supported.

Code Page

Country Code/ Language Set USA (slashed zero)

Decimal <nh> <nl> 0,64

Hex <nh> <nl> 0H,040H

Code Page 866

Country Code/ Language Set Cyrillic II-866

Decimal <nh> <nl> 3,98

Hex <nh> <nl> 3H,062H

65

USA (unslashed zero)

0,65

0H,041H

869

Greek 869

3,101

3H,065H

66

British

0,66

0H,042H

67

German

0,67

0H,043H

874

Thailand

3,106

3H,06AH

895

Kamenicky (MJK)

3,127

68

French

0,68

3H,07FH

0H,044H

1008

Greek 437

3,240

69

Swedish I

3H,0F0H

0,69

0H,045H

1009

Greek 928

3,241

70

3H,0F1H

Danish

0,70

0H,046H

1011

Greek 437 Cyprus

3,243

3H,0F3H

71

Norwegian

0,71

0H,047H

1012

Turkey

3,244

3H,0F4H

72

Dutch

0,72

0H,048H

1013

Cyrillic II-866

3,245

3H,0F5H

73

Italian

0,73

0H,049H

1014

Polska Mazovia

3,246

3H,0F6H

74

French Canadian

0,74

0H,04AH

1015

ISO Latin 2

3,247

3H,0F7H

75

Spanish

0,75

0H,04BH

1016

Serbo Croatic I

3,248

3H,0F8H

76

Swedish II

0,76

0H,04CH

1017

Serbo Croatic II

3,249

3H,0F9H

77

Swedish III

0,77

0H,04DH

1018

ECMA-94

3,250

3H,0FAH

78

Swedish IV

0,78

0H,04EH

1019

Windows East Europe

3,251

3H,0FBH

79

Turkish

0,79

0H,04FH

1020

Windows Greek

3,252

3H,0FCH

80

Swiss I

0,80

0H,050H

1021

Latin 5 (Windows Turkey)

3,253

3H,0FDH

81

Swiss II

0,81

0H,051H

1022

Windows Cyrillic

3,254

3H,0FEH

90

Publisher

0,90

0H,05AH

1024

Hungarian CWI

4,0

4H,000H

91

Welsh

0,91

0H,05BH

1026

ISO Latin 4 (8859/4)

4,2

4H,002H

437

USA

1,181

1H,0B5H

1027

Ukrainian

4,3

4H,003H

774

Baltic 774

3,6

3H,006H

1028

Roman-8

4,4

4H,004H

850

Multilingual

3,82

3H,052H

852

East Europe Latin II-852

3,84

3H,054H

1029

ISO Latin 6 (8859/10)

4,5

4H,005H

855

Cyrillic I-855

3,87

3H,057H

1030

Hebrew NC (862)

4,6

4H,006H

857

Turkey 857

3,89

3H,059H

1031

Hebrew OC

4,7

4H,007H

860

Portugal

3,92

3H,05CH

1032

Windows Hebrew

4,8

4H.008H

861

Icelandic-861

3,93

3H,05DH

1033

KBL- Lithuanian

4,9

4H,009H

862

Hebrew NC (862)

3,94

3H,05EH

1034

Windows Baltic

4,10

4H,00AH

863

Canada French

3,95

3H,05FH

1035

Cyrillic-Latvian

4,11

4H,00BH

865

Norway

3,97

3H,061H

1072

Bulgarian

4,48

4H,030H

64

Table 7 Code page definition table Note: The code page field is a 16-bit field that is equivalent to the code page number. For example, 1 * 256 + 181 = 437. For the IPCL command, the page is specified in ASCII as a 4-byte field.

Page 26

Rev G

12/14/99

Page 37

Programmer's Guide

PcOS Series 150

Control Codes Character Sets and Code Pages

EPOS Note: EPOS defines <n> as follows: <n>

Character Code Page

<n>

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] ^ <n> 1BH 5EH <n> <27> <94> <n> &%CC <m1> <m2> <m3> [ESC] ^ <n>

Description

This command allows characters from 0 to 31 codes to be printed. During normal operation, characters from 0 to 31 are control characters. This command turns off the control code translation for the following character. <n> can be from 0 to 255.

Function ASCII

Redefine Character Set [ESC] [ S <LL> <LH> <BC> <T1L><T1H><T2L><T2H><T3L><T3H> … <TnL> <TnH> 1BH 5BH 40H … <27> <91> <64> none none This command allows an application to replace or redefine the active character set mapping in the printer. <LL> <LH> defines the total length of the following data: <LL> + 256 * <LH> = 1 + 2 * is the total number of characters to be replaced. <BC> is the first character in the active map to be replaced. <T1H> <T1L>8 is the internal address of the replacement character image. The mapping of a print pattern to each character address is referred to as a code page or character set. At any given time, the printer character set is comprised of 256 characters. Each character is addressed by an 8-bit value generally referred to as a character code. For example if you want to print an ‘A,’ the character would be addressed by sending a <65> decimal to the printer. There are 65 predefined code pages or character maps that assign characters to a particular address built into the printer. However, there are times when an application would like to redefine a character or group of characters in a code page. To be able to redefine characters, the Series 90PLUS Printer allows the map for any code page to be replaced. The “Define Character Set” command allows any character or group of characters to be replaced with any other printable character. There are over 500 printable master characters defined in the printer.

Hexadecimal Decimal IPCL EPOS Description Where

8 The internal character map is provided in the Master Character Set Definitions Guide (PN 100-9785).

12/14/99

Rev G

Page 27

Page 38

Control Codes

PcOS Series 150

Programmer's Guide

Character Sets and Code Pages For example, to redefine the character map for the 35th character and replace it with internal master character 346, the “Redefine Character Set” command is used as follows: [ESC] [ S <3> <0> <35> <90> <1> ^^^^ ^^ ^^^^^^ | | +346th Character in the Master set | | [(1*256) + 90] | +------- 35th Character +----------- 3 Bytes to follow [(0*256) + 3] The new map will remain until the printer is power cycled or the character set is redefined. The code page and character set commands completely redefine the table. Function ASCII Hexadecimal Decimal IPCL EPOS

Character font image download [ESC] = <n1> <n2> <start code> <data> 1BH 3DH <n1> <n2> <start code> <data> <27> <61> <n1> <n2> <start code> <data> none none

Description

This command allows custom characters to be downloaded. The total count is [(number of characters x 9) + 1] = (n1 + 256 * n2). The start code is the starting character where the download is to start.

Function ASCII Hexadecimal Decimal IPCL EPOS

Copy ROM Character Set to RAM Character Set [ESC] $ 1BH 24H <n> <27> <36> none none

Description

This command copies the internal ROM character set to the RAM character set.

Function ASCII Hexadecimal Decimal IPCL EPOS

Custom character set ON [ESC] > <n> 1BH 3EH <1> <27> <62> <1> none none

Description

This selects the custom character set contained in the RAM font buffer.

Page 28

Rev G

12/14/99

Page 39

Programmer's Guide

PcOS Series 150

Control Codes Character Sets and Code Pages

Function ASCII Hexadecimal Decimal IPCL EPOS

Custom character set OFF [ESC] > <n> 1BH 3EH <0> <27> <62> <0> none none

Description

This command turns off the custom character set contained in the RAM font buffer.

Function ASCII Hexadecimal Decimal IPCL EPOS Description

Insert Euro Character [ESC] [ C <n> 1BH 5BH 43H <n> <27> <91> <67> &%EU none This command allows an application to replace any character in the currently active character set with the Euro character. The character to be replaced is defined by <n>. For example, if the currently active character set is CP 850 (multilingual) and the 0D5H character is to be the Euro character, “1BH 5BH 43H 0D5H” will replace the character at 0D5H with the Euro symbol. Euro Character Substitution Matrix Name

Epson

IBM

Code Page Insertion Point

850

26

850

0xD5

Turkey 857

57

857

0xD5

Win Cyrillic

52

1022

0x88

Win Turkish

51

1021

0x80

Win Greek

50

1020

0x80

Win Hebrew

62

1032

0x80

Win Baltic

68

1034

0x80

Table 9 Euro Character Substitution Matrix

12/14/99

Rev G

Page 29

Page 40

Control Codes

PcOS Series 150

Character Pitch

Ithaca Peripherals

Programmer's Guide

Character Print Control There are a number of character pitch and print mode operations that are possible and a few that are not. The following table lists the operations that are possible in matrix form. Some features switch to an alternate mode while active. For example, if line graphics are to be printed the printer always prints them in a two-pass utility font at the selected pitch. Some enhanced or emphasized print formats are not available in 15 to 24 cpi. Rotated 180° print fully supports all print features. Rotated 90° and 270° print in a 5 x 7 font at 72 dpi is equivalent to a 12 cpi HSD font. Rotated print supports ten cpi and 12 cpi by controlling the line spacing. Operation

8 cpi

10 cpi

12 cpi

15 cpi

17 cpi

20 cpi

24 cpi

Line gph

Ital

Super /sub

Util

NLQ

HSD

Emph

Enhan

Dblwide

Dblhigh

Under /over

ü ü ü ü ü ü ü

ü ü ü ü ü ü ü

ü ü ü ü ü ü ü

ü ü ü L L L L ü

ü ü ü ü ü ü ü ü

ü ü ü L L L L L

ü ü ü L L L L L

ü ü ü ü ü ü ü ü

ü ü ü ü ü ü ü ü

ü ü ü ü ü ü ü L

ü ü

L L

ü ü

ü ü

ü ü

ü ü

ü ü

ü

ü

L

L

ü ü ü L L

ü ü ü L L

L L ü

L L ü

ü ü L ü ü ü ü

ü

ü

L

L

L

L

Line graphics

ü

ü

ü

ü

ü

ü

ü

ü ü ü ü ü ü ü ü

Italics

ü ü

ü ü

ü ü

ü ü

ü ü

ü ü

ü ü

ü ü

ü ü ü ü ü ü ü ü

ü ü ü ü ü ü ü ü

ü ü ü ü ü ü ü ü

ü L ü L L ü ü ü

ü L ü L L ü ü ü

ü L ü L L ü ü ü

ü L ü L L ü ü ü

ü ü ü L L ü ü L

ü ü L ü ü ü ü ü

ü ü L ü ü ü ü ü

ü ü ü ü ü

ü ü ü

L L ü ü L

L

ü

ü

L

L

L

L

ü

L

L

L

L

L

8 cpi 10 cpi 12 cpi 15 cpi 17 cpi 20 cpi 24 cpi

Supercript/ subscript Utility NLQ HSD Emphasized Enhanced Double-wide Double-high Underline/ Overline Rotate 90°/270°

Table 10 Print modes Notes: ü L

Page 30

Feature available Feature not available

Rev G

12/14/99

L