Set Vertical Line Spacing To 1/6 Inch; Set Vertical Line Spacing - CognitiveTPG A798 Programming Manual

Thermal receipt printer
Hide thumbs Also See for A798:
Table of Contents

Advertisement

Revision D 10/13
Formulas
The example shows how to calculate 280 dots as the absolute starting position.
28 x 10 =
280 dots (beginning of column 29)
280/256 =
1, remainder of 24
nL = 24 nH =
1
Related information
If the set horizontal and vertical motion units command (1D 50) is used to change the horizontal and vertical minimum
motion unit, the parameters of the set relative print position command will be interpreted accordingly. For more
information, see the description of the command set horizontal and vertical minimum motion units command (1D 50) in
this document.
Compatibility information (A798 receipt vs. A793 receipt)
There is a difference in the normal behavior of this command in A793 emulation mode as compared to the original A793.
The difference exists when the command is used to move to the left. The A793 processes the whole print string prior to
putting it in the buffer for the print head. This method of processing allows the A793 to backup in the print string and
replace characters and their associated attributes when a "Set relative print position" command instructs the printer to
move the print position to the left.
In order to improve the speed of printing, the A798 moves the data into a buffer for the printhead when it receives it. When
the "Set relative print position" command contains a move to the left, this causes the new data to overstrike the previous
data. This behavior can be used to an application's advantage to provide the ability to create compound characters on the
receipt station.
This command also functions differently in the A793 emulation when used in graphics:
n x 2 = Number of dots to be moved from the beginning of the line when this command is followed by a graphics
command.

Set vertical line spacing to 1/6 inch

ASCII
ESC 2
Hexadecimal
1B 32
Decimal
27 50
Default:
3.33 mm (0.13 inch)
Sets the default line spacing to 4.25 mm (1/6 of an inch)

Set vertical line spacing

ASCII
ESC 3 n
Hexadecimal
1B 33 n
Decimal
27 51 n
Value of n:
n/406 inch in A798 native mode, A794 emulation
n/360 inch in A793 emulation mode
n/203 inch in Application Compatible Escape Commands emulation mode
Range of n:
0-255
Default:
3.37 mm (0.13 inch)
Sets the line spacing to n/16 mm (n/406 inch).
The minimum line spacing is 8.5 lines per inch. The line spacing equals the character height when n is too small.
If the set horizontal and vertical minimum motion units command (1D 50) is used to change the horizontal and vertical
minimum motion unit, the parameters of this command (set line spacing) will be interpreted accordingly.
Related information
For more information, see the description of the set horizontal and vertical minimum motion units command in this
document.
Chapter 4: Programming Commands
A798-PG00001D
43

Advertisement

Table of Contents
loading

Table of Contents