Cashino PTP-III User manual

1
80mm mini portable thermal printer
PTP-III TECHNICAL MANUAL

2
Table of Contents
1.Command List................................................................................................................4
2.Control Commands ........................................................................................................5
HT.....................................................................................................................................5
LF......................................................................................................................................5
CR.....................................................................................................................................5
ESC SP n...........................................................................................................................6
ESC ! n..............................................................................................................................6
ESC $ nL nH.....................................................................................................................6
ESC % n............................................................................................................................7
ESC & y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(y xk)]....................................................7
ESC m nL nH d1...dk.....................................................................................................9
ESC - n............................................................................................................................12
ESC 2 ..............................................................................................................................12
ESC 3 n ...........................................................................................................................12
ESC ? n ...........................................................................................................................13
ESC @.............................................................................................................................13
ESC D n1...nk NUL ........................................................................................................13
ESC E n...........................................................................................................................14
ESC G n ..........................................................................................................................15
ESC J n............................................................................................................................15
ESC R n...........................................................................................................................15
ESC M n.....................................................................................................................16
ESC V n...........................................................................................................................16
ESC a n ...........................................................................................................................17
ESC d n ...........................................................................................................................17
ESC t n............................................................................................................................18
ESC { n ...........................................................................................................................19
FS p n m..........................................................................................................................19
FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n..............................................20
GS ! n..............................................................................................................................23
GS x y d1...d(x y 8)................................................................................................24
GS / m .............................................................................................................................25
GS B n.............................................................................................................................26
GS f n..............................................................................................................................27
GS H n.............................................................................................................................27
GS L nL nH.....................................................................................................................27
GS h n .............................................................................................................................28
①GS k m d1...dk NUL②GS k m n d1...dn ................................................................28
①GS k m v r d1...dk NUL②GS k m v r nLnH d1...dn .............................................32
GS x n .............................................................................................................................32
GS v 0 m xLxH yL yH d1....dk......................................................................................32
GS w n.............................................................................................................................34

3
GS ‘ .................................................................................................................................34
FS ! n...............................................................................................................................35
FS &................................................................................................................................36
FS ...................................................................................................................................36
ESC = n...........................................................................................................................36
FS 2 c1 c2 d1...dk............................................................................................................37
ESC c 5 n(for buttons).....................................................................................................37
DC2 T..............................................................................................................................37

4
1.Command List
Type
Command
Name
Print
Command
LF
Print and line feed
CR
Print and carriage return
HT
JMP to the next TAB position
ESC D n
Set horizontal tab positions
ESC J n
Print and Feed n dots paper
ESC d n
Print and Feed n lines
Line spacing
Command
ESC 2
Select default line spacing
ESC 3 n
Set line spacing
ESC a n
Select justification
ESC $ nL nH
Set absolute print position
Character
Command
ESC ! n
Select print mode(s)
ESC M
Select characters font
GS ! n
Set or Cancle the double width and height
GS B
Turn white/black reverse printing mode
ESC V n
Turn 90°clockwise rotation mode on/off
ESC G n
Turn on/off double-strike mode
ESC E n
Set or Cancle bold font
ESC SP n
Set the space between chars
ESC - n
Set the underline dots(0,1,2)
ESC % n
Select/Cancel user-defined characters
ESC & n
Define user-defined characters
ESC ? n
Cancle user-defined characters
FS 2
Define user-defined Kanji characters
Bit Image
Command
ESC *
Select bit-image mode
GS *
Define downloaded bit image
GS /
Print downloaded bit image
GS ‘
Print line section on a horizontal
FS p n m
Print NV bitmap
FS q n
Define NV bitmap
Init Command
ESC @
Initialize printer
Status
Command
GS r n
Transmit status
GS a n
Enable/Disable ASB
Bar Code
Command
GS H
Select printing position of human readable characters
GS h
Set bar code height
GS w
Set bar code width
GS f
Select font for HRI characters
GS k
Print bar code
GS k
Print QR code

5
2.Control Commands
HT
[Name] Horizontal tab
[Format] ASCII HT
Hex 09
Decimal 9
[Description] Moves the print position to the next horizontal tab position.
[Notes]
This command is ignored unless the next horizontal tab position has
been set.
If the next horizontal tab position exceeds the printing area, the printer
sets the printing position to [printing area width + 1].
Horizontal tab positions are set with ESC D.
If this command is received when the printing position is at [printing
area width + 1], the printer executes print buffer-full printing of the
current line and horizontal tab processing from the beginning of the
next line.
[Reference] ESC D
LF
[Name] Print and line feed
[Format] ASCII LF
Hex 0A
Decimal 10
[Description] Prints the data in the print buffer and feeds one line, based on the
current line spacing.
[Note] This command sets the print position to the beginning of the line.
[Reference] ESC 2, ESC 3
CR
[Name] Print and carriage return
[Format] ASCII CR
Hex 0D
Decimal 13
[Description] When automatic line feed is enabled, this command functions the
same as LF; when automatic line feed is disabled, this command is
ignored.

6
[Notes] This command line feed is ignored with a serial interface model.
Sets the print starting position to the beginning of the line.
[Reference] LF
ESC SPn
[Name] Set right-side character spacing
[Format] ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n
[Range] 0 n 255
[Description] Sets the character spacing for the right side of the character to [n×
0.125 mm (n×0.0049”)].
[Notes] The right-side character spacing for double-width mode is twice the
normal value. When characters are enlarged, the right-side character
spacing is n times normal value.
This command does not affect the setting of Kanji characters
This command sets values independently in standard mode.
[Default] n = 0
ESC ! n
[Name] Select print mode(s)
[Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n
[Range] 0 n 255
[Description] Selects print mode(s) using n as follows:
ESC $ nL nH
[Name] Set absolute print position
[Format] ASCII ESC $ nL nH
Hex 1B 24 nL nH
Decimal 27 36 nL nH
[Range] 0 nL 255
0 nH 255
[Description] Sets the distance from the beginning of the line to the position at
which subsequent characters are to be printed.
The distance from the beginning of the line to the print position is
[(nL + nH×256)×0.125 mm].
[Notes] Settings outside the specified printable area are ignored.

7
In standard mode, the horizontal motion unit (x) is used.
[Reference] ESC \, GS $, GS \
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Character Font A (12×24).
On
01
1
Character Font B (9×17).
1
Off
00
0
Turn white/black reverse printing mode not selected.
On
02
2
Turn white/black reverse printing mode selected.
2
Off
00
0
Turn on/off upside-down printing mode not selected.
On
04
4
Turn on/off upside-down printing mode selected.
3
Off
00
0
Emphasized mode not selected.
On
08
8
Emphasized mode selected.
4
Off
00
0
Double-height mode not selected.
On
10
16
Double-height mode selected.
5
Off
00
0
Double-width mode not selected.
On
20
32
Double-width mode selected.
6
Off
00
0
Turn Deleteline mode on/off not selected.
On
40
64
Turn Deleteline mode on/off selected.
7
-
-
-
Undefined.
ESC % n
[Name] Select/cancel user-defined character set
[Format] ASCII ESC% n
Hex 1B 25 n
Decimal 27 37 n
[Range] 0 n 255
[Description] Selects or cancels the user-defined character set.
When the LSB of n is 0, the user-defined character set is canceled.
When the LSB of n is 1, the user-defined character set is selected.
[Notes] When the user-defined character set is canceled, the built-in
character set is automatically selected.
n is available only for the least significant bit.
[Default] n = 0
[Reference] ESC &, ESC ?
ESC & y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(y xk)]
[Name] Define user-defined characters
[Format] ASCII ESC &y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(y
xk)]
Hex 1B 26 y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(y

8
xk)]
Decimal 27 38 y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(y
xk)]
[Range] y = 3
32 c1 c2 126
0 x 12 (when Font A (12×24) is selected)
0 d1 ... d(y×xk) 255
[Description] Defines user-defined characters.
y specifies the number of bytes in the vertical direction.
c1 specifies the beginning character code for the definition, and c2
specifies the final code.
x specifies the number of dots in the horizontal direction.
[Notes] The allowable character code range is from ASCII code <20>H to
<7E>H (95 characters).
It is possible to define multiple characters for consecutive character
codes. If only one character is desired, use c1 = c2.
d is the dot data for the characters. The dot pattern is in the
horizontal direction from the left side. Any remaining dots on the right
side are blank.
The data to define user-defined characters is (y×x) bytes.
Set a corresponding bit to 1 to print a dot or 0 not to print a dot.
This command can define different user-defined character patterns
for each font. To select a font, use ESC !
User-defined characters and a downloaded bit image cannot be
defined simultaneously. When this command is executed, the
downloaded bit image is cleared.
The user-defined character definition is cleared when:
1) ESC @ is executed.
2) GS is executed.
3) ESC ? is executed.
4) The power is turned off.
[Default] The internal character set
[Reference] ESC %, ESC ?
[Example]
When Font A (12×24) is selected.

