AMT Datasouth ACCEL-6300 Printer User Manual


 
User's Guide
Code Sets D-33
Table D-6. Epson and IBM Escape Sequences––continued
Function ASCII Hexadecimal Decimal Description
Absolute and Relative Moving––continued
Relative move right.................. ESC d n1 n2 1B 64 n1 n2 27 100 n1 n2 This sequence moves the carriage a specific distance to the
to print position right from the current print position. The value of variables n1
and n2 define the distance in 1/120-inch increments:
Distance in 1/120ths = (n2 x 256) + n1
For example, to move the carriage three inches to the right (360/
120 inch), the correct n2 value is 1 and the correct n1 value is
104 (360 = (1 x 256) + 104). If the sequence specifies a distance
that would move the carriage beyond the right print boundary,
the carriage moves to that boundary.
Relative move right.................. ESC ESC h 1B 1B 68 n1 n2 27 27 104 n1 n2 This sequence moves the carriage a specific distance to the
or left n1 n2 right or left from the current print 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 move the carriage to the right, just compute the number of
increments to move and supply the correct n1 and n2 values. For
example, to move the carriage two inches to the right (480 x 1/
240"), the correct n2 value is 1 and the correct n1 value is 224
(480 = (1 x 256) + 224).
To move the carriage to the left, subtract the number of
increments to move from 65,536 and then supply the cor-
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 ESC v 1B 1B 76 n1 n2 27 27 118 n1 n2 This sequence advances or reverse feeds the paper a speci-
or up n1 n2 fic 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).
User's Guide
Code Sets D-33
Table D-6. Epson and IBM Escape Sequences––continued
Function ASCII Hexadecimal Decimal Description
Absolute and Relative Moving––continued
Relative move right.................. ESC d n1 n2 1B 64 n1 n2 27 100 n1 n2 This sequence moves the carriage a specific distance to the
to print position right from the current print position. The value of variables n1
and n2 define the distance in 1/120-inch increments:
Distance in 1/120ths = (n2 x 256) + n1
For example, to move the carriage three inches to the right (360/
120 inch), the correct n2 value is 1 and the correct n1 value is
104 (360 = (1 x 256) + 104). If the sequence specifies a distance
that would move the carriage beyond the right print boundary,
the carriage moves to that boundary.
Relative move right.................. ESC ESC h 1B 1B 68 n1 n2 27 27 104 n1 n2 This sequence moves the carriage a specific distance to the
or left n1 n2 right or left from the current print 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 move the carriage to the right, just compute the number of
increments to move and supply the correct n1 and n2 values. For
example, to move the carriage two inches to the right (480 x 1/
240"), the correct n2 value is 1 and the correct n1 value is 224
(480 = (1 x 256) + 224).
To move the carriage to the left, subtract the number of
increments to move from 65,536 and then supply the cor-
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 ESC v 1B 1B 76 n1 n2 27 27 118 n1 n2 This sequence advances or reverse feeds the paper a speci-
or up n1 n2 fic 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).