beautypg.com

User's guide d-12 code sets – AMT Datasouth ACCEL-6300 User Manual

Page 191

background image

User's Guide

D-12 Code Sets

Table D-3. AMT Datasouth and Diablo 630 Escape Sequences––continued

Function

ASCII

Hexadecimal

Decimal

Description

Absolute and Relative Moving––continued

Relative move right ..................

ESC @ h n1 n2

1B 40 68 n1 n2

27 64 104 n1 n2

To move the carriage to the left, subtract the number of

or left

increments to move from 65,536 and then supply the cor-

(continued)

rect n1 and n2 values. For example, to move the carriage two
inches to the left (480 x 1/240"), first subtract 480 from 65,536 to
get 65,056. Then, use the equation to determine the correct n1
and n2 values. In this example, the correct n2 value is 254 and
the correct n1 value is 32 (65,056 = (254 x 256) + 32). If the
sequence specifies a distance that would move the carriage
beyond the left or right print boundary, the carriage moves to
that boundary.

Relative move down .................

ESC @ v n1 n2

1B 40 76 n1 n2

27 64 118 n1 n2

This sequence advances or reverse feeds the paper a specific

or up

distance from the current position. The values of variables
n1 and n2 define the distance in 1/240-inch increments:

Distance in 1/240ths = (n2 x 256) + n1

To advance the paper, just compute the number of incre-ments
to advance and supply the correct n1 and n2 values. For
example, to advance the paper one inch (240 x 1/240"), the
correct n2 value is 0 and the correct n1 value is 240 (240 = (0 x
256) + 240).

To reverse feed the paper, subtract the number of incre-
ments to move from 65,536 and then supply the correct n1 and
n2 values. For example, to reverse feed the paper two inches
(480 x 1/240"), first subtract 480 from 65,536 to get 65,056.
Then, use the equation to determine the correct n1 and n2 values.
In this example, the correct n2 value is 254 and the correct n1
value is 32 (65,056 = (254 x 256) + 32).

Text Functions

Set print quality (speed) ...........

ESC @ P n

1B 40 50 n

27 64 80 n

This sequence selects the text quality. Letter-quality char-

Letter ..................................

ESC @ P L

1B 40 50 4C

27 64 80 76

acters are formed from a 32-dot-high by 36-dot-wide matrix.

Memo ...................................

ESC @ P M

1B 40 50 4D

27 64 80 77

Memo-quality characters are formed from a 16-dot-high by

Draft .....................................

ESC @ P D

1B 40 50 44

27 64 80 68

36-dot-wide matrix. Draft-quality characters are formed
from an 8-dot-high by 15-dot-wide matrix.

)Note: Some font options do not contain character sets for all
print qualities. If letter-quality is selected, but the font does not
contain this character set, memo-quality is selected; and vice-
versa. If the font contains neither a letter- or memo-quality
character set, the letter- or memo-quality Courier character set
is selected, If draft-quality is selected, but the font does not
contain this character set, the draft-quality Courier character set
is selected.

User's Guide

D-12 Code Sets

Table D-3. AMT Datasouth and Diablo 630 Escape Sequences––continued

Function

ASCII

Hexadecimal

Decimal

Description

Absolute and Relative Moving––continued

Relative move right ..................

ESC @ h n1 n2

1B 40 68 n1 n2

27 64 104 n1 n2

To move the carriage to the left, subtract the number of

or left

increments to move from 65,536 and then supply the cor-

(continued)

rect n1 and n2 values. For example, to move the carriage two
inches to the left (480 x 1/240"), first subtract 480 from 65,536 to
get 65,056. Then, use the equation to determine the correct n1
and n2 values. In this example, the correct n2 value is 254 and
the correct n1 value is 32 (65,056 = (254 x 256) + 32). If the
sequence specifies a distance that would move the carriage
beyond the left or right print boundary, the carriage moves to
that boundary.

Relative move down .................

ESC @ v n1 n2

1B 40 76 n1 n2

27 64 118 n1 n2

This sequence advances or reverse feeds the paper a specific

or up

distance from the current position. The values of variables
n1 and n2 define the distance in 1/240-inch increments:

Distance in 1/240ths = (n2 x 256) + n1

To advance the paper, just compute the number of incre-ments
to advance and supply the correct n1 and n2 values. For
example, to advance the paper one inch (240 x 1/240"), the
correct n2 value is 0 and the correct n1 value is 240 (240 = (0 x
256) + 240).

To reverse feed the paper, subtract the number of incre-
ments to move from 65,536 and then supply the correct n1 and
n2 values. For example, to reverse feed the paper two inches
(480 x 1/240"), first subtract 480 from 65,536 to get 65,056.
Then, use the equation to determine the correct n1 and n2 values.
In this example, the correct n2 value is 254 and the correct n1
value is 32 (65,056 = (254 x 256) + 32).

Text Functions

Set print quality (speed) ...........

ESC @ P n

1B 40 50 n

27 64 80 n

This sequence selects the text quality. Letter-quality char-

Letter ..................................

ESC @ P L

1B 40 50 4C

27 64 80 76

acters are formed from a 32-dot-high by 36-dot-wide matrix.

Memo ...................................

ESC @ P M

1B 40 50 4D

27 64 80 77

Memo-quality characters are formed from a 16-dot-high by

Draft .....................................

ESC @ P D

1B 40 50 44

27 64 80 68

36-dot-wide matrix. Draft-quality characters are formed
from an 8-dot-high by 15-dot-wide matrix.

)Note: Some font options do not contain character sets for all
print qualities. If letter-quality is selected, but the font does not
contain this character set, memo-quality is selected; and vice-
versa. If the font contains neither a letter- or memo-quality
character set, the letter- or memo-quality Courier character set
is selected, If draft-quality is selected, but the font does not
contain this character set, the draft-quality Courier character set
is selected.