A794 Owner’s Guide | Chapter 6: Programming Information |
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 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/256 = nL = 24 nH =
280 dots (beginning of column 29) 1, remainder of 24
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 (A794 receipt vs. A793 receipt)
There is a difference in the normal behavior of this command in A794 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 A794 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.
December 1999 | 73 |