SNBC BT-T080 Owner's manual

PROGRAMMING MANUAL
KIOSK Printer
BT-T080
Shandong New Beiyang Information Technology Co.,Lt
CONFIDENTIAL

BT-T080 Programming Manual
- 1 -
Declaration
If you need this manual, please comply with the clause below.
If you disagree with it, please return this manual immediately.
This manual contains the private confidential information belonging to Shandong New Beiyang
Information Technology Co., Ltd. (hereinafter referred to as SNBC). You must keep its relative content as
the confidential information. If the users are commercial customers or entities, you should be aware to
disclose it to those people with the confidential responsibility including your employees, agencies and
partners. When you terminate the cooperation with SNBC or SNBC puts forward a request, you have to
stop using this manual and return it to SNBC, or destroy the confidential information.
If any relative organ such as court, arbitrator or government authority requests you to disclose any
confidential information of this manual, you must inform SNBC quickly and also agree that you shall
cooperate or assist with SNBC reasonably during the negotiation.
SNBC has the right to disclose its confidential information and does not be responsible for the loss or
damages caused from the wrong usage or reference of this manual by users.
Information in this document is subject to change without notice, which is only used for product
maintenance or service relative to this manual. SNBC reserves the right to modify the manual. If users
need further data about the products, please feel free to contact SNBC or your local dealer.
No part of this document may be reproduced or transmitted in any form or by any means, electronic or
mechanical, for any purpose without the express written permission of SNBC.
Copyright
Copyright © 2012by SNBC
Printed in China
Trademarks
SNBC registered trademarks:
Contact us
Address: No.126 Kunlun Road, Huancui District, Weihai, Shandong, China.
Order Tel: +86-631-5671111
Technical support: +86-631-5675888 800861368
Fax: +86-631-5680499 5675111
PC: 264203
Website: www.newbeiyang.com

BT-T080 Programming Manual
- 2 -
Content
1 Overview ...............................................................................................................................................1
1.1 Command Classification..............................................................................................................1
1.2 Key terms ....................................................................................................................................1
1.3 Command format.........................................................................................................................1
2 Command Description...........................................................................................................................3
2.1 Print command ............................................................................................................................3
LF Print and feed one line .......................................................................................................3
FF Print and feed paper...........................................................................................................3
CR Print and carriage return....................................................................................................3
ESC FF Print in page mode.....................................................................................................4
ESC J n Print and feed paper ..................................................................................................4
ESC d n Print and feed n lines.................................................................................................5
2.2 Location command ......................................................................................................................5
HT Horizontal tab.....................................................................................................................5
ESC $ nL Nh Set absolute horizontal printing position ............................................................6
ESC D n1...nk NUL Set horizontal tab positions ......................................................................7
ESC T n Select printing area direction in page mode ..............................................................7
ESC W xL xH yL yH dxL dxH dyL dyH Set printing area in page mode ...................................9
ESC \ nL nH Set relative horizontal printing position .............................................................11
ESC a n Select character align mode....................................................................................11
GS $ nL nH Sets the absolute vertical position in page mode ...............................................12
GS L nL nH Set left margin ....................................................................................................13
GS P x y Set the horizontal and vertical motion units ............................................................14
GS W nL nH Set printing area width ......................................................................................15
GS \ nL nH Set relative vertical print position in page mode..................................................16
GS T n Set print starting positon at the bigninning of line ......................................................16
2.3 Character command..................................................................................................................17
CAN Delete data in print buffer in page mode .......................................................................17
ESC SP n Set right-side character spacing ...........................................................................18
ESC ! n Select print mode .....................................................................................................18

