CognitiveTPG A798 Instruction Manual Page 43

  • Download
  • Add to my manuals
  • Print
  • Page
    / 121
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 42
Chapter 4: Programming Commands 43
Revision C 12/09
A798-PG00001C
Set absolute starting position
ASCII ESC $ nL nH
Hexadecimal 1B 24 nL nH
Decimal 27 36 nL nH
Value of n: n = Number of dots to be moved from the beginning of the line.
nL = Remainder after dividing n by 256.
nH = Integer after dividing n by 256.
The values for nL and nH are two bytes in low byte, high byte word orientation.
Sets the print starting position to the specied number of dots (up to the right margin) from the beginning of the line. The
print starting position is reset to the rst column after each line.
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).
Page view 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 120 121

Comments to this Manuals

No comments