9
d1= <0F>H d4 = <30>H d7 = <40>H . . . .
d2 = <03>H d5 = <80>H d8 = <40>H . . . .
d3 = <00>H d6 = <00>H d9 = <20>H . . . .
ESC m nL nH d1...dk
[Name] Select bit-image mode
[Format] ASCII ESC m nL nH d1...dk
Hex 1B 2A m nL nH d1...dk
Decimal 27 42 m nL nH d1...dk
[Range] m = 0, 1, 32, 33
0 nL 255
0 nH 3

10
0 d 255
[Description] Selects a bit-image mode using m for the number of dots specified by
nL and nH, as follows:
m
Mode
Vertical Direction
Horizontal Direction
Number
of
Dots
Dot Density
Dot
Density
Number of Data
(K)
0
8-dot single-density
8
67.7 dpi
101.6 dpi
nL + nH ×256
1
8-dot double-density
8
67.7 dpi
203.2 dpi
nL + nH ×256
32
24-dot single-density
24
203.2 dpi
101.6 dpi
(nL + nH×256)3
33
24-dot double-density
24
203.2 dpi
203.2 dpi
(nL + nH ×256)3
[Notes] If the value of m is out of the specified range, nL and nH the data
following are processed as normal data.
The nL and nH indicate the number of dots in the bit image in the
horizontal direction. The number of dots is calculated by nL + nH
256.
If the bit-image data input exceeds the number of dots to be printed
on a line, the excess data is ignored.
d indicates the bit-image data. Set a corresponding bit to 1 to print a
dot or to 0 not to print a dot.
After printing a bit image, the printer returns to normal data
processing mode.
This command is not affected by print modes (emphasized,
double-strike, underline, character size, or white/black reverse
printing), except upside-down printing mode.
The relationship between the image data and the dots to be printed is
described in Figure 3.11.3.
When 8-dot bit image is selected:

