beautypg.com

User's guide code sets d-41 – AMT Datasouth AMTACCEL-5350 User Manual

Page 219

background image

User's Guide

Code Sets D-41

Table D-6. Epson and IBM Escape Sequences––continued

Function

ASCII

Hexadecimal

Decimal

Description

Text Functions––continued

Double-high / double-wide

ESC [ @ EOT

1B 5B 40 04

27 91 64 4

The value of variable n2 determines whether double-wide

printing (continued)

NUL NUL NUL

00 00 00 n1 n2

0 0 0 n1 n2

printing starts or ends:

n1 n2

Variable n2

Double-Wide ASCII Hex Dec

No change

NUL

00

0

End

SOH

01

1

Start

STX

02

2

For example, to start double-high and double-wide
printing with line spacing set to 3 lpi, the correct sequence
is 27 91 64 4 0 0 0 34 2 (decimal).

Double-high printing

These sequences start/end double-high printing, where-

Start ................................

ESC ESC H 1

1B 1B 48 31

27 27 72 49

in characters print twice their normal height. The

Start (alternate) ...............

ESC w 1

1B 77 31

27 119 49

sequences do not change the current line spacing.

End .................................

ESC ESC H 0

1B 1B 48 30

27 27 72 48

End (alternate) ................

ESC w 0

1B 77 30

27 119 48

Double-wide printing ........

ESC ESC W n

1B 1B 57 n

27 27 87 n

This sequence starts/ends double wide printing, where-

Start ................................

ESC ESC W 1

1B 1B 57 31

27 27 87 49

in characters print twice their normal width. This

End .................................

ESC ESC W 0

1B 1B 57 30

27 27 87 48

sequence does not change the current character spacing.

Double-wide printing ........

ESC W n

1B 57 n

27 87 n

This sequence starts/ends double wide printing, where-

Start ................................

ESC W 1

1B 57 31

27 87 49

in characters print twice their normal width. This

End .................................

ESC W 0

1B 57 30

27 87 48

sequence also doubles the character spacing to
accommodate the wider characters. A DC4 code does not
turn off double-wide printing started with this sequence.

One-line double-wide .........

ESC SO

1B 0E

27 14

This sequence starts and ends double wide printing on the

printing

current line and doubles the character spacing to
accommo-date the wider characters. A DC4 code or any
control code or escape sequence that causes paper
movement ends double-wide printing and resumes normal
character spac-ing. The ESC ESC W 0 and ESC W 0
sequences also end double-wide printing started with ESC
SO.

Set master print mode .......

ESC ! n

1B 21 n

27 33 n

This sequence sets many unique print feature combina-
tions. The value of variable n determines which modes
are on and which are off. To find the correct n value, add
up the num-bers of the desired features:

0 - 10 pitch

4 - Condensed

32 - Dble-wide

1 - 12 pitch

8 - Shadow

64 - Italic

2 - Proportional 16 - Bold

128 - Underscore

For example, to select 12-pitch, shadow, italic and under-
score, the correct n value is 201 (1 + 8 + 64 + 128 = 201).
This sequence ends all print features in the list that are not
selected. Also, a proportional printing selection overrides
10- and 12-pitch selections.

User's Guide

Code Sets D-41

Table D-6. Epson and IBM Escape Sequences––continued

Function

ASCII

Hexadecimal

Decimal

Description

Text Functions––continued

Double-high / double-wide

ESC [ @ EOT

1B 5B 40 04

27 91 64 4

The value of variable n2 determines whether double-wide

printing (continued)

NUL NUL NUL

00 00 00 n1 n2

0 0 0 n1 n2

printing starts or ends:

n1 n2

Variable n2

Double-Wide ASCII Hex Dec

No change

NUL

00

0

End

SOH

01

1

Start

STX

02

2

For example, to start double-high and double-wide
printing with line spacing set to 3 lpi, the correct sequence
is 27 91 64 4 0 0 0 34 2 (decimal).

Double-high printing

These sequences start/end double-high printing, where-

Start ................................

ESC ESC H 1

1B 1B 48 31

27 27 72 49

in characters print twice their normal height. The

Start (alternate) ...............

ESC w 1

1B 77 31

27 119 49

sequences do not change the current line spacing.

End .................................

ESC ESC H 0

1B 1B 48 30

27 27 72 48

End (alternate) ................

ESC w 0

1B 77 30

27 119 48

Double-wide printing ........

ESC ESC W n

1B 1B 57 n

27 27 87 n

This sequence starts/ends double wide printing, where-

Start ................................

ESC ESC W 1

1B 1B 57 31

27 27 87 49

in characters print twice their normal width. This

End .................................

ESC ESC W 0

1B 1B 57 30

27 27 87 48

sequence does not change the current character spacing.

Double-wide printing ........

ESC W n

1B 57 n

27 87 n

This sequence starts/ends double wide printing, where-

Start ................................

ESC W 1

1B 57 31

27 87 49

in characters print twice their normal width. This

End .................................

ESC W 0

1B 57 30

27 87 48

sequence also doubles the character spacing to
accommodate the wider characters. A DC4 code does not
turn off double-wide printing started with this sequence.

One-line double-wide .........

ESC SO

1B 0E

27 14

This sequence starts and ends double wide printing on the

printing

current line and doubles the character spacing to
accommo-date the wider characters. A DC4 code or any
control code or escape sequence that causes paper
movement ends double-wide printing and resumes normal
character spac-ing. The ESC ESC W 0 and ESC W 0
sequences also end double-wide printing started with ESC
SO.

Set master print mode .......

ESC ! n

1B 21 n

27 33 n

This sequence sets many unique print feature combina-
tions. The value of variable n determines which modes
are on and which are off. To find the correct n value, add
up the num-bers of the desired features:

0 - 10 pitch

4 - Condensed

32 - Dble-wide

1 - 12 pitch

8 - Shadow

64 - Italic

2 - Proportional 16 - Bold

128 - Underscore

For example, to select 12-pitch, shadow, italic and under-
score, the correct n value is 201 (1 + 8 + 64 + 128 = 201).
This sequence ends all print features in the list that are not
selected. Also, a proportional printing selection overrides
10- and 12-pitch selections.

This manual is related to the following products: