Chapter 5: Programming commands
42
A776 (B780) Programming Guide
A776-PG00001 D 07/13
Continued . . .
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
Exceptions:
The command is effective only at the beginning of a line. This command is ignored if the line buffer is not empty.
Set horizontal and vertical minimum motion units
ASCII
GS P
x
y
Hexadecimal
1D 50
x y
Decimal
29 80
x
y
Value of
x:
Horizontal
Value of
y:
Vertical
Range of
x:
0 – 255
Range of
y:
0 – 255
Default of
x
:
Receipt: 203 Slip: 140
Default of
y
:
Receipt: 203 Slip: 144
Sets the horizontal and vertical motion units to 1/
x
inch and 1/
y
inch respectively.
When
x
or
y
is set to 0, the default setting for that motion unit is used.
The command can be enabled or disabled for the slip. Default is disabled for the slip on A776, and enabled on B780.
Set printing area width
ASCII
GS W
nL
nH
Hexadecimal
1D 57
nL
nH
Decimal
29 87
nL
nH
Range of
nL:
0–255
Range of
nH:
0–255
Default:
576 dots (the maximum printable area)
Sets 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 A776, and enabled on B780.
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
Содержание A776 ColorPOS
Страница 12: ...Contents x A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 14: ...Chapter 1 About this Guide 2 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 160: ...Appendix B Resident Character Sets 148 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 737 Greek...
Страница 161: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 149 Code page 850 Multilingual...
Страница 162: ...Appendix B Resident Character Sets 150 A776 B780 Programming Guide A776 PG00001 D 07 13 Code Page 852 Slavic...
Страница 163: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 151 Code Page 857 Turkish...
Страница 164: ...Appendix B Resident Character Sets 152 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 858 with Eurosymbol...
Страница 165: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 153 Code page 860 Portugese...
Страница 166: ...Appendix B Resident Character Sets 154 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 862 Hebrew...
Страница 167: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 155 Code page 863 French Canadian...
Страница 168: ...Appendix B Resident Character Sets 156 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 865 Nordic...
Страница 169: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 157 Code page 866 Cyrillic...
Страница 170: ...Appendix B Resident Character Sets 158 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 1251 Cyrillic...
Страница 171: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 159 Code page 1252 Windows Latin 1...
Страница 172: ...Code page 1255 Hebrew...
Страница 173: ...Code page KZ_1048 Kazakh Code Page KZ_1048 Kazakh...
Страница 174: ...Appendix C Electronic Journal 162 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 179: ......
Страница 180: ...A776 PG00001 Rev D 07 2013...