TH320/TH420
Programmers Guide
35
Set printing area width
ASCII
GS W nL nH
Hexadecimal
1D57 nL nH
Decimal
29 87 nL nH
Range of nL: 0–255
Range of nH: 0–255
Default:
576 dots (the maximum printable area)
Set the width of the printing area. If the setting exceeds the printable area, the maximum value of the
printable area is used. The width of the printing area 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).
The width of the printing area follows the set left margin command (1D 4C). See the set left margin
command (10 4C …) earlier in this document for a description.
The command can be enabled or disabled for the slip. Default is disabled for the slip on TH320, and
enabled on TH320 MICR France.
Formulas
To set the width of the receipt printing area to one inch at the default horizontal motion unit of 1/203
inches, send the four-byte string:
GS W 203 0
Or, to set the width of the printing area to two inches at the default horizontal motion unit of 1/203 units
per inch, send the four-byte string:
GS W 150 1
Where 2 inches = 406/203, and 406 = (1 X 256) + 150.
Exceptions
This command is effective only at the beginning of a line. If the setting exceeds the printable area, the
maximum value of the printable area is used. The maximum printable area is 576 dots on the receipt
and 420 dots on the slip. See the illustration below:
Receipt Station
To set the Slip left margin to one inch at the default horizontal motion unit of 1/140 inches, send the
four-byte string:
GS L 140 0
Or, to set the left margin to two inches at the default horizontal motion unit of 1/140 units per inch,
send the four-byte string:
GS L 24 1
Slip 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 ...