TP-100 Programming Manual V1.0
TP-100 Programming Manual V1.0
PROGRAMMING MANUAL
Receipt Printer
BTP-S80
-1-
BTP-S80 Programming Manual
REVISION HISTORY
Date Version Description Author
2017-3-18 V100 First draft. Feng Bin
-1-
BTP-S80 Programming Manual
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 is not 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 © 2017 by SNBC.
Printed in China.
Version 1.0.
Trademarks
Registered trademarks of SNBC: .
Contact us
Contact us:
Address: No.169 huoju road, high-tech zone, Weihai, China
Hot line: +86—631—5671111
Technical support: +86—631—5675888 800861368
Fax: +86—631—5680499 5675111
PC: 264209
Website: www.newbeiyang.com.cn
E—mail : [email protected]
-2-
BTP-S80 Programming Manual
Contents
1 Overview ......................................................................................................................................... - 1 -
LF ................................................................................................................................................. - 3 -
FF ................................................................................................................................................. - 3 -
CR ................................................................................................................................................ - 3 -
ESC FF ........................................................................................................................................ - 3 -
ESC J n ........................................................................................................................................ - 4 -
ESC d n ........................................................................................................................................ - 4 -
HT ................................................................................................................................................ - 5 -
ESC $ nL nH ................................................................................................................................ - 6 -
ESC T n ........................................................................................................................................ - 7 -
ESC \ nL nH ............................................................................................................................... - 10 -
ESC a n ...................................................................................................................................... - 11 -
GS $ nL nH................................................................................................................................. - 12 -
GS L nL nH ................................................................................................................................. - 12 -
GS P x y ..................................................................................................................................... - 13 -
GS W nL nH ............................................................................................................................... - 14 -
GS \ nL nH.................................................................................................................................. - 15 -
CAN............................................................................................................................................ - 15 -
ESC SP n ................................................................................................................................... - 16 -
ESC ! n ....................................................................................................................................... - 17 -
-3-
BTP-S80 Programming Manual
ESC % n..................................................................................................................................... - 19 -
ESC – n ...................................................................................................................................... - 21 -
ESC ? n ...................................................................................................................................... - 21 -
ESC E n ..................................................................................................................................... - 22 -
ESC G n ..................................................................................................................................... - 22 -
ESC M n ..................................................................................................................................... - 23 -
ESC R n ..................................................................................................................................... - 23 -
ESC V n ..................................................................................................................................... - 24 -
ESC t n ....................................................................................................................................... - 24 -
ESC { n....................................................................................................................................... - 25 -
GS ! n ......................................................................................................................................... - 26 -
GS B n........................................................................................................................................ - 27 -
FS ! n.......................................................................................................................................... - 28 -
FS & ........................................................................................................................................... - 29 -
FS - n ......................................................................................................................................... - 29 -
FS .............................................................................................................................................. - 29 -
FS 2 c1 c2 d1...dk ...................................................................................................................... - 30 -
FS C n ........................................................................................................................................ - 30 -
FS S n1 n2 ................................................................................................................................. - 31 -
FS W n ....................................................................................................................................... - 32 -
GS # n ........................................................................................................................................ - 33 -
GS * x y d1...d(x × y × 8) ............................................................................................................ - 34 -
GS / m ........................................................................................................................................ - 34 -
GS v 0 m xL xH yL yH d1....dk.................................................................................................... - 35 -
FS p n m..................................................................................................................................... - 36 -
GS a n ........................................................................................................................................ - 40 -
GS r n ......................................................................................................................................... - 42 -
GS H n ....................................................................................................................................... - 43 -
GS f n ......................................................................................................................................... - 43 -
GS h n ........................................................................................................................................ - 43 -
GS s n1 n2 n3 n4 n5 n6 n7 n8 ................................................................................................... - 48 -
GS o n ........................................................................................................................................ - 50 -
GS p n ........................................................................................................................................ - 50 -
GS q n ........................................................................................................................................ - 51 -
GS w n ....................................................................................................................................... - 51 -
ESC r n....................................................................................................................................... - 52 -
ESC C n ..................................................................................................................................... - 52 -
GS ( N pL pH fn a .................................................................................................................. - 52 -
GS ( z nL nH 0 S ........................................................................................................................ - 53 -
GS ( z nL nH 0 E ........................................................................................................................ - 54 -
GS { w f n1 n2 n3 n4 n5 ............................................................................................................. - 55 -
GS { w n ..................................................................................................................................... - 56 -
FS r n xl xh yl yh zl zh d1 d2 d3...d(k) ........................................................................................ - 56 -
ESC c : n .................................................................................................................................... - 60 -
ESC 2 ......................................................................................................................................... - 61 -
ESC 3 n ...................................................................................................................................... - 61 -
ESC = n ...................................................................................................................................... - 62 -
ESC @ ....................................................................................................................................... - 62 -
ESC L ......................................................................................................................................... - 63 -
ESC S ........................................................................................................................................ - 63 -
ESC c 0 n ................................................................................................................................... - 64 -
ESC c 3 n ................................................................................................................................... - 64 -
ESC c 4 n ................................................................................................................................... - 65 -
ESC c 5 n ................................................................................................................................... - 65 -
ESC p m t1 t2 ............................................................................................................................. - 66 -
GS ( A pL pH n m ....................................................................................................................... - 66 -
GS .............................................................................................................................................. - 67 -
GS ^ r t m ................................................................................................................................... - 67 -
Appendix .......................................................................................................................................... - 70 -
-6-
BTP-S80 Programming Manual
1 Overview
This manual classifies the printer commands into several kinds based on its functions, and also
describes the applications of relative commands in detail depending on its sorts. We hope that it is
helpful for programmers to get known of those commands.
1.1 Commands classification
This receipt 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, including NV and RAM bitmap;
Status commands: used for printer status query;
Barcode commands: barcode print and property settings;
Bi-color commands: bi-color print and property settings.
Upside-down print command: upside-down print and property settings.
Watermark printing command: watermark print and property settings.
Greyscale printing command: greyscale print and property settings.
Control command: choose paper-saving mode and reduce ticket width.
Double-side relevant command: relevant print and property settings of double-side print mode.
Other commands: used for periphery control, Macro-definition and initialization;
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;
Print buffers – Used to store figure data to be printed;
Page mode – Under this mode, the printer stores all data in a 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, namely line mode. 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;
HRI character – Barcode note character. Human Readable Interface;
NV – Non-volatile memory in which data stored does not loss when powered off. NV: Non-volatile;
RAM –Random Access Memory;
DPI – Print dots per inch (one inch equals to 25.4mm). It is used to identify the resolution of a printer.
Example, 203DPI means 203 print dots per inch. DPI: Dot Per Inch
Baseline – The standard position where character data in print buffers are stored. The figure shows
the position of ordinary characters in standard mode and page mode:
-1-
BTP-S80 Programming Manual
-2-
BTP-S80 Programming Manual
2 Command Description
[Function] Print all data in the print buffers and return to the standard mode.
[Format] ASCII FF
Hex 0C
Decimal 12
[Notes] This command is valid only in page mode.
The buffer data is deleted after being printed.
The printer does not execute paper cutting.
This command sets the print position to the beginning of the line.
[Relative] ESC FF, ESC L, ESC S
CR
[Function] When the command is enabled, it equals to LF; it is ignored when disabled,
[Format] ASCII CR
Hex 0D
Decimal 13
[Notes] Sets the print starting position to the beginning of the line.
This command is set according to the printer configuration.
[Relative] LF
ESC FF
-3-
BTP-S80 Programming Manual
ESC J n
[Function] Print and feed paper for [ n × motion unit in vertical or horizontal] inches.
[Format] ASCII ESC J n
Hex 1B 4A n
Decimal 27 74 n
[Range] 0 ≤n ≤ 255
[Notes] 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 2 or
ESC 3.
The horizontal and vertical motion unit is specified by GS P.
In standard mode, the printer uses the vertical motion unit (y).
In page mode, this command functions as follows, depending on the starting position of the
printable area:
1) When the 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.
2) When the starting position is set to the upper right or lower left of the print able 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.
[Relative] GS P
[Example] 1B 40 (initialize printer)
1D 50 CB CB (set the resolution 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:
ESC d n
-4-
BTP-S80 Programming Manual
• The maximum paper feed amount is 1016 mm. If the paper feed amount is more than
1016 mm , the printer feeds paper only 1016 mm.
[Relative] ESC 2, ESC 3
[Example] 1B 40(initialize printer)
41 41 41 41 41 41 41(data to be printed)
1B 64 02 (print and feed 2 character line spacing, 2/6 inches)
42 42 42 42 42 42 42 0A(data to be printed)
Results:
-5-
BTP-S80 Programming Manual
ESC $ nL nH
[Function] The distance from the beginning of the line to the print position is [(nL + nH × 256) ×
(vertical or horizontal motion unit)] inches.
[Format] ASCII ESC $ nL nH
Hex 1B 24 nL nH
Decimal 27 36 nL nH
[Range] 0≤nL ≤ 255
0 ≤nH≤255
[Notes] • Settings outside the specified printable area are ignored.
• The horizontal and vertical motion units are specified by GS P.
• In standard mode, the horizontal motion unit (x) is used.
• In page mode, horizontal or vertical motion unit differs depending on the starting
position of the printable area as follows:
1) 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.
2) When the starting position is set to the upper right or lower left of the printable area
using ESC T, the vertical motion unit (y) is used.
[Relative] ESC \, GS $, GS \, GS P
[Example] Refer to ESC W
ESC D n1...nk NUL
0 ≤ k ≤ 32
[Notes] • The horizontal tab position is stored as a value of [character width × n] measured from the
beginning of the line. The character width includes the right-side character spacing, and
double-width characters are set with twice the width of normal characters.
• This command cancels the previous horizontal tab settings.
• When setting 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 (columns 9, 17, 25...) for font A
(12 × 24).
[Relative] HT
[Example] Refer to HT
ESC T n
[Function] Select the print direction and starting position in page mode.
[Format] ASCII ESC T n
Hex 1B 54 n
Decimal 27 84 n
[Range] 0≤n≤3 48 ≤ n ≤ 51
n specifes print direction and starting position:
[Notes] • 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 position where data is buffered within the printing area.
• Parameters for horizontal or vertical motion units (x or y) differ as follows, depending on
the starting position of the printing area:
-7-
BTP-S80 Programming Manual
1) If the starting position is the upper left or lower right of the printing area, data is
buffered in the direction perpendicular to the paper feed direction:
Commands using character width: ESC SP, ESC $, ESC \
Commands using vertical motion units: ESC 3, ESC J, GS $, GS \
2) If the starting position is the upper right or lower left of the printing area, data is
buffered in the paper feed direction:
Commands using horizontal motion units: ESC 3, ESC J, GS $, GS \
Commands using vertical motion units: ESC SP, ESC $, ESC \
[Default] n=0
[Relative] ESC $, ESC L, ESC W, ESC \, GS $, GS P, GS \
[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 print area in page mode)
1B 54 00(select the print 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 print 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 print 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 print 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:
[Function] Define the horizontal starting position, vertical starting position, printing area width, and
printing area height.
Horizontal starting position: x0 = [( xL + xH × 256) × (horizontal motion unit)]
Vertical starting posirion: y0 = [( yL + yH × 256) × (vertical motion unit)]
Print area width: dx = [ (dxL + dxH × 256) ×(horizontal motion unit)]
-8-
BTP-S80 Programming Manual
ESC \ nL nH
[Function] 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]
[Format] ASCII ESC \ nL nH
Hex 1B 5C nL nH
Decimal 27 92 nL nH
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Notes] • 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: 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.
- 10 -
BTP-S80 Programming Manual
[Function] Align all the data in one line to the specified position
[Format] ASCII ESC a n
Hex 1B 61 n
Decimal 27 97 n
[Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50
n selects the justification as follows:
n Justification
0, 48 Left justification
1, 49 Centering
2, 50 Right justificatoin
[Notes] • This command is enabled 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 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:
- 11 -
BTP-S80 Programming Manual
GS $ nL nH
[Notes] • This command is effective only when processed at the beginning of the line in standard
mode.
• If this command is input in page mode, it is disabled.
- 12 -
BTP-S80 Programming Manual
GS P x y
[Function] Set the horizontal and vertical motion units to approximately 25.4/ x mm {1/ x inches} and
approximately 25.4/ y mm {1/ y inches}, respectively.
[Format] ASCII GS P x y
Hex 1D 50 x y
Decimal 29 80 x y
[Range] 0 ≤ x ≤ 255
0 ≤ y ≤255
[Notes] • When x and y are set to 0, the default setting of each value is used.
• 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):
1) Commands using x: ESC SP, ESC $, ESC \, FS S, GS L, GS W
2) Commands using y: ESC 3, ESC J, GS V
- 13 -
BTP-S80 Programming Manual
• In page mode, the following commands use x or y, depending on the direction and
starting position of print area:
1) When the print starting position is set to the upper left (Printing direction from left to
right)or lower right(Printing direction from right to left) of the printing 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
2) When the print starting position is set to the upper right(Printing direction from top
to down) or lower left (Printing direction from down to top)of the printing area by
ESC T:
Commands using x: ESC 3, ESC J, ESC W, GS $, GS \
Commands using y: ESC SP, ESC $, ESC W, ESC \,FS S, GS V
• The command does not affect the previously specified values.
• The minimum motion unit is the compositive result of this command and other
commands.
• 1 inch=25.4mm.
[Default] x = 203, y =203, at this time, one motion unit is a printing dot. The horizontal distance is
about 1/8mm and the vertical distance is about 1/8mm.
[Relative] ESC SP, ESC $, ESC 3, ESC J, ESC W, ESC \, GS $, GS L, GS V, GS W, GS \
GS W nL nH
• In standard mode, the command is enabled only when processed at the beginning of
the line.
• In page mode, this command is disabled.
• This command does not affect the printing in page mode.
• If the [left margin + printing area width] exceeds the printable area, [printable area width
- left margin) is used.
• The horizontal and vertical motion units are specified by GS P. Changing the horizontal
and vertical motion units does not affect the current left margin or print area width.
• The horizontal motion unit ( x) is used for calculating the printing area width.
[Default] nL = 76, nH = 2
- 14 -
BTP-S80 Programming Manual
[Relative] GS L, GS P
[Example] See GS L
GS \ nL nH
- 15 -
BTP-S80 Programming Manual
31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71
72 73 74 75 76 77 78 79 7A 31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68
69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 31 32 33 34 35 36 37 38 39 30
61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 31
32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72
73 74 75 76 77 78 79 7A 31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69
6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 31 32 33 34 35 36 37 38 39 30 61
62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 31 32
33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73
74 75 76 77 78 79 31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 64 66 67 68 69 6A 6B
6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79
1B 57 44 00 10 00 7C 01 AA 00(Setting the size of page needed to be deleted )
18(Delete data in page buffer)
1B 24 64 00(Setting absolute horizontal print position as 100 dots)
1D 24 60 00 (Setting abosulute vertical print position as 96 dots)
43 61 6E 63 65 6C 20 74 68 65 20 64 61 74 61 20
0A 0C(Printing)
Results:
ESC SP n
[Function] Set right-side character spacing.
[Format] ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n
[Range] 0 ≤ n≤255
[Notes] • Set the character spacing for the right side of the character to [n×horizontal or vertical
motion unit] inch.
• When characters are enlarged, the right-side character spacing is enlarged the same
times.
• This command sets values independently in each mode (standard and page modes)
• The horizontal and vertical motion units are specified by GS P. Changing the horizontal
or vertical motion unit does not affect the current right-side spacing.
• In standard mode, the horizontal motion unit is used.
- 16 -
BTP-S80 Programming Manual
• In page mode, the horizontal or vertical motion unit differs in page mode, depending on
starting position of the printable area as follows:
1) 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.
2) 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.
• The maximum right-side spacing is 255/203 inches. Any setting exceeding the
maximum is converted to the maximum automatically.
[Default] n=0
[Example] 1B 40
1B 20 00(Set right-side character spacing as 0)
41 41 41 41 41 0A
1B 20 06(Set character spacing as 6/203 inch)
42 42 42 42 42 0A
1B 20 0C(Set character spacing as 12/203 inch)
43 43 43 43 43 0A
Results:
ESC ! n
[Function] Select print mode(s).
[Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n
[Range] 0 ≤ n ≤ 255
[Notes] • Select print mode(s) according to n as follow
Bit 1/0 HEX Decimal Function
0 00 0 Standard ASCII Font (12 × 24)
0
1 01 1 Compressd ASCII Font (9 × 17)
1,2 Undefined
0 00 0 Emphasized mode not selected
3
1 08 8 Emphasized mode selected
0 00 0 Double-height mode not selected
4
1 10 16 Double-height mode selected
0 00 0 Double-width mode not selected
5
1 20 32 Double-width mode selected
6 Undefined
0 00 0 Underline mode not selected
7
1 80 128 Underline mode selected
- 17 -
BTP-S80 Programming Manual
• When both double-height and double-width modes are selected, quadruple size
characters are printed.
• The printer can underline all characters, but can not underline the space set by HT or
90°clockwise rotated characters.
• The thickness of the underline is decided by ESC -, regardless of the character size.
• When some characters in a line are double or higher, all the characters in the line are
aligned at the baseline.
• ESC E can also turn on or off emphasized mode. However, the setting of the last
received command is effective.
• ESC – can also turn on or off underline mode. However, the setting of the last received
command is effective.
• GS ! can also select character size. However, the setting of the last received command
is effective.
[Default] n=0
[Relative] ESC -, ESC E, GS !
[Example] 1B 40(Initialize printer)
1B 21 00(Select normal print mode)
48
1B 21 01(Select compressed font mode)
48
1B 21 08(Select emphasized mode)
48
1B 21 10(Select double-height mode)
48
1B 21 20(Select double-width mode)
48
1B 21 80(Select underline mode)
48
1B 21 B9(Select compressed, emphasized,double-width,double-height and underline
mode)
48 0A
Results:
- 18 -
BTP-S80 Programming Manual
ESC % n
[Example]
• When standard ASCII font (12 × 24) is selected
- 20 -
BTP-S80 Programming Manual
ESC – n
• The printer can underline all characters (including right-side character spacing), but
cannot underline the space set by HT.
• The printer cannot underline 90°clockwise rotated characters and white/black inverted
characters.
• When underline mode is turned off, the following data is not underlined, and the
underline thickness set before the mode is turned off does not change. The default
underline thickness is 1 dot.
• Changing the character size does not affect the current underline thickness.
• Underline mode can also be turned on or off by using ESC !. Note, however, that the
last received command is effective.
[Default] n=0
[Relative] ESC !
[Example] 1B 40
1B 2D 02(2-dot thick underline)
41 41 41 41 41 41 0A
1B 2D 01(1-dot thick underline)
42 42 42 42 42 42 0A
1B 2D 00(Turn off underline)
43 43 43 43 43 43 0A
Results:
ESC ? n
[Function] Cancel user-defined characters
[Format] ASCII ESC ? n
Hex 1B 3F n
Decimal 27 63 n
[Range] 32 ≤n ≤127
- 21 -
BTP-S80 Programming Manual
[Notes] This command cancels the pattern defined for the character code specified by n. After
the user-defined characters are canceled, the corresponding pattern for the internal
character is printed.
If a user-defined character has not been defined for the specified character code, the
printer ignores this command.
[Relative] ESC &, ESC %
ESC E n
[Function] Turn emphasized mode on/off
[Format] ASCII ESC E n
Hex 1B 45 n
Decimal 27 69 n
[Range] 0 ≤ n ≤ 255
[Notes] When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on.
Only the least significant bit of n is enabled.
This command and ESC ! turn on and off emphasized mode in the same way. The last
received command is effective.
[ Default ] n=0
[Relative] ESC !
[Example] 1B 40
1B 45 01(Emphasized mode is selected)
41 41 41 41 41 0A
1B 45 00(Emphasized mode is not selected)
42 42 42 42 42 0A
Results:
ESC G n
- 22 -
BTP-S80 Programming Manual
[Example] 1B 40
1B 4D 01(Compressed font selected)
41 41 41 42 42 42 30 30 30 31 31 31 0A
1B 4D 00(Standard font selected)
41 41 41 42 42 42 30 30 30 31 31 31 0A
Results:
ESC R n
ESC V n
ESC t n
- 24 -
BTP-S80 Programming Manual
13 PC857
14 737[Greek]
15 928[Greek]
16 WPC1252
17 PC866
18 PC852
19 PC858
20 Thai Tis42(Thai3)
21 Thai Tis11(Thai5)
22 Thai Tis(Thai2)
23 Thai Ku(Thai1)
24 Thai Tis14(Thai4)
26 Thai Tis18(Thai6)
27 Hebrew1
28 Hebrew2
29 Hebrew3
33 775[Baltic]
34 855[Cyrillic]
36 862[hebrew]
37 864[Arabic]
38 869[Greek]
41 Frasi
43 772[Lithuanian]
45 1250[Latin-2]
46 1251[Cyrillic]
47 1253[Greek]
48 1254[Turkish]
49 1255[Hebrew]
50 1256[Arabic]
51 1257[Baltic]
54 771
56 774[Lithuanian]
64 3840 (IBM-Russian)
65 3841 (Gost)
66 3843 (Polish)
67 3844 (CS2)
68 3845 (Hungarian)
69 3846 (Turkish)
70 3847 (Brazil-ABNT)
71 3848 (Brazil-ABICOMP)
72 1001
73 2001
74 3001 (Estonian-1)
75 3002 (Estonian-2)
76 3011 (Latvian-1)
77 3012 (Latvian-2)
78 3021 (Bulgarian)
79 3041 (Maltese)
80 8859
81 Persia
[Notes] This command is disabled in Chinese font
[Default] PC437 code
ESC { n
GS ! n
• This command is effective to all characters (ASCII and Chinese characters) except for
HRI characters.
• If n is outside of the defined range, this command will be ignored.
• In standard mode, the vertical direction is the paper feed direction, and the horizontal
direction is perpendicular to the paper feed direction. However, when character
orientation changes in 90° clockwise-rotation, the relationship between vertical and
horizontal directions is reversed.
• In page mode, vertical and horizontal directions are based on the direction of print
area.
• When characters in one line are enlarged to different sizes, all the characters are
aligned at the baseline.
• The ESC ! command can also turn double-width and double-height modes on or off.
However, the setting of the last received command is effective.
[Default] n=0
[Relative] ESC !
[Example] Refer to ESC !
GS B n
- 27 -
BTP-S80 Programming Manual
• White/black reverse mode has a higher priority than underline mode. Even if underline
mode is on, it is disabled (but not canceled) when white/black reverse mode is
selected.
[Default] n=0
[Example] 1B 40
1D 42 01(Turn white/black reverse mode on)
41 41 41 42 42 42 0A
1D 42 00(Turn white/black reverse mode off)
41 41 41 42 42 42 0A
Results:
FS ! n
[Function] Set the print mode for Chinese characters.
Format] ASCII FS ! n
Hex 1C 21 n
Decimal 28 33 n
[Range] 0 ≤n ≤ 255
[Description]Set the print mode forChinese characters, using n as follows:
Bit 0/1 Hex Decimal Function
0, 1 Undefined
0 00 0 Double-width mode is OFF
2
1 04 4 Double-width mode is ON
0 00 0 Double-height mode is OFF.
3
1 08 8 Double-height mode is ON
4-6 Undefined
0 00 0 Underline mode is OFF
7
1 80 128 Underline mode is ON
[Notes] • When both double-width and double-height modes are set (including right-side and
left-side character spacing), quadruple-size characters are printed.
• The printer can underline all characters (including right- and left-side character spacing),
but cannot underline the space set by HT and 90°clockwise-rotated characters.
• The thickness of the underline is specified by FS -, regardless of the character size.
• When some of the characters in one line are of different height, all the characters in the
line are aligned at the baseline.
• It is possible to emphasize the characters with FS W or GS ! and the setting of the last
received command is effective.
• It is possible to turn underline mode on or off with FS -, and the setting of the last
received command is effective.
[Default] n=0
- 28 -
BTP-S80 Programming Manual
[Relative] FS-, FS W, GS !
[Example] Refers to ESC !
FS &
• The printer can underline all characters (including right- and left-side character spacing),
but cannot underline the space set by HT and 90°clockwise-rotated characters.
• After the underline mode for Chinese characters is turned off, underline printing is no
longer performed, but the previously specified underline thickness is not changed. The
default underline thickness is 1 dot.
• The specified underline thickness does not change even if the character size changes.
• It is possible to turn underline mode on or off by FS !, and the last received command
is effective.
[Default] n=0
[Relative] FS !
[Example] Refer to ESC_
FS .
- 29 -
BTP-S80 Programming Manual
Hex 1C 2E
Decimal 28 46
[Notes] • When the Chinese character mode is not selected, all character codes are processed
one byte at a time as ASCII code.
• Chinese character mode is selected when the power is turned on.
[Relative] FS &, FS C
FS 2 c1 c2 d1...dk
FS C n
- 30 -
BTP-S80 Programming Manual
n Code mode
0,48 JIS code
1,49 SHIFT JIS code
- 31 -
BTP-S80 Programming Manual
FS W n
• If the value of m is out of the specified range, nL and the following data are processed
as normal data.
- 32 -
BTP-S80 Programming Manual
• The nL and nH indicate the number of dots of the bitmap in the horizontal direction. The
number of dots is calculated by nL + nH × 256.
• If the bitmap data input exceeds the number of dots to be printed in a line, the excess
data is ignored.
• d indicates the bitmap data. Set a corresponding bit to 1 to print a dot or to 0 to not print
a dot.
• After printing a bitmap, the printer returns to normal data processing mode.
• This command is not affected by print modes (emphasized, double-strike, underline,
character size enlargement or white/black reverse printing), except upside-down
printing mode.
• The relationship between the image data and the dots to be printed is as follows:
When 8-dot bitmap is selected:
GS # n
[Function] Specify a number for the bitmap to be downloaded. This number is to be used when
downloading and printing this bitmap.
[Format] ASCII GS # n
Hex 1D 23 n
Hecimal 29 33 n
[Range] 0≤n≤7
[Notes] The command is only enabled for bitmaps in RAM and the settings are erased when the
printer is turned off.
- 33 -
BTP-S80 Programming Manual
[Relative] GS /
GS / m
[Notes] • This command is ignored if a downloaded bitmap has not been defined.
- 34 -
BTP-S80 Programming Manual
• This command has no effect in the print modes (emphasized, double-strike, underline,
character size enlargement, or white/black reverse printing), except for upside-down
printing mode.
• If the downloaded bitmap to be printed exceeds the printable area, the excess data is
not printed.
• This command print bitmap in RAM but not in FLASH, the number of bitmap is defined
by GS #.
[Relative] GS *, GS #
GS v 0 m xL xH yL yH d1....dk
• xL, xH indicate the number of data bytes ( xL+ xH × 256) in the horizontal direction of
the bitmap.
• yL, yH indicate the number of data bytes ( yL+ yH × 256) in the vertical direction of the
bitmap.
• In standard mode, this command is effective only when there is no data in the print
buffer.
• This command has no effect in all print modes (character size enlargement,
emphasized, double-strike, underline, white/black reverse printing, etc.) for raster
bitmap.
• Data outside the printing area is discarded.
• The ESC a (Select justification) setting is also effective on raster bitmaps.
• When this command is received during macro definition, the printer ends macro
definition, and begins performing this command. The definition of this command should
be cleared.
- 35 -
BTP-S80 Programming Manual
• d indicates the bitmap data. Set a corresponding bit to 1 to print a dot or 0 to not print a
dot.
[Example] When xL+ xH × 256 = 64
FS p n m
- 36 -
BTP-S80 Programming Manual
- 37 -
BTP-S80 Programming Manual
• The maximum flash downloading space in printer is 64K bits (8K bytes). This command
can define several flash bitmaps, but cannot define a bitmap data whose total capacity
exceeds 64K bits (The download area is different according to different configuration).
• When processing this command, the printer does not process other commands.
• When this command is received during macro definition, the printer ends macro
definition, and begins performing this command.
• Once a Flash bitmap is defined, it is not erased by performing ESC @, reset, and power
off.
• This command performs only definition of a Flash bitmap and does not perform printing.
Printing of the Flash bitmap is performed by the FS p command.
[Relative] FS p
- 38 -
BTP-S80 Programming Manual
n = 2: Off-line status
Bit 0/1 Hex Decimal Function
0 0 00 0 Fixed to 0.
1 1 02 2 Fixed to 1.
0 00 0 Cover is closed.
2
1 04 4 Cover is open.
0 00 0 FEED button is not been pushed.
3
1 08 8 FEED button is been pushed.
4 1 10 16 Fixed to 1.
0 00 0 Paper is not end.
5
1 20 32 Paper is end.
0 00 0 No error.
6
1 40 64 Error occurs.
7 0 00 0 Fixed to 0.
n = 3: Error status
Bit 0/1 Hex Decimal Function
0 0 00 0 Fixed to 0.
1 1 02 2 Fixed to 1.
2 - - - Undefined.
3 0 00 0 No auto-cutter error.
- 39 -
BTP-S80 Programming Manual
Bit 5: Errors like paper jam are recoverable errors.These errors can be eliminated and the
printer can return to normal state by using DLE ENQ n (1 ≤ n ≤ 2). Errors like control board
damage are irrecoverable errors.
Bit 6: Errors like high print head temperature are automatically recoverable errors. When
printing is stopped due to these errors, the printer can come back to normal state
automatically.
Third byte (paper sensor information)
Bit Off/On Hex Decimal Printer Status
Off 00 0 Paper is not near end
0,1
On 03 3 Paper near end.
Off 00 0 Paper present
2,3
On 0C 12 Paper end
- 41 -
BTP-S80 Programming Manual
5,6 - - - Undefined.
7 Off 00 0 Not used. Fixed to 0.
GS r n
• This command is valid for serial, nibble-byte parallel and USB interface printer.
• This command is executed when the data in the receive buffer is processed. Therefore,
there may be a time lag between receiving this command and transmitting the status,
• The corresponding relationship between different bits of status bytes are shown as
below:
Paper sensor status ( n = 1, 49):
Bit 0/1 Hex Decimal Status for ASB
0 00 0 Paper near-end sensor: paper adequate.
0, 1
1 03 3 Paper near-end sensor: paper near end.
0 00 0 Paper end sensor: paper adequate.
2, 3
1 0c 12 Paper end sensor: paper end.
4 0 00 0 Not used. Fixed to 0.
5, 6 Undefined.
7 0 00 0 Not used. Fixed to 0.
- 42 -
BTP-S80 Programming Manual
[Function] Select the printing position of HRI characters when printing a barcode.
[Format] ASCII GS H n
Hex 1D 48 n
Decimal 29 72 n
[Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51
[Notes] n specifies the printing position for HRI as follows:
n Printing position
0, 48 Not printed.
1, 49 Above the barcode.
2, 50 Below the barcode.
3, 51 Both above and below the barcode.
[Function] Select a font for the HRI characters when printing a barcode.
[Format] ASCII GS f n
Hex 1D 66 n
Decimal 29 102 n
[Range] n = 0, 1, 48, 49
[Notes] n selects a font as follows:
n Font
0,48 Standard ASCII character (12 × 24)
1,49 Compressed ASCII character (9 × 17)
[Relative] GS k
①GS k m d1...dk NUL②GS k m n d1...dn
① 0 UPC-A 11 ≤ k ≤ 12 48 ≤ d ≤ 57
1 UPC-E 11 ≤ k ≤ 12 48 ≤ d ≤ 57,d1=48
2 JAN13 (EAN13) 12 ≤ k ≤ 13 48 ≤ d ≤ 57
3 JAN 8 (EAN8) 7≤k≤8 48 ≤ d ≤ 57
45 ≤ d ≤ 57, 65 ≤ d ≤ 90,
4 CODE39 1 ≤ k ≤ 255
32, 36, 37,43
5 ITF 1 ≤ k ≤ 255 48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 68
6 CODABAR 1 ≤ k ≤ 255
, 36, 43, 45,46,47,58
10 PDF417 1 ≤ k ≤ 255 0 ≤ d ≤ 255
11 QRCODE 1 ≤ k ≤ 928 0 < d ≤ 255
48 ≤ d ≤ 57,65 ≤ d ≤ 90,
12 MAXICODE 1 ≤ k ≤ 84
97 ≤ d ≤ 122
13 GS1 No limit Decided by GS1
② 65 UPC-A 11 ≤ n ≤ 12 48 ≤ d ≤ 57
66 UPC-E 11 ≤ n ≤ 12 48 ≤ d ≤ 57,d1=48
67 JAN13 (EAN13) 12 ≤n ≤ 13 48 ≤ d ≤ 57
68 JAN 8 (EAN8) 7 ≤n ≤ 8 48 ≤ d ≤ 57
45 ≤ d ≤ 57, 65 ≤ d ≤ 90,
69 CODE39 1 ≤ n ≤ 255
32, 36, 37,43
70 ITF 1 ≤ n ≤255 48 ≤ d ≤ 57
48 ≤ d ≤ 57 65 ≤ d ≤ 68,
71 CODABAR 1 ≤ n ≤ 255
36, 43,45,46,47 58
72 CODE93 1 ≤ n ≤ 255 0 ≤ d ≤ 127
73 CODE128 2 ≤ n ≤ 255 0 ≤ d ≤ 127
75 PDF417 1 ≤ n ≤ 255 0 ≤ d ≤ 255
76 QRCODE 1 ≤ n ≤ 255 0 ≤ d ≤ 255
77 MAXICODE 1 ≤ n ≤ 84 48 ≤ d ≤ 57,65 ≤ d ≤ 90
78 GS1 1 ≤ n ≤255 Decided by GS1
[Notes ①]
• This command ends with a NULL code.
• When UPC-A or UPC-E is selected, the characters after the first 12 bytes will be
processed as normal characters after receiving12 bytes of barcode data.
- 44 -
BTP-S80 Programming Manual
• When JAN13 (EAN13) is selected, the characters after the first 13 bytes will be
processed as normal characters after receiving 12 bytes of barcode data.
• When JAN8 (EAN8) is selected, the characters after the first 8 bytes will be processed
as normal characters after receiving 8 bytes of barcode data.
• The number of data for ITF bar code must be even numbers. When an odd number of
data is input, the printer ignores the last received data.
• The beginning code and the ending code of CODEBAR barcode must be one of A, B,
C and D. The ending codes can be replaced with T, E, * and N.
• When QRCODE is selected, d1...d k(d1…dn)consist of 5 parts and the format is
shown as below:
(1) Daabbcc
D: Link structure mode, input specific mark symbol ―D‖. This mode is optional and
the following three paramaters and separator should be assigned if this mode is
selected.
aa: The position of the specific symbol; input 2 bytes decimal data
bb: The total number of the symbols; input 2 bytes decimal data
cc: The even and odd data; input 2bytes hexadecimal data
,,: are fixed separator symbol
(2) E: Error correction grade Range: L,M,Q,H. The correction grade is increasing from L
to H.
(3) M: Mask image reference. Range: Default as automatic mask.
(4) M: Data input mode Range: A or M, A means automatic mode (Recommended).M
means manual input mode. If A is selected, the character mode is not necessary to
be assigned; If M selected, the character mode must be assigned. The default is A
mode.
(5) <Character mode><DATA1>,
< Character mode ><DATA2>,
< Character mode ><DATA3>,
……………………….
< Character mode ><DATAn>
Note: n>=200
Character input mode<N,A,B,K>
N: Numbers(0~9)
A: Mixed by alphabet and numbers(0~9)(A~Z)(SP,$,%,*,+,-,.,/,:)
Bxxxx: 8 Bit byte mode(0x00~0xFF)
K: JIS
The legal width of the bar: The ratio of the bar is not changeable.
Example:
1D 6B 0B 51 41 2C 30 31 32 33 34 35 36 37 38 39 41 42 43 44 20 32 44 20 63 6F
64 65 00(Automatic mode is recommended and the character symbol A can be
- 45 -
BTP-S80 Programming Manual
omitted)
1D 6B 4c 12 48 4D 2C 4E 31 32 33 34 35 36 37 38 39 31 32 33 34 35
1D 6B 0B 4D 4D 2C 41 41 43 2D 34 32 00
1D 6B 0B 4C 4D 2C 4E 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 2C 41 41
42 43 2C 42 30 30 30 36 71 72 63 6F 64 65 00
1D 6B 0B 46 2C 4C 4D 2C 4E 30 31 32 33 34 35 36 37 38 39 2C 41 31 32 41 41 42
42 2C 42 30 30 30 36 71 72 63 6F 64 65 00
• When MAXICODE is selected, the length of d1...d k(d1…dn)should be less than 84
characters and it consists of 5 parts. The format is shown as below:
(1) The basic postal code in 5 numbers;
(2) The second postal code in 4 numbers;
(3) The country code in 3 numbers;
(4) The service class in 3 numbers;
(5) The character strings
Legal character: alphabet and numbers;
Length of variable: changeble;
Legal length of the bar: The ratio of the bar is not changeable.
Example:
1D 6B 0C 33 32 37 38 39 35 35 35 35 38 34 30 36 36 36 54 48 49 53 20 50 41 43
4B 41 47 45 49 53 20 47 4F 49 4E 47 20 54 4F 20 44 41 54 41 4D 41 58 43 4F 52
50 2E 00
[Notes ②]
• n indicates the number of barcode data, and the printer processes n bytes from the
next character data as barcode data.
• If n is outside the specified range, the printer stops command processing and
processes the following data as normal data.
[Notes (standard mode)]
• If d is outside the specified range, the command is disabled.
• If the horizontal size of the barcode exceeds printing area, the command is disabled.
• This command feeds as much paper as is required to print the barcode, regardless of
the line spacing specified by ESC 2 or ESC 3.
• This command is enabled only when no data exists in the print buffer. When data
exists in the print buffer, the command is ignored.
• After printing barcode, this command sets the print position to the beginning of the line.
• This command is not affected by print modes (emphasized, double-strike,underline,
character size, white/black reverse printing, or 90°clockwise rotated character, etc.),
except for upside-down printing mode.
[Notes in page mode]
- 46 -
BTP-S80 Programming Manual
• This command develops bar code data in the print buffer, but does not print it. After
processing barcode data, this command moves the print position to the right side dot of
the barcode.
• If d is out of the specified range, this command is ignored.
• If barcode width exceeds the printing area, this command is ignored.
When CODE128 ( m = 73) is used:
• Refer to Appendix A for the information of the CODE 128 barcode and ithe character
set.
• When using the CODE 128 in this printer, take the following points into account for
data transmission:
1) Character set must be selected before the barcode data (one of CODE A, CODE B
or CODE C).
2) Special characters are defined by combining two characters "{" and one character.
The ASCII character "{" is defined by transmitting "{" twice consecutively.
Transmit data
Specific character set
ASCII Hex Decimal
SHIFT {S 7B, 53 123,83
CODE A {A 7B, 41 123, 65
CODE B {B 7B, 42 123, 66
CODE C {C 7B, 43 123, 67
FNC1 {1 7B, 31 123, 49
FNC2 {2 7B, 32 123, 50
FNC3 {3 7B, 33 123, 51
FNC4 {4 7B, 34 123, 52
"{" {{ 7B, 7B 123, 123
• If the top of the barcode data is not the code set selection character, the printer stops
command processing and processes the following data as normal data.
• If combination of "{" and the following character does not apply to any special
character, the printer stops command processing and processes the following data as
normal data.
• If the printer receives characters that cannot be used in the special code set, the
printer stops command processing and processes the following data as normal data.
- 47 -
BTP-S80 Programming Manual
• The printer does not print HRI characters that correspond to the shift characters or
code set selection characters.
• HRI characters for the function characters are not printed.
• HRI characters for the control characters (<00>H to <1F>H and <7F>H) are not
printed.
• The left- and right –side spacing which varies from one barcode type to another rmust
be assured.
[Relative] GS H, GS f, GS h, GS w, GS s Appendix A
[Notes] 1B 40(Initialize printer)
4A 41 4E 31 33 0A
1D 48 01(Set the width of the barcode unit 1)
1D 66 01(HRI characters use condensed character)
1D 77 01(HRI characters print above the barcode)
1D 68 40(Barcode height is 64/203 inch)
1D 6B 02 30 31 32 33 34 35 36 37 38 39 30 35 39 00 0A
1D 48 02(Set the width of the barcode unit 2)
1D 66 01(HRI characters use condensed character)
1D 77 02(HRI characters print under the barcode)
1D 68 80(Barcode height is 128/203 inch)
1D 6B 02 30 31 32 33 34 35 36 37 38 39 30 35 39 00 0A
1D 48 03(Set the width of the barcode unit 3)
1D 66 00(HRI characters use standard character)
1D 77 03(HRI characters print both above and under the barcode)
1D 68 C8(Barcode height is 162/203 inch)
1D 6B 02 30 31 32 33 34 35 36 37 38 39 30 35 39 00 0A
Result:
GS s n1 n2 n3 n4 n5 n6 n7 n8
Hex 1D 73 n1 n2 n3 n4 n5 n6 n7 n8
Decimal 29 115 n1 n2 n3 n4 n5 n6 n7 n8
[Range] 1 ≤ n1≤ 7
1 ≤ n2≤ 6
2 ≤ n3≤250
1 ≤ n4≤ 10
1 ≤ n5≤ 10
2 ≤ n6≤20 , 4 ≤ n6≤ 20
1 ≤ n7≤ 4
0≤ n8≤1
[Notes] • Whether GS1 barcode is separate or composite barcode is distinguished by data
separator‖|‖ If there is ―|‖.in the programmed data, it is composite barcode; otherwise, it is
separate DataBar. The part before | is DataBar of the composite barcode and the part
after it is the data of 2D barcode.
• n1 indicates barcode type and character set as below:
Parameter Barcode type Character set Data length Coding range
14bits,
GS1DataBar 13numbers+1bits 0000000000000 ~
1 Number 0-9
Omnidirectional of check 9999999999999
characters
14bits,
GS1DataBar 13numbers+1bits 0000000000000 ~
2 Number 0-9
Truncated of check 9999999999999
characters
14bits,
GS1 DataBar 13numbers+1bits 0000000000000 ~
3 Number 0-9
Stacked of check 9999999999999
characters
14bits,
GS1 DataBar
13numbers+1bits 0000000000000 ~
4 Stacked Number 0-9
of check 9999999999999
Omnidirectional
characters
14bits,
GS1 DataBar 13numbers+1bits 0000000000000 ~
5 Number 0-9
Limited of check 1999999999999
characters
0 ~ 9、A ~ Z、 a ~
GS1 DataBar z !"%&'()*+, Max 74numbers
6
Expanded - ./ : ; < = > ? _ or 41 letters
space FNC1
0 ~ 9、A ~ Z、 a ~
GS1 DataBar z !"%&'()*+, Max 74numbers
7
ExpandedStacked - ./ : ; < = > ? _ or 41 letters
space FNC1
• If the length is 13 bits, it will append the check character from the calculation of the first
13 bits tp the right of the data; If the length is 14 bits, the check character from the
calculation of the first 13 bits will replace the 14th character(the printed 14th bit may be
different from the inputted character); if the length is shorter than 13 bits, add 0 to the
left of the data, and the bits after the first 14th bits will not be printed out.
• The character set of 2D barcode in composite barcode: 0 ~ 9, A ~ Z, a ~ z !"%&'()*
+, - ./ : ; < = > ? _ space FNC1(FNC1 is indicated by ―{1‖}.
- 49 -
BTP-S80 Programming Manual
• n8 indicates whether to use AI(use identifier): 0 indicates to not use AI; 1 indicates to
use AI.
[Reference] GS k
GS o n
[Notes] When the value of parameter is outside the specified range, the command is not valid.
GS p n
- 50 -
BTP-S80 Programming Manual
1≤nB≤100
3≤nC ≤90
1≤nD ≤30
1≤nE ≤7
2≤nF ≤25
The meaning of parameter n is shown as below:
Parameter Meaning
nA Appearance to height
nB Appearance to width
nC Lines limit
nD Columns limit
nE X size
nF line height
GS q n
[Function] Set correction grade of barcode PDF417
[Format] ASCII GS q n
Hex 1D 71 n
Decimal 29 113 n
[Range] 0≤ n≤8
[Notes] Set correction grade of PDF417 code, the higher the correction grade is, the bigger the
capacity of the barcode is.
GS w n
ESC C n
[Function] select print colour..
[Format] ASCII ESC C n
Hex 1B 43 n
Hecimal 27 67 n
[Range] 0 ≤n ≤ 1
[Notes] • n=0, select colour one.
• n=1, select colour two.
[Reference] ESC r
GS ( N pL pH fn a
[Function] bi-color print setting command, set to enter/exit bi-color mode and print color
[Format] ASCII GS ( N pL pH fn a
Hex 1D 28 4E pL pH fn a
Hecimal 27 67 n
[Range] pL = 2, pH = 0, fn = 48, a = 48, 49, 50
- 52 -
BTP-S80 Programming Manual
- 53 -
BTP-S80 Programming Manual
GS ( z nL nH 0 E
[Function] print page data and exit upside-down printing mode and enter normal print mode.
[Format] ASCII GS ( z nL nH 0 E
Hex 1D 28 7A nL nH 30 45
Decimal 29 40 122 nL nH 48 69
[Range] nL = 2
nH = 0
[Notes] • This command should be used at the end of the upside-down page. After receiving the
- 54 -
BTP-S80 Programming Manual
[Function] Set water based print bitmap parameters and enter water based print mode.
[Format] ASCII GS { w f n1 n2 n3 n4 n5
Hex 1D 7B 77 02 n1 n2 n3 n4 n5
Decimal 29 123 119 02 n1 n2 n3 n4 n5
[Range] 0 ≤ n1 ≤ 1
0 ≤ n2 ≤ 2
1 ≤ n3≤ 255
0 ≤ n4 ≤ 255
1 ≤ n5 ≤ 255
[Notes] • n1 indicates water based print mode:
n1 = 0: print water based print bitmap when feeding paper
n1 = 1: print water based print bitmap when printing
• n2 indicates water based print justification mode
n2 = 0: left justification
n2 = 1: centering
n2 = 2: right justification
• n3 indicates water based print enlargement mode, 0-3 selects height, 4-7 selects width,
values are as below
Width Height
Horizontal Vertical
Hex Decimal Hex Decimal
enlargement enlargement
10 16 1 (normal) 01 1 1 (normal)
20 32 2 (2double-width) 02 2 2 (2double-height)
30 48 3 03 3 3
40 64 4 04 4 4
50 80 5 05 5 5
60 96 6 06 6 6
- 55 -
BTP-S80 Programming Manual
[Example] 1D 7B 77 02 01 00 22 40 01
Explanation
n1=0x01: Water based print bitmap is only printed when there is a printing task.
n2=0x00: water based print bitmap left justification.
n3=0x22: water based print bitmap is enlarged twicehorizontally and vertically
respectively.
n4=0x40: luminosity of water based print is 0x40.
n1=0x01: regard number 1 NV bitmap as water based print bitmap.
GS { w n
[Function] Enter\Exit water based print mode.
[Format] ASCII GS { w n
Hex 1D 7B 77 n
Decimal 29 123 119 n
[Range] 0≤n≤1
[Notes]
• n = 0:exit water based print mode
• n = 1:enter water based print mode
• This command is valid only at the beginning of each line.
• Before using this command, use water based print setting command to set water based
print parameters.
• After using this command to exit water based print mode, the printer comes back to
normal printing mode.
- 56 -
BTP-S80 Programming Manual
• zL、 zH specifies ( zL + zH × 256) × 8 dots in the vertical direction for the NV bitmap.
• This command is disabled in upside-down printing mode.
• Frequent command execution may cause damage the NV memory. Therefore, it is
recommended to write the NV memory 10 times or less a day.
• This command cancels all NV bitmaps that have already been defined by this command.
The printer can not redefine only one of several data definitions previously defined. In
this case, all data needs to be sent again.
• In the process of processing this command, the printer writes data in Flash, and stops
receiving other commands, therefore sending other commands including real-time
command to the printer is forbidden.
• NV grayscale bitmap refers to a bitmap which is defined in a non-volatile memory by FS
r and printed by FS p.
• In standard mode, this command is effective only when processed at the beginning of
the line.
• The 9 bytes <from FS~zH> is processed as command data but not data of image.
• In the first group of NV bitmaps, when any of the parameters yL,yH,zL,zH is out of the
definition range, this command is disabled.
• In groups of NV bitmaps, when the printer processes yL,yH,zL,zH out of the defined
range, it stops processing this command. At this time, NV bitmaps that haven’t been
defined are disabled (undefined), but any NV bitmaps before that are enabled.
• The d indicates the defined bitmap data. Set a corresponding bit to 1 to print the dot or 0
to not ptrint the dot.
• This command defines n as the number of a NV bitmap. Numbers rise in order from NV
bitmap 01H. Therefore, the first data group[yL yH zL zH d1...dk] is NV bitmap 01H, and
the last data group[yLyH zL zHd1...dk] is NV bitmap n. The total agrees with the number
of NV bitmaps specified by command FS p.
• A definition data of a NV bitmap consists of [yL yH zL zH d1...dk]. Therefore, when only
one NV bitmap is defined, n=1. The printer uses ([data:( yL + yH × 256)×( zL+ zH ×
256)× 8] + [header:4]) bytes of NV memory.
• When processing this command, the printer does not process other commands.
• Once a NV bitmap is defined, it is not erased by performing ESC @, reset, and power
off.
• This command performs only definition of a NV bitmap and does not perform printing.
Printing of the NV bitmap is performed by the FS p command
• Format of the greyscale bitmap: every dot line of greyscale image is indicated by four
dot lines of data. The four dot lines of data form different rank correlation of the
greyscale bitmap. The table below shows the greyscale rank of a dot and the data of the
four dot lines of data. The corresponding relation is as below:
- 57 -
BTP-S80 Programming Manual
Real greyscale Data of the first Data of the Data of the third Data of the fourth
rank dot line second dot line dot line dot line
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
[Reference] FS p
ESC c 6 n yl yh zl zh d1 d2 d3 ...d(k)
[Function] Define RAM grayscale bitmap download
[Format] ASCII ESC c 6 n yl yh zl zh d1 d2 d3 ...d(k)
Hex 1B 63 36 n yl yh zl zh d1 d2 d3 ...d(k)
Hecimal 27 99 54 n yl yh zl zh d1 d2 d3 ...d(k)
[Range] 0≤n≤7
0 ≤ d ≤ 255
( yL + yJ × 256) > 0
( zL+ zJ × 256) > 0
k = ( yL + yH × 256) × ( zL+ zH × 256) × 8
k>0
[Notes]
• n specifies the number of the defined RAM grayscale bitmap.
• yL、 yH specifies ( yL + yH × 256) × 8 dots in the horizontal direction for the NV bitmap.
• zL、 zH specifies ( zL + zH × 256) × 8 dots in the vertical direction for the NV bitmap.
• This command is disabled in upside-down printing mode.
• If any of the related parameters is out of the specified range, this command is disabled.
• If the defined RAM grayscale bitmap is beyond the max capacity of RAM128kB, this
command is disabled.
• The downloaded RAM grayscale bitmap is cleared when printer is powered off.
• Format of the greyscale bitmap: every dot line of greyscale image is indicated by four
dot lines of data. The four dot lines of data form different rank correlation of the
greyscale bitmap. The table below shows the greyscale rank of a dot and the data of the
four dot lines of data. The corresponding relation is as below:
- 58 -
BTP-S80 Programming Manual
Data of the first Data of the Data of the third Data of the fourth
Real greyscale rank
dot line second dot line dot line dot line
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
ESC c 7 n RAM
[Function] Print downloaded RAM greyscale bitmap and set print mode.
[Format] ASCII ESC c 7 n
Hex 1B 63 37 n
Hecimal 27 99 55 n
[Range] 0 ≤ n ≤ 255
(0 ≤ print mode ≤3, 0 ≤ bitmap number ≤ 7)
[Notes] • If the downloaded bitmap is not defined, the command will be ignored.
• If the downloaded bitmap is not defined, the command will be ignored.
• The command is disabled in upside-down mode.
• If the downloaded bit-image to be printed exceeds the printable area, the excess data is
not printed.
• This command print bitmap in RAM but not in FLASH, the number of bitmap is defined
by ESC c.
Choose print mode Choose bitmap number
Hex Decimal mode Hex Decimal 位图号
00 0 Normal
10 16 Double-width
00~07 00~07 00~07
20 32 Double-height
30 48 Quadruple
- 59 -
BTP-S80 Programming Manual
• This command is effective only when an auto-cutter error occurs or printer can not find
marked error.
• The printer starts processing data upon receiving this command under serial mode.
- 60 -
BTP-S80 Programming Manual
• Under parallel mode, this command can not be executed when the printer is busy.
• When the printer is disabled by ESC = (Select peripheral device), the command is still
available.
• Do not insert the command into the data sequence of 2 or more bytes.
[Relative] DLE EOT
DLE DC4 n m t
• The pulse ON time is [t × 100 ms] and the OFF time is [t × 100ms].
• When the printer is executing the command to open the cash drawer (ESC p or DEL
DC4), this command is ignored.
• The printer executes this command upon receiving it in serial interface mode.
• This command cannot be executed when the printer is busy in parallel interface mode.
• If print data includes the same character strings as this command, the printer performs
the same operation specified by this command. The user must consider this.
• This command is effective even when the printer is disabled with ESC = (Select
peripheral device).
• Do not insert the command into the data sequence of 2 or more bytes.
[Relative] ESC p
ESC 2
[Function] Select default line spacing to 1/6 inch (about 4.23mm)
[Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50
[Notes] The line spacing can be set independently in standard mode and in page mode.
[Relative] ESC 3
ESC 3 n
Decimal 27 51 n
[Range] 0 ≤ n ≤ 255
[Notes] • The line spacing can be set independently in standard mode and in page mode.
• The horizontal and vertical motion units are specified by GS P. Changing the horizontal
or vertical motion unit does not affect the current line spacing.
• In standard mode, the vertical motion unit (y) is used.
• In page mode, this command functions as follows, depending on the direction and
starting position of the printable area:
1) When the 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.
2) When the starting 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 1016 mm (40 inches). Even if a paper feed amount
of more than 1016 mm (40 inches) is set, the printer feeds the paper only 1016 mm (40
inches).
[Default] The default line spacing is approximately 4.23mm (1/6 inches).
[Relative] ESC 2, GS P
ESC = n
[Notes] When the printer is disabled, it ignores all commands except for real-time commands (DLE
EOT, DLE ENQ, DLE DC4) until it is enabled by this command.
[Default] n=1
ESC @
[Function] Initialize printer, clear data in print buffer and set print mode to the default mode when
powered on.
[Format] ASCII ESC @
Hex 1B 40
Decimal 27 64
[Notes] • The data in the receive buffer is not cleared.
• The macro definition is not cleared.
- 62 -
BTP-S80 Programming Manual
- 64 -
BTP-S80 Programming Manual
• It is possible to select two sensors to output signals. Then, if any of the sensors detects
paper end, the paper end signal can output.
• The command is available only with a parallel interface and is ignored with a serial
interface.
• If either bit 0 or bit 1 is on (value is 1), the paper near end sensor is used to output
paper end signal.
• If either bit 2 or bit 3 is on (value is 1), the paper end sensor is used to output paper end
signal
• When two sensors are disabled, the paper end sensor is used to output paper end
signal.
[Default] n = 12
ESC c 4 n
[Function] Select paper sensor(s) to stop printing
[Format] ASCII ESC c 4 n
Hex 1B 63 34 n
Decimal 27 99 52 n
[Range] 0 ≤ n ≤ 255
[Notes] n is defined as below:
Bit 0/1 Hex Decimal Function
0 00 0 Paper near end sensor disabled
0
1 01 1 Paper near end sensor enabled
0 00 0 Paper near end sensor disabled
1
1 02 2 Paper near end sensor enabled
2-7 Undefined
When either bit 0 or 1 is on (value is 1), paper near-end sensor is enabled, and when the
printer detects paper near end, it stops printing after completing the current task.
[Default] n=0
ESC c 5 n
ESC p m t1 t2
[Function] Output the cash drawer control pulse to specified connector pin.
[Format] ASCII ESC p m t1 t2
Hex 1B 70 m t1 t2
Decimal 27 112 m t1 t2
[Range] 0 ≤ m ≤ 1, 48≤m ≤ 49
0 ≤ t1 ≤ 255, 0≤ t2 ≤ 255
[Notes] M selects drawer kick-out connector pin as follows:
m Connector pin
• The pulse ON time is [t1 × 2 ms] and the OFF time is [t2 × 2 ms].
• If t2 < t1, the OFF time is [t1 × 2 ms].
[Relative] DLE DC4
GS ( A pL pH n m
- 66 -
BTP-S80 Programming Manual
GS
[Notes①] • This command is enabled only when processed at the beginning of the line.
[Notes②] • This command is enabled only when processed at the beginningg of the line.
• m = 0, 48, 1, 49, printer cuts paper directly.
• When n = 66, the printer feeds [ the distance between print position and cutter + n
×(vertical motion unit)] and cut paper.
• The horizontal and vertical motion units are specified by GS P.
• Paper feed amount is calculated by vertical motion unit.
GS ^ r t m
- 67 -
BTP-S80 Programming Manual
[Format] ASCII GS ^ r t m
Hex 1D 5E r t m
Decimal 29 94 r t m
[Range] 0 ≤ r ≤ 255
0 ≤ t ≤ 255
0 ≤ m ≤ 1,
[Notes] • r specifies times of macro definition.
• t specifies waiting time of macro execution.
• m specifies the mode of macro execution.
• When the LSB of m is 0, the interval time of macro is t × 100 ms, and the macro can be
executed r times.
• When the LSB of m is 1, the printer waits for t × 100 ms and does not execute macro
definition until user presses the Feed button with LED flashing. The process can
continue r times.
• The waiting time is t × 100 ms.
• If receiving this command during macro definition, the printer will stop macro definition
and the macro which is defined will be cleared.
• If the macro is undefined or r is 0, the command is disabled.
• In the process of macro execution (m = 1), the printer cannot feed by Feed button.
[Relative] GS :
- 68 -
BTP-S80 Programming Manual
- 69 -
BTP-S80 Programming Manual
Appendix
Appendix A: Code128
A.1 Description of the CODE128
In CODE128 bar code system, it is possible to represent 128 ASCII characters, the one hundred
numbers from 00 to 99 and some special characters with three code sets: A, B and C. Each code set is
used for representing the following characters:
• Code set A: ASCII characters 00H to 5FH
• Code set B: ASCII characters 20H to 7FH
• Code set C: 100 numerals from 00 to 99
The following special characters are also available in CODE128:
• SHIFT characters
In code set A, the character just after SHIFT is processed as a character for code set B. In code set B,
the character just after SHIFT is processed as a character for code set A. SHIFT characters cannot be
used in code set C.
• Code set selection character (CODE A, CODE B, CODE C).
This character switches the following code set to code set A, B, or C.
• Function character (FNC1, FNC2, FNC3, FNC4)
The usage of function characters depends on the application software. In code set C, only FNC1 is
available.
- 70 -
BTP-S80 Programming Manual
- 71 -
BTP-S80 Programming Manual
Characters in CODE B:
Transmit Data Transmit Data Transmit Data
Character Character Character
Hex Decimal Hex Decimal Hex Decimal
SP 20 32 H 48 72 p 70 112
! 21 33 I 49 73 q 71 113
" 22 34 J 4A 74 r 72 114
# 23 35 K 4B 75 s 73 115
$ 24 36 L 4C 76 t 74 116
% 25 37 M 4D 77 u 75 117
& 26 38 N 4E 78 v 76 118
' 27 39 O 4F 79 w 77 119
( 28 40 P 50 80 x 78 120
) 29 41 Q 51 81 y 79 121
* 2A 42 R 52 82 z 7A 122
+ 2B 43 S 53 83 { 7B,7B 123,123
, 2C 44 T 54 84 | 7C 124
- 2D 45 U 55 85 } 7D 125
. 2E 46 V 56 86 — 7E 126
/ 2F 47 W 57 87 DEL 7F 127
0 30 48 X 58 88 FNC1 7B,31 123,49
1 31 49 Y 59 89 FNC2 7B,32 123,50
2 32 50 Z 5A 90 FNC3 7B,33 123,51
3 33 51 [ 5B 91 FNC4 7B,34 123,52
4 34 52 \ 5C 92 SHIFT 7B,53 123,83
5 35 53 ] 5D 93 CODEA 7B,41 123,65
6 36 54 ^ 5E 94 CODEC 7B,43 123,67
7 37 55 _ 5F 95
8 38 56 ` 60 96
9 39 57 a 61 97
: 3A 58 b 62 98
; 3B 59 c 63 99
< 3C 60 d 64 100
= 3D 61 e 65 101
> 3E 62 f 66 102
? 3F 63 g 67 103
@ 40 64 H 68 104
A 41 65 i 69 105
B 42 66 j 6A 106
C 43 67 k 6B 107
D 44 68 l 6C 108
E 45 69 m 6D 109
F 46 70 n 6E 110
G 47 71 o 6F 111
Characters in CODE C:
Transmit Data Transmit Data Transmit Data
Character Character Character
Hex Decimal Hex Decimal Hex Decimal
00 00 0 40 28 40 80 50 80
01 01 1 41 29 41 81 51 81
02 02 2 42 2A 42 82 52 82
03 03 3 43 2B 43 83 53 83
04 04 4 44 2C 44 84 54 84
05 05 5 45 2D 45 85 55 85
06 06 6 46 2E 46 86 56 86
07 07 7 47 2F 47 87 57 87
08 08 8 48 30 48 88 58 88
09 09 9 49 31 49 89 59 89
- 72 -
BTP-S80 Programming Manual
10 0A 10 50 32 50 90 5A 90
11 0B 11 51 33 51 91 5B 91
12 0C 12 52 34 52 92 5C 92
13 0D 13 53 35 53 93 5D 93
14 0E 14 54 36 54 94 5E 94
15 0F 15 55 37 55 95 5F 95
16 10 16 56 38 56 96 60 96
17 11 17 57 39 57 97 61 97
18 12 18 58 3A 58 98 62 98
19 13 19 59 3B 59 99 63 99
20 14 20 60 3C 60 FNC1 7B,31 123,49
21 15 21 61 3D 61 CODEA 7B,41 123,65
22 16 22 62 3E 62 CODEB 7B,42 123,66
23 17 23 63 3F 63
24 18 24 64 40 64
25 19 25 65 41 65
26 1A 26 66 42 66
27 1B 27 67 43 67
28 1C 28 68 44 68
29 1D 29 69 45 69
30 1E 30 70 46 70
31 1F 31 71 47 71
32 20 32 72 48 72
33 21 33 73 49 73
34 22 34 74 4A 74
35 23 35 75 4B 75
36 24 36 76 4C 76
37 25 37 77 4D 77
38 26 38 78 4E 78
39 27 39 79 4F 79
- 73 -
BTP-S80 Programming Manual
The printer operates in two print modes: standard mode and page mode. In standard mode, the printer
prints and feeds paper each time it receives print data or paper feed commands. In page mode, all the
received print data and paper feed commands are processed in the specified memory, and the printer
executes no operation. All the data in the memory is then printed when an ESC FF or FF command is
received.
For example, when the printer receives the data "ABCDEF" <LF> in standard mode, it prints "ABCDEF"
and feeds the paper by one line. In page mode, "ABCDEF" is written to the specified printing area in
memory, and the position in memory for the next print data is shifted by one line.
The ESC L command puts the printer into page mode, and all commands received thereafter are
processed in page mode. Executing an ESC FF command prints the received data collectively, and
executing an FF command restores the printer to standard mode after the received data is printed
collectively. Executing an ESC S command restores the printer to standard mode without printing the
received data in page mode; the received data is cleared from memory instead.
The available commands and parameters are the same for both standard and page modes. However,
these values can be set independently in each mode for the ESC SP, ESC 2, ESC 3, and FS S
commands. For these commands, different settings can be stored for each mode.
B.3 Formatting of Print Data in the Printable Area
1) The printable area is set by ESC W. If all printing and feeding operations are complete before the
printer receives the ESC W command, the left side (as you face the printer) is taken as the origin (x0,
y0) of the printable area. The printable rectangular area is defined by the length (dx dots) extending
from and including the origin (x0, y0) in the x direction (perpendicular to the paper feed direction),
and by the length (dy dots) in the y direction (paper feed direction). (If the ESC W command is not
used, the printable area remains the default value.)
2) When the printer receives print data after ESC W sets the printable area and ESC T sets the printing
direction, the print data is formatted within the printable area so that point A in Figure B.2 is at the
beginning of the printable area as a default value. (When a character is printed, point A is the
baseline.) Print data containing downloaded bit images or bar codes is formatted so that the bottom
point of the left side of the image data (point B in Figure B.3) is aligned with the baseline.
3) If the print data (including character spacing) exceeds the printable area before the printer receives
- 74 -
BTP-S80 Programming Manual
a command (e.g., LF or ESC J) that includes line feeding, a line feed is executed automatically
within the printable area. The print position, therefore, moves to the beginning of the next line. The
line feed amount depends on the values set by commands (such as ESC 2 and ESC 3).
4) The default value of the line spacing is set to 1/6 inch and corresponds to 31 dots in the vertical
direction. If print data for the next line contains extended characters that are higher than
double-height characters, bit images taking up two or more lines, or bar codes higher than normal
characters, the amount of line feeding may be insufficient, resulting in overlapping of the characters'
higher-order dots with the previous line. To avoid this, increase the amount of line spacing.
Example
When printing a downloaded bit image of six bytes in the vertical direction, use the following formula:
{number of vertical dots (8×6) - number of dots for feeding at the beginning of the printable area (24)} ×
vertical motion unit (203/203) = 24
Therefore, 24 dots are required for feeding.
Use the following commands:
ESC W xL, xH, yL, yH, dxL, dxH, dyL, dyH
ESC T n
ESC 3 24 Set line spacing to be added.
LF
GS / 1
ESC 2 Reset the line spacing to 1/6 inch.
- 75 -
BTP-S80 Programming Manual
- 76 -
BTP-S80 Programming Manual
- 77 -
BTP-S80 Programming Manual
- 78 -