BT-T080 Programming Manual
- 3 -
ESC % n Select/cancel user-defined character.....................................................................20
ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] Define user-defined character ............20
ESC – n Select/Cancel underline mode ................................................................................22
ESC ? n Cancel user-defined characters ..............................................................................23
ESC E n Select/Cancel bold mode ........................................................................................23
ESC G n Select/Cancel double-strike mode..........................................................................24
ESC M n Select character font ..............................................................................................24
ESC R n Select an international character set.......................................................................24
ESC V n Select/Cancel 90° clockwise rotation ......................................................................25
ESC t n Set code page ..........................................................................................................26
ESC { n Select/Cancel upside-down printing mode ...............................................................26
GS ! n Select character size ..................................................................................................27
GS B n Select/Cancel white/black reverse printing mode......................................................28
FS ! n Set Chinese character mode.......................................................................................29
FS & Select Chinese character mode....................................................................................29
FS – n Select/Cancel underline mode for Chinese characters ..............................................30
FS . Cancel Chinese character mode ..................................................................................30
FS 2 c1 c2 d1...dk Define user-defined Chinese characters..................................................31
FS S n1 n2 Set left-side and right-side Chinese character spacing.......................................32
FS W n Select/Cancel quadruple-size mode for Chinese characters ....................................32
2.4 Bitmap Command......................................................................................................................33
ESC * m nL nH d1... dk Select bitmap mode .........................................................................33
GS # n Define current RAM bitmap number ..........................................................................34
GS * x y d1...d(x × y × 8) Define downloaded bitmap ............................................................35
GS / m Print downloaded bitmap ...........................................................................................35
GS v 0 m xL xH yL yH d1....dk Print raster bitmap.................................................................36
FS p n m Print bitmap downloaded in NV memory ................................................................37
FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n Define NV bitmap..............................38
2.5 Status command........................................................................................................................40
DLE EOT n Real-time status transmission ............................................................................40
DLE ENQ n Real-time request...............................................................................................42

BT-T080 Programming Manual
- 4 -
GS r n Transmit status...........................................................................................................42
GS a n Set Automatic Status Back (ASB)..............................................................................43
2.6 Barcode command ....................................................................................................................45
GS H n Select printing position for Human Readable Interpretation (HRI) characters...........45
GS f n Select font for Human Readable Interpretation (HRI) characters..................................45
GS h n Select barcode height................................................................................................46
GS k m d1...dk NUL GS k m n d1...dn Print barcode①② ......................................................46
GS w n Set barcode width .....................................................................................................50
GS p n Set the size of PDF417 barcode ..................................................................................50
GS q n Set correction grade of PDF417 barcode.....................................................................51
2.7 Other commands.......................................................................................................................51
ESC 2 Set default line spacing ..............................................................................................51
ESC 3 n Set line spacing.......................................................................................................51
ESC @ Initialize printer .........................................................................................................51
ESC L Select page mode ......................................................................................................52
ESC S Select standard mode ................................................................................................52
ESC c 0 n Select paper type..................................................................................................53
ESC c 3 n Select paper sensor to output paper end signals..................................................53
ESC c 4 n Select paper sensor to stop printing .....................................................................54
ESC c 5 n Enable/disable buttons .........................................................................................54
GS FF Marked paper location................................................................................................54
GS ( A pL pH n m Execute test printing .................................................................................55
GS ( E pL pH m [parameter] User-defined function ...............................................................56
GS ( E pL pH m d1 d2 (m = 1) <Function 1>............................................................................57
GS ( E pL pH m d1 d2 d3 (m = 2) <Function 2>.......................................................................57
GS ( E pL pH m [a1 b18...b11]...[ak bk8...bk1] (m = 3) <Function 3>.......................................58
GS ( E pL pH m a (m = 4) <Function 4>...................................................................................58
GS ( F pL pH a m nL nH Set parameters of print starting position and cut position ...............59
GS ( K pL pH n m Set print darkness.....................................................................................60
GS ( M pL pH a n m Save or load the data defined by command GS ( F ..............................60
GS ( M pL pH n m ((n) = 1, 49) <Function 1>...........................................................................61

BT-T080 Programming Manual
- 5 -
GS ( M pL pH n m ((n) = 2, 50) <Function 2>...........................................................................61
GS ( M pL pH n m ((n) = 3, 51) < Function 3>..........................................................................62
GS : Start/end macro definition..............................................................................................62
GS C 0 n m Select count print mode ...........................................................................63
GS C 1 aL aH bL bH n r Select count mode (A) ....................................................................64
GS C 2 nL nH Set current count value...................................................................................64
GS C ; sa ; sb ; sn; sr; sc;Select count mode .......................................................................65
GS I n Inquire printer ID.........................................................................................................66
GS V m GS V m n Select cut mode and cut paper①② .........................................................67
GS ^ r t m Execute macro......................................................................................................67
GS c Print count value...........................................................................................................68
3 Programming instructions....................................................................................................................69
3.1 General information...................................................................................................................69
3.2 Programming examples ............................................................................................................69
3.2.1 Initialization .....................................................................................................................69
3.2.2 Set printing and print data (character /barcode/bitmap) ..................................................69
3.2.3 Print and cut paper..........................................................................................................71
3.2.4 Status check....................................................................................................................73
3.2.5 Bitmap download.............................................................................................................73
3.2.6 Recommendations on applicable flow for programm ......................................................76
Appendix ................................................................................................................................................77
Appendix A CODE128 .....................................................................................................................77
A.1 Overview of CODE128 ......................................................................................................77
A.2 Code set ............................................................................................................................77
Appendix B: Print mode and its change ..........................................................................................80
B.1 General description............................................................................................................80
B.2 Set values in standard and page modes............................................................................81
B.3 Set printing area ................................................................................................................81

BT-T080 Programming Manual
- 1 -
1 Overview
1.1 Command Classification
This printer commands are classified as below:
Print commands: used for printing and feeding paper;
Position commands: to control the print position;
Character commands: to set character property;
Bitmap commands: to download bitmap and print relative commands, including NV and RAM bitmap;
Status commands: used for printer status query;
Barcode commands: barcode print and property settings;
Other commands: used for periphery control, Macro-definition and initialization, etc.;
Command instruction refers to the detailed function of relative commands.
1.2 Key terms
Real-time commands: These commands are acted on immediately upon being received by the
printer (regardless the printer’s busy or error status).
Page mode: Under this mode, the printer possesses all data in specified memory and
thinks of this as a virtual page. The page is printed when the printer receives
print command either FF or ESC FF.
Standard mode: Standard mode is the default mode of printer uses to operate. Under this
mode, the printer prints data and feeds paper upon print line buffer full (data is
enough for one print line) or receiving print command like LF.
Marked paper mode: Configuration of printer is marked paper.
HRI Characters: Human readable interpretation of the barcode.
NV: Non-volatile memory in which data stored does not loss when power off.
RAM: Random Access Memory
Motion unit: The motion unit has vertical motion unit and horizontal motion unit, which
specify the least space for vertical motion and horizontal motion. The vertical
motion unit and horizontal motion unit are set by GS P command.
ASB: Auto status back
DPI: Print dots per inch (one inch equals to 25.4mm). It is used to identify the
resolution of a printer, e.g. 203DPI means 203 print dots per inch. DPI: Dot
Per Inch.
Font 0: A standard character, size is 12 x 24;
Font 1: Compressed character, size is 9 X 17;
1.3 Command format
[Function] ――The name and function summary of commands;
[Format] ――The format of command data, such as ASCII, Hex and Decimal;
[Value Range] ――The value range of parameter in the command;

BT-T080 Programming Manual
- 2 -
[Notes] ――Explain the main features and application notices of commands;
[Default] ――The initial value used after the printer initialized;
[Relative] ――Other commands related to current command;
[Example]――Example used for current or relative commands.
All command data in programming Demo use HEX. All normal font/characters are data. There is no
explanation for the data of command such as 42 43, which is data. The font/character underlined and
emphasized is a command such as 1B 40.All the data inside parentheses after all commands in Demo
is used to explain the meanings of this command. The parentheses and data inside it is not the
command to be transmitted to the printer.

BT-T080 Programming Manual
- 3 -
2 Command Description
2.1 Print command
LF Print and feed one line
[Function] Print the data in buffer and feed one line
[Format] ASCII LF
Hex 0A
Decimal 10
[Notes] This command sets the print position to the beginning of the line.
[Relative] ESC 2, ESC 3
FF Print and feed paper
[Function] Print and feed paper.
[Format] ASCII FF
Hex 0C
Decimal 12
[Notes] • In page mode:
Prints and clears the data in the print buffer, and returns to standard mode;
• In standard mode:
When select marked paper, prints data in the buffer and feeds paper for one line,
then printer feeds paper to the beginning of next print position.
• This command is invalid if continuous paper is selected.
• The buffer data is deleted after being printed.
• The print width set by command ESC W will recovery to the default value.
• This command sets the print position to the beginning of the line.
[Relative] ESC FF, ESC L, ESC S , GS ( F , GS FF
CR Print and carriage return
[Function] Print and carriage return.
[Format] ASCII CR
Hex 0D
Decimal 13
[Notes] • When the command is enabled, it equals to LF; the command is ignored when it is
disabled.
• Set the print position to the beginning of the line.
• The command is ignored under serial interface mode.
• The printer configuration specify whether the command to be ignored or not under
parallel interface.
[Relative] LF

BT-T080 Programming Manual
- 4 -
ESC FF Print in page mode
[Function] Print all the data in buffer in page mode.
[Format] ASCII ESC FF
Hex 1B 0C
Decimal 27 12
[Notes] • This command is enabled only in page mode.
• After printing, the printer does not clear the buffered data, setting values for ESC T
and ESC W, and the position for buffering character data.
[Relative] FF, ESC L, ESC S
ESC J n Print and feed paper
[Function] Print and feed paper.
[Format] ASCII ESC J n
Hex 1B 4A n
Decimal 27 74 n
[Value range] 0 ≤n ≤255
[Notes] • Prints the data in the print buffer and feeds pape of [ n × horizontal or vertical motion
unit] inch.
• After printing is completed, this command sets the print starting position to the
beginning of the line.
• The paper feed amount set by this command is not affected by the values set by ESC
2or ESC 3.
• In standard mode, the printer uses the vertical motion unit (y).
• In page mode, this command functions as follows, depending on the direction and
print starting position of the print area:
When the print starting position is set to the upper left or lower right of the printable①
area by ESC T, the vertical motion unit (y) is used.
When the star②ting position is set to the upper right or lower left of the printable area
by ESC T, the horizontal motion unit (x) is used.
• The maximum paper feed amount is 1016mm (40 inches). When the setting value
exceeds the maximum, it is converted to the maximum automatically.
• When the mark sensor is valid, the command is still valid if the setting value exceeds
the maximum value.
[Example] 1B 40(initialize printer)
1D 50 CB CB(set the resolution to 203×203)
41 41 41 41 41 41 41(data to be printed)
1B 4A 50(print and feed paper 80/203 inches)
42 42 42 42 42 42 42 0A(data to be printed)
Results:

BT-T080 Programming Manual
- 5 -
ESC d n Print and feed n lines
[Function] Print and feed n lines
[Format] ASCII ESC d n
Hex 1B 64 n
Decimal 27 100 n
[Value range] 0 ≤n ≤255
[Notes] • Prints the data in the print buffer and feeds pape of n lines (character line).
• This command sets the print starting position to the beginning of the line.
• This command does not affect the line spacing set by ESC 2 or ESC 3.
• The maximum paper feed amount is 1016mm (40 inches). When the setting value
exceeds the maximum, it is converted to the maximum automatically.
• When the mark sensor is valid, the command is still valid if the setting value exceeds
the maximum value.
[Relative] ESC 2, ESC 3
2.2 Location command
HT Horizontal tab
[Function] Horizontal tab.
[Format] ASCII HT
Hex 09
Decimal 9
[Notes] Move the print position to the next tab position.
• This command is ignored unless the next horizontal tab position has been set.
• If the next horizontal tab position exceeds the printable area, the printer sets the print
position to [Printable area width + 1].
• Horizontal tab positions are set by ESC D.
• If this command is received when the print position is at [printable area width + 1], the
printer executes buffer-full action of the current line and move the print position to the
beginning of the next line.
• The default setting of the tab position is 8 ASCII characters (12×24) .
• When buffer of current line is full, the printer executes the actions as below:
In standard mode, the printer will print current line and set the print position to the
beginning of next line;
In page mode, the printer will shift the line and set the print position to the beginning
of next line.

BT-T080 Programming Manual
- 6 -
[Relative] ESC D
[Example] 0A (set the print position to the beginning of the line)
1B 40 (initialize printer)
B 53 (enter standard mode)
33 33 33 33 33 33
1B 44 08 10 1C 00 (set the horizontal tab position)
09 (move the print position to the next tab)
33 33 33 33
09 (the same as above)
33 33 33 33
09 (the same as above)
33 33 33 33
0A
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
0A (print)
Results:
ESC $ nL Nh Set absolute horizontal printing position
[Function] Set absolute horizontal printing position.
[Format] ASCII ESC $ nL nH
Hex 1B 24 nL nH
Decimal 27 36 nL nH
[Value range] 0≤nL ≤255
0 ≤nH≤255
[Notes] • The distance from the beginning of the line to the print position is [(nL + nH×256)×
horizontal or vertical motion unit].
• Settings outside the specified printable area are ignored.
• In standard mode, the horizontal motion unit (x) is used..
• In page mode, this command functions as follows, depending on the direction and
print starting position of the printable area:
When the starting position is set to the upper①left or lower right of the printable area
by ESC T, the horizontal motion unit (x) is used.
When the starting position is set to the upper right or lower left of the printable area②
by ESC T, the vertical motion unit (y) is used.;
[Relative] ESC \, GS $, GS \

BT-T080 Programming Manual
- 7 -
ESC D n1...nk NUL Set horizontal tab positions
[Function] Set horizontal tab positions.
[Format] ASCII ESC D n1 nk NUL
Hex 1B 44 n1 nk 00
Decimal 27 68 n1 nk 0
[Value range] 1 ≤n ≤255
0 ≤k ≤32
[Notes] • Set a tab position at the nth column from the beginning of the line.
• There are k tab positions in all.
• The horizontal tab position is calculated by following formula: [character width × n],
the character width includes the right-side character spacing, and double-width
characters are set twice the width of normal characters.
• This command cancels the previous horizontal tab settings.
• When n = 8, the print position is moved to column 9 by sending HT.
• Up to 32 tab positions (k = 32) can be set. Data exceeding 32 tab positions is
processed as normal data.
• Transmit [n] k in ascending order and place a NUL code 0 at the end.
• When [n] k is less than or equal to the preceding value [n] k-1, tab setting is finished
and the following data is processed as normal data.
• ESC D NUL cancels all horizontal tab positions settings.
• The previously specified horizontal tab positions do not change, even if the character
width changes.
• The character width is memorized for each standard and page mode.
[Default] The default tab positions are at intervals of 8 characters for standard ASCII characters
(12 × 24).
[Relative] HT
[Example] Refer to HT
ESC T n Select printing area direction in page mode
[Function] Select printing area direction in page mode.
[Format] ASCII ESC T n
Hex 1B 54 n
Decimal 27 84 n
[Value range] 0 ≤n ≤3 48 ≤n ≤51
[Notes] Select the print direction and starting position of printable area in page mode.
n specifes print direction and starting position of printable area:

BT-T080 Programming Manual
- 8 -
n Print direction Starting position
0, 48 Left to right Upper left (A in the figure)
1, 49 Bottom to top Lower left (B in the figure)
2, 50 Right to left Lower right (C in the figure)
3, 51 Top to bottom Upper right (D in the figure)
• When the command is input in standard mode, the printer executes only internal flag
operation. This command does not affect printing in standard mode.
• This command sets the starting position of the print data within the printing area.
• Parameters for horizontal or vertical motion units (x or y) differ as follows, depending
on the starting position of the printable area:
If the print starting position is the upper left or lower right of the printable area, data①
is buffered in the direction perpendicular to the paper feed direction:
Commands using horizontal motion unit: ESC SP, ESC $, ESC \
Commands using vertical motion unit: ESC 3, ESC J, GS $, GS \
If the starting position is the upper right or lower left of the printable area, data is②
buffered in the paper feed direction:
Commands using horizontal motion unit: ESC 3, ESC J, GS $, GS \
Commands using vertical motion unit: ESC SP, ESC $, ESC
[Default] n = 0
[Relative] ESC $, ESC L, ESC W, ESC \, GS $, GS \, GS P
[Example] 1B 4C (enter page mode)
1D 50 CB CB (set printer resolution)
1B 57 20 00 00 00 40 02 90 02 (set the printable area in page mode)
1B 54 00 (select the printable area direction in page mode)
30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0A
(newline)
1B 54 01 (select the printable area direction in page mode)
31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 0A
(newline)
1B 54 02 (select the printable area direction in page mode)
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 0A
(newline)
1B 54 03 (select the printable area direction in page mode)
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 0A (print)
50 72 69 6E 74 20 45 6E 64
0C (print)
Results:

BT-T080 Programming Manual
- 9 -
ESC W xL xH yL yH dxL dxH dyL dyH Set printing area in page mode
[Function] Set printing area in page mode
[Format] ASCII ESC W xL xH yL yH dxL dxH dyL dyH
Hex 1B 57 xL xH yL yH dxL dxH dyL dyH
Decimal 27 87 xL xH yL yH dxL dxH dyL dyH
[Value range] 0 ≤xL, xH, yL, yH, dxL, dxH, dyL, dyH ≤255 (except dxL= dxH=0 or dyL= dyH=0)
[Notes] • Define the horizontal starting position, vertical starting position, printing area width,
and printing area height as follows:
Horizontal starting position: x0 = [( xL + xH × 256) × horizontal motion unit]
Vertical starting posirion: y0 = [( yL + yH × 256) × vertical motion unit]
Printing area width: dx = [ (dxL + dxH × 256) × horizontal motion unit]
Printing area width: dy = [ (dyL + dyH × 256) × vertical motion unit]
• If this command is input in standard mode, the printer executes only internal flag
operation. This command does not affect printing in standard mode.
• If the horizontal or vertical starting position is set outside the printable area, the
printer stops command processing and processes the following data as normal data.
• If the printable area width or height is set to 0, the printer stops command processing
and processes the following data as normal data.
• This command and ESC T together set the current print position.
• If (horizontal starting position + printing area width) exceeds the printable area, the
printing area width is automatically set to (horizontal printable area - horizontal
starting position).
• If (vertical starting position + printing area height) exceeds the printable area, the
printing area height is automatically set to (vertical printable area – vertical starting
position).
• Use the horizontal motion unit (x) to set the horizontal starting position and printable
area width, and use the vertical motion unit (y) to set the vertical starting position and
printable area height.

BT-T080 Programming Manual
- 10 -
• When the horizontal starting position, vertical starting position, printable area width,
and printable area height are defined as X, Y, Dx, and Dy respectively, the printable
area is set as shown in the figure below.
• The horizontal and vertical motion units are specified by GS P. The change of
horizontal or vertical motion unit does not affect the current printing area.
• When the horizontal starting position, vertical starting position, printable area width,
and printable area height are defined as X, Y, Dx, and Dy respectively, the printable
area is set as shown in the figure below.
[Default] xL = xH = yL = yH = 0
dxL, dxH, dyL and dyH are specified by printer configuration.
[Relative] CAN, ESC L, ESC T, GS P
[Example] 0A
1D 50 CB CB (set printer resolution to 203×203)
1B 4C (enter page mode)
1B 57 20 00 00 00 40 01 90 01 (set printable area in page mode)
1B 24 00 00 (set absolute horizontal starting position to be starting point)
41
1B 24 32 00 (set absolute horizontal starting position to be 50/203 inch)
42
1B 24 64 00 (set absolute horizontal starting position to be 100/203 inch)
43
0A (newline)
1B 24 00 00 (set absolute horizontal starting position to be starting point)
41
1B 5C 32 00 (set relative horizontal starting position to be 50/203 inch)
42
1B 5C 64 00 (set relative horizontal starting position to be 100/203 inch)
43
0A (newline)
0C (print in page mode)
Results:

BT-T080 Programming Manual
- 11 -
ESC \ nL nH Set relative horizontal printing position
[Function] Set relative horizontal printing position.
[Format] ASCII ESC \ nLnH
Hex 1B 5C nLnH
Decimal 27 92 nLnH
[Value range] 0 ≤nl ≤255 0 ≤nH ≤255
[Notes] • Set the print starting position based on the current position by using the horizontal or
vertical motion unit.
• This command sets the distance from the current position to the print position to be
[ (nL + nH × 256) × horizontal or vertical motion unit].
• Any setting that exceeds the printable area is ignored.
• When pitch N is specified to the right:nL+ nH × 256 = N.
• When pitch N is specified to the left, use the complement code:nL+ nH × 256 =
65536 – N.
• The print starting position moves from the current position to [N × horizontal or
vertical motion unit].
• The horizontal and vertical motion units are specified by GS P.
• In standard mode, the horizontal motion unit is used.
• In page mode, the horizontal or vertical motion unit differs as follows, depending on
the direction and starting point of the printable area:
①When the starting position is set to the upper left or lower right of the printable
area using ESC T, the horizontal motion unit is used.
②When the starting position is set to the upper right or lower left of the printable
area using ESC T, the vertical motion unit is used;
[Relative] ESC $, GS P
ESC a n Select character align mode
[Function] Align all the data in one line to the specified position.
[Format] ASCII ESC a n
Hex 1B 61 n

BT-T080 Programming Manual
- 12 -
Decimal 27 97 n
[Value range] 0 ≤n ≤2, 48 ≤n ≤50
[Notes] • Aligns all the data in one line to the specified position.
• Relationship between value of n and justification method:
n Justification
0,48 Left justification
1, 49 Centering
2, 50 Right justificatoin
• This command is enable only when processed at the beginning of the line in the
standard mode.
• If this command is input in page mode, the printer performs only internal flag
operations.
• This command adjusts the space area according to commands HT, ESC $ or ESC\.
[Default] n = 0
[Example] 0A (Entering line mode)
1B 40 (Initialization)
1B 61 00 (Setting left justification)
41 42 43 0A
41 42 43 44 0A
41 42 43 44 45 0A
1B 61 01 (Setting centering)
41 42 43 0A
41 42 43 44 0A
41 42 43 44 45 0A
1B 61 02 (Setting right justification)
41 42 43 0A
41 42 43 44 0A
41 42 43 44 45 0A
Results:
GS $ nL nH Sets the absolute vertical position in page mode
[Function] This command sets the absolute vertical position.
[Format] ASCII GS $ nL nH
Hex 1D 24 nL nH
Decimal 29 36 nL nH

BT-T080 Programming Manual
- 13 -
[Value range] 0 ≤nL ≤255, 0 ≤nH ≤255
[Notes] • Sets the absolute vertical position in page mode
• This command sets the absolute position to [( nL + nH × 256) × (vertical or horizontal
motion unit)] inches.
• This command is effective only in page mode.
• If the [ ( nL + nH × 256) × (vertical or horizontal motion unit) ] exceeds the specified
printable area, this command is ignored.
• The horizontal position does not move after executing this command.
• The positions of relative commands are specified by ESC T.
• Depending on the printing area direction and starting position specified by ESC T,
this command operates as following:
When the starting position is set to the upper left or lower right, this command sets①
the absolute position in the direction which is parallel to the paper feed direction.
When the starting position is set to the upper right or lower left, this command②sets
the absolute position in the direction which is perpendicular to the paper feed
direction.
[Relative] ESC $, ESC T, ESC W, ESC \, GS \
GS L nL nH Set left margin
[Function] Set left margin.
[Format] ASCII GS L nLnH
Hex 1D 4C nLnH
Decimal 29 76 nLnH
[Value range] 0 ≤nL ≤255
0 ≤nH ≤255
[Notes] • Sets the left margin using nL and nH.
• Set left margin to [ ( nL + nH × 256) × horizontal motion unit) ] inches.
• This command is only effective processed at the beginning of the line in standard
mode.
• If this command is input in page mode, it is disabled.
• This command does not affect printing in page mode.
• If the setting exceeds the Max.printable width, the maximum value of the printable
width will be used.
[Default] nL = 0, nH = 0
[Relative] GS P, GS W
[Example] 0A (Setting printing position at the beginning of the line)
1B 40 (Initialization)

BT-T080 Programming Manual
- 14 -
30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37
38 39 0A
1D 4C 30 00 (Setting left margin to 48/203 inches)
30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37
38 39 0A
1D 57 C8 00 (Setting printing width to 200/203 inches)
30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37
38 39 0A
Results:
GS P x y Set the horizontal and vertical motion units
[Function] Set the horizontal and vertical motion units.
[Format] ASCII GS P x y
Hex 1D 50 x y
Decimal 29 80 x y
[Value range] 0 ≤x ≤255
0 ≤y ≤255
[Notes] • Set the horizontal and vertical motion units to 25.4/ x mm (1/ x inches) and 25.4/ y
mm (1/ y inches) respectively.
• When x and y are 0, the x and y are set to be default settings.
• The horizontal direction is perpendicular to the paper feed direction and the vertical
direction is the paper feed direction.
• In standard mode, the following commands use x or y, regardless of character
rotation (upside-down or 90° clockwise rotation) :
Commands using x:①ESC SP, ESC $, ESC \, FS S, GS L, GS W
Commands using y:②ESC 3, ESC J, GS V
• In page mode, the following commands use x or y, depending on the direction and
starting position of printable area:
When the print starting position is set to the upper left (P①rinting direction from left
to right) or lower right (Printing direction from right to left) of the printable area by
ESC T:
Commands using x: ESC SP, ESC $, ESC W, ESC \, FS S
Commands using y: ESC 3, ESC J, ESC W, GS $, GS \, GS V
Table of contents
Other SNBC Printer manuals

SNBC
SNBC BT-T080R User manual

SNBC
SNBC BTP-P36 User manual

SNBC
SNBC BTP-M300 Owner's manual

SNBC
SNBC BTP-R180II Owner's manual

SNBC
SNBC BTP-R681 User manual

SNBC
SNBC BTP-M280 User manual

SNBC
SNBC BT-UC156 User manual

SNBC
SNBC BTP-R580II Owner's manual

SNBC
SNBC BK-T6112 User manual

SNBC
SNBC BK-S216 User manual

SNBC
SNBC BTP-R880NPI User manual

SNBC
SNBC BTP-R180II User manual

SNBC
SNBC BTP-M280 User manual

SNBC
SNBC BTP-R880NP Owner's manual

SNBC
SNBC BTP-R990 User manual

SNBC
SNBC BTP-2002NP User manual

SNBC
SNBC BTP-R180II User manual

SNBC
SNBC BTP-R880NP User manual

SNBC
SNBC BTP-M300 User manual

SNBC
SNBC BTP-L580IIC User manual