Cognitive Solutions A799 Manual De Usuario

Descargar
Página de 142
Chapter 4: Programming Commands
46
Revision D 12/09
A799-PG00001D
Set absolute starting position
ASCII 
ESC $ nL n
Hexadecimal  1B 24 nL n
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 specified number of dots (up to the right margin) from the beginning of the line. The 
print starting position is reset to the first 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 (A799 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 A799 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).