Programmers Guide
TH320/420
32
Set relative print position
ASCII
ESC \ n1 n2
Hexadecimal
1B 5C n1 n2
Decimal
27 92 n1n2
Value of n:
To move the relative starting position right of the current position by n dots:
n1= Remainder after dividing n by 256 n2= Integer after dividing n by 256
n1= Remainder after dividing (65,536–n) by 256 n2= Integer after dividing (65,536–n) by 256
The values for n 1 and n2 are two bytes in low byte, high byte word orientation.
To move the relative starting position left of the current position by n dots:
The values for n 1 and n2 are two bytes in low byte, high byte word orientation.
Moves the print starting position the specified number of dots either right (up to the right margin) or left
(up to the left margin) of the current position. The print starting position is reset to the first column after
each line.
Formulas
To move to the left:
Determine the value of n by multiplying the number of columns to move left of the current position by
10 (slip or receipt standard pitch) or 8 (receipt compressed pitch). The example shows how to set the
relative position two columns in standard pitch (10 dots per column) to the left of the current position.
2 x 10 =
20 dots (two columns to be moved left of the current position) 65,536–20= 65516
65,516/256=
255, remainder of 236
n1= 236, n2= 255
To move to the right:
Determine the value of n by multiplying the number of columns to move right of the current position by
10 (slip or receipt standard pitch) or 8 (receipt compressed pitch). The example shows how to set the
relative position two columns in standard pitch (10 dots per column) to the right of the current position.
2 x 10 =
20 dots (two columns to be moved left of the current position)
20/256=
0, remainder of 20
n1= 20, n2 = 0
Related information
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 relative print
position) will be interpreted accordingly. For more information, see the description of the set horizontal
and vertical minimum motion units command (1D 50) in this document.
Compatibility information (TH320 receipt vs. A756 receipt)
There is a difference in the normal behavior of this command as compared to the original A756. The
difference exists when the command is used to move to the left. The A756 processes the whole print
string prior to putting it in the buffer for the print head. This method of processing allows the A756 to
backup in the print string and replaces 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 TH320 moves the data into a buffer for the print head
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.
Summary of Contents for TH320
Page 1: ...TH320 TH420 Two Color Thermal Impact Hybrid Printer Programmers Guide ...
Page 75: ...TH320 TH420 Programmers Guide 67 ...
Page 121: ...TH320 TH420 Programmers Guide 113 Character Sets Character code 437 USA Standard Europe ...
Page 122: ...Programmers Guide TH320 420 114 Codepage 737 Greek ...
Page 123: ...TH320 TH420 Programmers Guide 115 Codepage 850 Multilingual ...
Page 124: ...Programmers Guide TH320 420 116 Codepage 852 Slavic ...
Page 125: ...TH320 TH420 Programmers Guide 117 Codepage 857 Turkish ...
Page 126: ...Programmers Guide TH320 420 118 Codepage 858 with Euro symbol ...
Page 127: ...TH320 TH420 Programmers Guide 119 Codepage 860 Portuguese ...
Page 128: ...Programmers Guide TH320 420 120 Codepage 862 Hebrew ...
Page 129: ...TH320 TH420 Programmers Guide 121 Codepage 863 French Canadian ...
Page 130: ...Programmers Guide TH320 420 122 Codepage 865 Nordic ...
Page 131: ...TH320 TH420 Programmers Guide 123 Codepage 866 Cyrillic ...
Page 132: ...Programmers Guide TH320 420 124 Codepage 1252 Windows Latin 1 ...
Page 134: ...Programmers Guide TH320 420 126 Codepage 1255 Hebrew ...
Page 142: ...Programmers Guide TH320 420 134 TH420 Additional Features ...
Page 156: ......
Page 157: ...TH320 TH420 Programmers Guide Wincor Nixdorf International GmbH D 33094 Paderborn ...