CognitiveTPG A798 Instruction Manual Page 46

  • Download
  • Add to my manuals
  • Print
  • Page
    / 121
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 45
Chapter 4: Programming Commands46
Revision C 12/09
A798-PG00001C
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 graphic command.
Select justication
ASCII ESC a n
Hexadecimal 1B 61 n
Decimal 27 97 n
Value of n: 0, 48 = Left aligned
1, 49 = Center aligned
2, 50 = Right aligned
Range of n: 0–2, 48–50
Default: 0 (Left aligned)
Species the alignment of characters, graphics, logos, and bar codes on the receipt station according to the above table.
Related information
On the LEGACY emulation printer, this command is valid only at the beginning of a line.
Range of n on A793 is 0–255 using low 2 bits only:
00 left aligned
01 center
10 right aligned
11 center
Set left margin
ASCII GS L nL nH
Hexadecimal 1D 4C nL nH
Decimal 29 76 nL nH
Range of nL: 0–255
Range of nH: 0–255
Default: 576 dots (the maximum printable area)
Formulas
Sets the left margin of the printing area. The left margin is set to ((nH X 256) + nL) times horizontal motion unit) inches.
The horizontal motion units are set by the set horizontal and vertical minimum motion units command (1D 50), described
in this manual.
The width of the printing area is set by the set printing area width command (1D 57), which follows this command. See the
set printing area width command in this document for a description of that command.
If the setting exceeds the printable area, the maximum value of the printable area is used. The maximum printable area is
576 dots. See the illustration.
To set the left margin to one inch at the default horizontal motion unit of 1/203 inches, send the four-byte string:
GS L 203 0
Or, to set the left margin to two inches at the default horizontal motion unit of 1/203 units per inch, send the four-byte
string:
GS L 150 1
Where 2 inches = 406/203, and 406 = (1 X 256) + 150.
Continued...
Page view 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 120 121

Comments to this Manuals

No comments