11
3.11.3
When 24-dot bit image is selected:

12
3.11.3
ESC - n
[Name] Turn underline mode on/off
[Format] ASCII ESC -n
Hex 1B 2D n
Decimal 27 45 n
[Range] 0 n 2, 48 n 50
[Description] Turns underline mode on or off, based on the following values n:
n
Function
0, 48
Turns off underline mode
1, 49
Turns on underline mode (1 dot thick)
2, 50
Turns on underline mode (2 dots thick)
[Notes] The printer can underline all characters (including right-side character
spacing), but cannot underline the space set by HT.
The printer cannot underline 90clockwise rotated characters and
white/black inverted characters.
When underline mode is turned off by setting the value of n to 0 or 48,
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
[Reference] ESC !
ESC 2
[Name] Select default line spacing
[Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50
[Description] Selects 3.75 mm (30×0.125 mm) line spacing.
[Notes] The line spacing can be set independently in standard mode.
[Reference] ESC 3
ESC 3 n
[Name] Set line spacing

13
[Format] ASCII ESC 3 n
Hex 1B 33 n
Decimal 27 51 n
[Range] 0 n 255
[Description] Sets the line spacing to [n×0.125 mm].
[Notes] The line spacing can be set independently in standard mode.
In standard mode, the vertical motion unit (y) is used.
[Default] n = 30
[Reference] ESC 2
ESC ? n
[Name] Cancel user-defined characters
[Format] ASCII ESC ? n
Hex 1B 3F n
Decimal 27 63 n
[Range] 32 n 126
[Description] Cancels user-defined characters.
[Notes] This command cancels the patterns defined for the character codes
specified by n. After the user-defined characters are canceled, the
corresponding patterns for the internal characters are printed.
This command deletes the pattern defined for the specified code in
the font selected by ESC !.
If a user-defined characters have not been defined, the printer
ignores this command.
[Reference] ESC &, ESC %
ESC @
[Name] Initialize printer
[Format] ASCII ESC @
Hex 1B 40
Decimal 27 64
[Description] Clears the data in the print buffer and resets the printer mode to the
mode that was in effect when the power was turned on.
[Notes] The DIP switch settings are not checked again.
The data in the receive buffer is not cleared.
ESC D n1...nk NUL
[Name] Set horizontal tab positions
[Format] ASCII ESC D n1...nk NUL

14
Hex 1B 44 n1...nk 00
Decimal 27 68 n1...nk 0
[Range] 1 n 255
0 k 32
[Description] Sets horizontal tab positions.
n specifies the column number for setting a horizontal tab position
from the beginning of the line.
k indicates the total number of horizontal tab positions to be set.
[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.
The previously specified horizontal tab positions do not change, even
if the character width changes.
The character width is memorized for each standard mode.
[Default] The default tab positions are at intervals of 8 characters (columns 9,
17, 25,...) for Font A (12×24).
[Reference] HT
ESC E n
[Name] Turn emphasized mode on/off
[Format] ASCII ESC En
Hex 1B 45 n
Decimal 27 69 n
[Range] 0 n 255
[Description] Turns emphasized mode on or off
When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on.
[Notes] Only the least significant bit of n is enabled.
This command and ESC ! turn on and off emphasized mode in the
same way. Be careful when this command is used with ESC !.
[Default] n = 0
[Reference] ESC !

15
ESC G n
[Name] Turn on/off double-strike mode
[Format] ASCII ESC G n
Hex 1B 47 n
Decimal 27 71 n
[Range] 0 n 255
[Description] Turns double-strike mode on or off.
When the LSB of n is 0, double-strike mode is turned off.
When the LSB of n is 1, double-strike mode is turned on.
[Notes] Only the lowest bit of n is enabled.
Printer output is the same in double-strike mode and in emphasized
mode.
[Default] n = 0
[Reference] ESC E
ESC J n
[Name] Print and feed paper
[Format] ASCII ESC J n
Hex 1B 4A n
Decimal 27 74 n
[Range] 0 n 255
[Description] Prints the data in the print buffer and feeds the paper [n×0.125 mm
(0.0049”)].
[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 does not affect the
values set by ESC 2 or ESC 3.
In standard mode, the printer uses the vertical motion unit (y).
ESC R n
[Name] Select an international character set
[Format] ASCII ESC R n
Hex 1B 52 n
Decimal 27 82 n
[Range] 0 n 15
[Description] Selects international character set n from the following table:
n
Character set
0
U.S.A
1
France

16
2
Germany
3
U.K
4
Denmark I
5
Sweden
6
Italy
7
Spain I
8
Japan
9
Norway
10
Denmark II
11
Spain II
12
Latin America
13
Korea
14
Slovenia/Croatia
15
China
[Default] n = 0
ESC M n
[Name] Select character font
[Format] ASCII ESC M n
Hex 1B 4D n
Decimal 27 77 n
[Range] n
[Description] Selects the character font.
n
Function
0
Simplified Chinese character font(12)
1
Simplified Chinese character font(9)
[Notes] ESC 2 can also select character font types.However the setting of
the last received command is effective.
[Reference] ESC ! ,ESC @
ESC V n
[Name] Turn 90clockwise rotation mode on/off
[Format] ASCII ESC V n
Hex 1B 56 n
Decimal 27 86 n
[Range] 0 n 1, 48 n 49
[Description] Turns 90clockwise rotation mode on/off
n is used as follows:
n
Function
0,48
Turns off 90clockwise rotation mode

17
1,49
Turns on 90clockwise rotation mode
[Notes] This command affects printing in standard mode. However, the
setting is always effective.
When underline mode is turned on, the printer does not underline 90
clockwise-rotated characters.
Double-width and double-height commands in 90rotation mode
enlarge characters in the opposite directions from double-height and
double- width commands in normal mode.
[Default] n = 0
[Reference] ESC !, ESC
ESC a n
[Name] Select justification
[Format] ASCII ESC a n
Hex 1B 61 n
Decimal 27 97 n
[Range] 0 n 2, 48 n 50
[Description] Aligns all the data in one line to the specified position.
n selects the justification as follows:
n
Justification
0,48
Left justification
1, 49
Centering
2, 50
Right justification
[Notes] The command is enabled only when processed at the beginning of
the line in standard mode.
This command executes justification in the printing area.
This command justifies the space area according to HT, ESC $ .
[Default] n = 0
[Example]
Left justification
Centering
Right justification
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
ESC d n
[Name] Print and feed n lines
[Format] ASCII ESC d n
Hex 1B 64 n
Decimal 27 100 n

18
[Range] 0 n 255
[Description] Prints the data in the print buffer and feeds n lines.
[Notes] 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 1016 mm (40 inches). If the
paper feed amount (n line spacing) of more than 1016 mm (40
inches) is specified, the printer feeds the paper only 1016 mm (40
inches).
[Reference] ESC 2, ESC 3
ESC t n
[Name] Select character code table
[Format] ASCII ESC t n
Hex 1B 74 n
Decimal 27 116 n
[Range] 0 n 5, 16 n 19, n = 255
[Description] Selects page n from the character code table.
N
Code Page
N
Code Page
0
CP437 [U.S.A., Standard Europe]
26
Thai
1
Katakana
27
CP720[Arabic]
2
CP850 [Multilingual]
28
CP855
3
CP860 [Portuguese]
29
CP857[Turkish]
4
CP863 [Canadian-French]
30
WCP1250[Central Eurpoe]
5
CP865 [Nordic]
31
CP775
6
WCP1251 [Cyrillic]
32
WCP1254[Turkish]
7
CP866 Cyrilliec #2
33
WCP1255[Hebrew]
8
MIK[Cyrillic /Bulgarian]
34
WCP1256[Arabic]
9
CP755 [East Europe,Latvian 2]
35
WCP1258[Vietnam]
10
Iran
36
ISO-8859-2[Latin 2]
11
reserve
37
ISO-8859-3[Latin 3]
12
reserve
38
ISO-8859-4[Baltic]
13
reserve
39
ISO-8859-5[Cyrillic]
14
reserve
40
ISO-8859-6[Arabic]
15
CP862 [Hebrew]
41
ISO-8859-7[Greek]
16
WCP1252 Latin I
42
ISO-8859-8[Hebrew]
17
WCP1253 [Greek]
43
ISO-8859-9[Turkish]
18
CP852 [Latina 2]
44
ISO-8859-15 [Latin 3]
19
CP858 Multilingual Latin Ⅰ+Euro)
45
Thai2
20
Iran II
46
CP856
21
Latvian
47
Cp874

19
22
CP864 [Arabic]
23
ISO-8859-1 [West Europe]
24
CP737 [Greek]
25
WCP1257 [Baltic]
[Default] n = 0
[Reference] Character Code Tables
ESC { n
[Name] Turns on/off upside-down printing mode
[Format] ASCII ESC { n
Hex 1B 7B n
Decimal 27 123 n
[Range] 0 n 255
[Description] Turns upside-down printing mode on or off.
When the LSB of n is 0, upside-down printing mode is turned off.
When the LSBof n is 1, upside-down printing mode is turned on.
[Notes] Only the lowest bit of n is valid.
This command is enabled only when processed at the beginning of a
line in standard mode.
In upside-down printing mode, the printer rotates the line to be
printed by 180and then prints it.
[Default] n = 0
[Example]
FS p n m
[Name] Print NV bit image
[Format] ASCII FS p n m
Hex 1C 70 n m
Decimal 28 112 n m

20
[Range] 1 n 255
0 m 3 , 48 m 51
[Description] Prints NV bit image n using the mode specified by m.
m
Mode
Vertical Dot Density
Horizontal Dot Density
0,48
Normal
203.2 dpi
203.2 dpi
1,49
Double-width
203.2 dpi
101.6 dpi
2,50
Double-height
101.6 dpi
203.2 dpi
3,51
Quadruple
101.6 dpi
101.6 dpi
n is the number of the NV bit image (defined using the FS q
command).
m specifies the bit image mode.
[Detail] NV bit image is a bit image defined in non-volatile memory by
FS q and printed by FS p.
This command is not effective when the specified NV bit image has
not been defined.
In standard mode, this command is effective only when there is no
data in the print buffer.
This command is not affected by print modes (emphasized,
underline, character size, white/black reverse printing, or 90rotated
characters, etc.), except upside-down printing mode.
If the downloaded bit-image to be printed exceeds one line, the
excess data is not printed.
This command feeds dots (for the height n of the NV bit image) in
normal and double-width modes, and (for the height n 2 of the NV
bit image) in doubleheight and quadruple modes, regardless of the
line spacing specified by ESC 2 or ESC 3.
After printing the bit image, this command sets the print position to
the beginning of the line and processes the data that follows as
normal data.
[References] ESC , FS q, GS /
FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n
[Name] Define NV bit image
[Format] ASCII FS q n [xL xH yL yH d1...dk]1...[ xL xH yL yH
d1...dk]n
Hex 1C 71 n [xL xH yL yH d1...dk]1...[ xL xH yL yH
d1...dk]n
Decimal 28 113 n [xL xH yL yH d1...dk]1...[ xL xH yL yH
d1...dk]n
[Range] 1 n 255
0 xL 255
0 xH 3 (when 1 (xL xH 256) 1023
Other manuals for PTP-III
1
Table of contents
Other Cashino Printer manuals

Cashino
Cashino KP-220 User manual

Cashino
Cashino EP-261B User manual

Cashino
Cashino CSN-58III User manual

Cashino
Cashino PTP-III User manual

Cashino
Cashino CSN-A1K User manual

Cashino
Cashino PTP-II User manual

Cashino
Cashino CSN-A4L User manual

Cashino
Cashino CSN-A3 User manual

Cashino
Cashino KP-628E User manual

Cashino
Cashino CSN-A2L User manual

Cashino
Cashino PDM-02 User manual

Cashino
Cashino CSN-A2 Series User manual

Cashino
Cashino CSN-80V User manual

Cashino
Cashino CSN-A5 User manual

Cashino
Cashino KMP-II User manual

Cashino
Cashino CSN-A1X User manual

Cashino
Cashino POS80V User manual

Cashino
Cashino EP-260C-24V User manual

Cashino
Cashino PDM-02 User manual