Cashino PDM-02 User manual

PDM-02 Technical Manual
1
58mm Portable Dot matrix
Printer
PDM-02
Technical
M
a
nu
al

PDM-02 Technical Manual
2
一、Instruction .....................................................................................................................3
1.1 Instruction List.......................................................................................................3
1.2 Detail instruction ..................................................................................................4
① Printing and paper feed instruction..................................................................4
Printing and paper feed ...................................................................4
Enter ................................................................................................4
Printing and paper feed N dots .......................................................5
Printing and paper feed N lines.......................................................5
②Print setup instructions ......................................................................................6
Set the line spacing for n points ......................................................6
Set default for line spacing ..............................................................6
Set the print position........................................................................7
Set the left margin ...........................................................................7
Set the character print mode...........................................................8
Set the character size.................................................................... 9
Set, remove the white print ........................................................... 10
Set, remove the underline .............................................................11
Set up the, remove clockwise rotate 90 ° to print .........................11
Set the print alignment ..................................................................12
Set the Chinese character pattern ................................................13
Cancel the Chinese character pattern ..........................................13
Choose or cancel the user custom character set .........................13
Define the user custom character set ...........................................14
Cancel the user-defined character ................................................16
Choose international character sets .............................................16
Select the character code page ....................................................17
③TAB order .........................................................................................................19
Horizontal TAB...............................................................................19
④One dimensional barcode printing instructions ...............................................21
Set the barcode readable characters (HRI) print position ............21
Set a dimensional barcode height.................................................22
Set a dimensional barcode width ..................................................22
one-dimensional bar code Printing ...............................................23
⑤Status inquiry instruction..................................................................................28
Transfer state ................................................................................28
Real-time transmission state .........................................................29
⑥Other instruction ..............................................................................................31
Initialization printer ........................................................................31
Print self-test page ........................................................................32

PDM-02 Technical Manual
3
一、Instruction
1.1 Instruction List
LF Printing and paper feed
Instructions of Print and
paper feed
CR Enter
ESC J Printing and paper feed N dots
ESC d Printing and paper feed N lines
ESC 3 Set the line spacing for N points
Print setup instructions
ESC 2 Set the line spacing for default
ESC $ Set the print position
GS L nL nH Set the left Quantity of blank
ESC ! Set the character print mode
GS ! n Set the character size
GS B n Set, remove the white print
ESC - n Set, remove the underline
ESC V n Set, remove 90 ° rotation printing
ESC a Set the print alignment
FS & Set the Chinese character pattern
FS . Cancel the Chinese character pattern
ESC % n Choice, cancel the user-defined
character set
ESC & Define the user custom character set
ESC ? n Cancel the user-defined character
ESC R n Choose international character sets
ESC t n Select the character code page
ESC * Graphics vertical modulus data filling
Graphics printed
instructions
GS v 0 Image level take modulus according to
print
GS * Define the bitmap
GS / m Printed under the bitmap
FS q Define the NV bitmap
FS p n m Print NV bitmap
HT Horizontal tab
TAB order ESC D Set up horizontal TAB
GS H Set a dimensional barcode readable
characters (HRI) print position
One dimensional barcode
printing instructions

PDM-02 Technical Manual
4
GS h Set a dimensional barcode height
GS w Set a dimensional barcode width
GS k Print one dimension code
GS k Print the qr code
Qr code printed instructions
Print the line segment Curve printing the
instruction
GS r n transfer state
Status inquiry instruction
DLE EOT n Real-time transmission state
ESC @ Initialization printer
Other instruction
DC2 T Print self-test page
1.2 Detail instruction
① Printing and paper feed instruction
Printing and paper feed
Command
Name
Printing and paper feed
Command
Code
ASCII :LF
decimal :10
hexadecimal :0A
Functional
description
Will be printed in the cache contents of print, and then based on the
current line spacing is set into the paper a line, and adjust the print
position to the next line starting position
Parameter
range
not
default not
Support
model
all
attention not
Use example
not
Enter
Command
Name
Enter
Command
code
ASCII :CR
decimal :13
hexadecimal :0D

PDM-02 Technical Manual
5
Functional
description
Print position adjustment to starting position, the bank is not a newline
Parameter
range
not
default not
Support
model
All
attention After return instruction, the new print data with bitwise "or" cover to print
the original data in the cache
Use example
not
Printing and paper feed N dots
Command
Name
Printing and paper feed N dots
Command
Code
ASCII :ESC J n
decimal :27 74 n
Hexadecimal :1B 4A n
Functional
description
Will be printed in the cache contents of print paper n points
Parameter
range
0
≤
n
≤
255
default not
Support
model
All
attention
When printing the cache is empty, only feed n points
After the instruction execution, print position moves to the next line of
the starting position
Use example
1b 40 30 31 32 1b 4a 10
Printing and paper feed N lines
Command
Name
Printing and paper feed N lines
Command
Code
ASCII :ESC d n
Decimal :27 100 n
Hexadecimal :1B 64 n
Functional
description
Will be printed in the cache contents of print paper n line
Parameter
range
0
≤
n
≤
255
default not

PDM-02 Technical Manual
6
Support
model
All
attention The command to set the print starting position is the starting point
Use example
1b 40 30 31 32 1b 64 01
②Print setup instructions
Set the line spacing for n points
Command
Name
Set the line spacing for n points
Command
Code
ASCII :ESC 3 n
Decimal :27 51 n
Hexadecimal :1B 33 n
Functional
description
Set the line spacing for n points
Parameter
range
0
≤
n
≤
255
default n = 33
Support
model
All
attention
Line spacing indicated as follows:
If set the line spacing is less than the maximum character height in a
line, so the bank line spacing is equal to the maximum character level
If the ESC 2, ESC @, reset the printer, printer, power line spacing
restore to default values
Use example
1b 40
1b 33 30
30 31 32 0d 0a
30 31 32 0d 0a
1b 32
30 31 32 0d 0a
30 31 32 0d 0a
Set default for line spacing
Command
Name
Set default for line spacing
Command ASCII :ESC 2
Code Decimal :27 50
Hexadecimal:1B 32

PDM-02 Technical Manual
7
Functional
description
Set the line spacing to the default of 33 points
Parameter
range
not
default not
Support
model
All
attention
Line spacing indicated detailed look at the ESC 3 instructions
If set the line spacing is less than the maximum character height in a
line, so the bank line spacing is equal to the maximum character level
You can use the ESC 3 custom line spacing
Use example
Not
Set the print position
Command
Name
Set the print position
Command
Code
ASCII :ESC $ nL nH
Decimal :27 36 nL nH
Hexadecimal :1B 24 nL nH
Functional
description
Adjust the print position to print starting position (nL nH + x 256) points
Parameter
range
0
≤
nL
≤
255,0
≤
nH
≤
255
default not
Support
model
All
attention
This directive applies only to the bank, after a newline print position is
reset to print starting position
Beyond print is moved to the next line printing
Use example
1b 40 1b 24 08 00
30 31 32 0d 0a
30 31 32 0d 0a
Set the left margin
Command
Name
Set the left margin
Command
Code
ASCII :GS L nL nH
Decimal :29 76 nL nH
Hexadecimal :1D 4C nL nH
Functional
description
To set the left margin (nL nH + x 256)

PDM-02 Technical Manual
8
Parameter
range
0
≤
nL
≤
255,0
≤
nH
≤
255
default not
Support
model
All
attention
The command is valid only in a line of the starting position of the
handle.
Legend schematic is as follows:
If set outside the printable area, use the maximum printing unit
Use example
1b 40 1d 4c 08 00
30 31 32 0d 0a
30 31 32 0d 0a
Set the character print mode
Command
Name
Set the character print mode
Command
Code
ASCII :ESC ! n
Decimal :27 33 n
Hexadecimal :1B 21 n
Functional
description
Set the character print mode (fonts, white, high horse, bold, times and
times width, and the underline),
the parameter n ,Defines as follows:
position function value
0 1
0 font normal Shall character
1 undefined
2 undefined
3 bold cancel setting
4 double high cancel setting
5 double width cancel setting
6 undefined
7 underline cancel setting
Parameter
range
not
default n = 0

PDM-02 Technical Manual
9
Support
model
All
attention
The instruction for Chinese fonts and foreign fonts are effective
When the ESC @, printer after reset, power outages, the setting of
this directive
Use example
1B 40 1B 21 01 30 31 32 0D 0A
1B 40 1B 21 02 30 31 32 0D 0A
1B 40 1B 21 04 30 31 32 0D 0A
1B 40 1B 21 08 30 31 32 0D 0A
1B 40 1B 21 10 30 31 32 0D 0A
1B 40 1B 21 20 30 31 32 0D 0A
1B 40 1B 21 40 30 31 32 0D 0A
1B 40 1B 21 80 30 31 32 0D 0A
Set the character size
Command
Name
Set the character size
Command
Code
ASCII :GS ! n
Decimal :29 33 n
Hexadecimal :1d 21 n
Functional
description
Set the character size for 1-8 times as wide, 1-8 times higher
Defines as follows:
Use 0 to 3 set character height 4 to 7 bits set character width as shown
below
table 1 table 2
Character width setting Character height setting
Hexadec
imal
Decim
al
Width Hexadeci
mal
Decima
l
Height
00 0 1(normal)
00 0 1(normal)
10 16 2(double)
01 1 2(double)
20 32 3 02 2 3
30 48 4 03 3 4
40 64 5 04 4 5
50 80 6 05 5 6
60 96 7 06 6 7
70 112 8 07 7 8
Parameter not
range
default n = 0
Support
model
All

PDM-02 Technical Manual
10
attention
This directive except the HRI characters of Chinese fonts and foreign
fonts are effective
When the ESC @, printer after reset, power outages, the setting of
this directive
Use example
1b 40 1d 21 11
30 31 32 0d 0a
30 31 32 0d 0a
Set, remove the white print
Command
Name
Set, remove the white print
Command
Code
ASCII :GS B n
Decimal :29 66 n
Hexadecimal :1d 42 n
Functional
description
To set or remove the white print mode.
When n the least significant bit is 0, the white mode off.
When n the least significant bit is 1, the white open mode.
Parameter
range
not
default n = 0
Support
model
All
attention
Only n lowest effective.
The command to the built-in character and user-defined characte
r
are effective. When the white model is opened, it also effective t
o
ESC SP set of blank.
This command does not affect the bitmap, user-defined bitmap, ba
r
code, HRI characters, and space by HT skip, ESC $.
This command does not affect the line spacing.
Reverse mode takes precedence over the underline. When se
t
against the white model, even the underline mode open are prohibite
d
from (but not cancelled).
When the ESC @, printer after reset, power outages, the setting of this
directive.
Use example
1b 40 1d 42 01
30 31 32 0d 0a
30 31 32 0d 0a

PDM-02 Technical Manual
11
Set, remove the underline
Command
Name
Set, remove the underline
Command
Code
ASCII :ESC - n
Decimal :27 45 n
Hexadecimal :1B 2D n
Functional
description
Based on the value of n, set/remove the underline mode:
n function
0, 48 Remove the underline mode
1, 49 Set the underline mode (1 point of coarse )
2, 50 Set the underline mode (2 point of coarse)
Parameter
range
0
≤
n
≤
2, 48
≤
n
≤
50
default n = 0
Support
model
All
attention
Printers can give all characters underscore (including character to the
right of the interval), except by HT set blank.
The printer cannot give clockwise rotate 90 ° characters and th
e
white print underscore characters.
When by setting the value of n to 0 or 48 to remove the underlin
e
mode, the following data is not be printed underline, and remove th
e
underline mode before setting the underlined roughness do not change
.
By default the underline roughness is 1 point.
Change the character size does not affect the current underline
d
roughness.
Use the ESC! Also can be set or remove the underline mode. Note,
however, the last received command is valid.
Use example
1b 40 1b 2d 01
30 31 32 0d 0a
1b 40 1b 2d 02
30 31 32 0d 0a
1b 40 1b 2d 00
30 31 32 0d 0a
Set up the, remove clockwise rotate 90 ° to print
Command
Name
Set up the, remove clockwise rotate 90 ° to print
Command
Code
ASCII :ESC V n
Decimal :27 86 n
Hexadecimal :1B 56 n
Functional Set or remove 90 ° rotation printing.

PDM-02 Technical Manual
12
description When n equals 0 or 48, lifting 90 ° rotation printing.
When n equals 1 or 49, set up 90 ° rotation printing.
Parameter
range
0
≤
n
≤
1, 48
≤
n
≤
49
default n = 0
Support
model
All
attention
When set up the underline mode, in the case of characters clockwise
rotate 900, the printer is not underlined.
In clockwise rotate 900 mode, times and times higher command wide
direction and general mode of the characters x magnification high
command wide zoom in the opposite direction of the characters.
When the ESC @, printer after reset, power outages, the setting of this
directive
Use example
1b 40 1b 56 01
30 31 32 0d 0a
30 31 32 0d 0a
Set the print alignment
Command
Name
Set the print alignment (left, center, right)
Command
Code
ASCII :ESC a n
Decimal :27 97 n
Hexadecimal :1B 61 n
Functional
description
To align all the data in a line, the value of n meaning is as follows:
n mode
0, 48 left
1, 49 middle
2, 50 right
Parameter
range
0
≤
n
≤
2 或 48
≤
n
≤
50
default n = 0
Support
model
All
attention When the ESC @, printer after reset, power outages, the setting of this
directive
Use example
1B 40 1B 61 02
30 31 32 0D 0A
1B 40 1B 61 01
30 31 32 0D 0A
1B 40 1B 61 00
30 31 32 0D 0A

PDM-02 Technical Manual
13
Set the Chinese character pattern
Command
Name
Set the Chinese character pattern
Command
Code
ASCII :FS &
Decimal :28 38
Hexadecimal :1C 26
Functional
description
Select Chinese pattern
Parameter
range
not
default not
Support
model
All
attention
Choosing model of Chinese characters, the printer handle all Chinese
characters code, every time two bytes.
In the first byte, and the second byte order processing code of
Chinese characters.
Use example
1b 40 1C 26 B0 AE C9 CF D7 D4 BC BA 0d 0a
1C 2E B0 AE C9 CF D7 D4 BC BA 0d 0a
Cancel the Chinese character pattern
Command
Name
Cancel the Chinese character pattern
Command
Code
ASCII :FS .
Decimal :28 46
Hexadecimal :1C 2E
Functional
description
Cancel the Chinese character pattern
Parameter
range
not
default not
Support
model
All
attention Not choosing model of Chinese characters, all characters are as
ASCII code, a character at a time processing.
Use example
not
Choose or cancel the user custom character set
Command
Name
Choose or cancel the user custom character set

PDM-02 Technical Manual
14
Command
Code
ASCII :ESC % n
Decimal :27 37 n
Hexadecimal :1B 25 n
Functional
description
Choose or cancel the user custom character set
When n the least significant bit is 0, cancel the user-defined character
set.
When n the least significant bit is 1, select user-defined character set.
Parameter
range
0
≤
n
≤
255
default 0
Support
model
All
attention When cancel the user-defined character set, automatically choose the
internal character set.
Use example
not
Define the user custom character set
Command
Name
Define the user custom character set
Command
Code
ASCII :ESC & y c1 c2 [x1 d1 ... d (yx1)] ... [xk d1 ... d(y x k)]
Decimal :27 38 y c1 c2 [x1 d1 ... d(yx1)] ...[xk d1 ... d(yxk)]
Hexadecimal :1B 26 y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(yxk)]
Functional
description
Define the user custom characters.
Y bytes specifies the vertical direction.
C1 specified starting character encoding,C2 end of the specified
character encoding.
Xk specified horizontal points.
Parameter
range
The range of x, y and the corresponding internal fonts
If choose the 6 * 12 font, y = 2, 0
≤
x
≤
6
If choose the 12*24 font,y= 3, 0
≤
x
≤
12
32
≤
c1
≤
c2
≤
126
0
≤
d1 ... d(y*xk)
≤
255
default not
Support
model
All
attention
Can define the scope of the character encoding: from < > 20 H to <
7 > e H ASCII (95 characters).
Can define multiple continuous character encoding of the character
s.
When only need one character, make c1 = c2.
D is point data of the characters. Point pattern is horizontal directio
n
from the start on the left. On the right side of the remaining points fo
r
blank.
Define user custom character data is (y * x) bytes.

PDM-02 Technical Manual
15
to 0.
Set to print the corresponding to 1 or not print points corresponding
The command for each font definition different user-defined
character pattern. Use the ESC! Set the font.
The user-defined character and downlink bitmap is defined at the
same time. When the command is executed, the bitmap is cleared.
In the following situations user-defined character is clear:
Perform ESC @.
Perform GS *.
Perform ESC ?
Reset the printer or shut off the power.
illustration :
When set the font A (12 24).
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 . . . .

PDM-02 Technical Manual
16
Use example
①y = 2
1B 40
1b 26 02 20 20 06 FF FF FF FF FF FF FF FF FF FF FF FF
1b 25 01
20 20 0D 0A
1b 3f 20
30 20 30 20 0d 0a
②y = 3
1B 40
1b 26 03 20 20 06 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF
1b 25 01
20 20 0D 0A
1b 3f 20
30 20 30 20 0d 0a
Cancel the user-defined character
Command
Name
Cancel the user-defined character
Command
Code
ASCII :ESC ? n
Decimal :27 63 n
Hexadecimal :1B 3F n
Functional
description
Cancel code n specified by the user custom characters
Parameter
range
32
≤
n
≤
126
default not
Support
model
All
attention
The command to terminate for character encoding defined style
,
character encoding specified by n. After the user-defined character wa
s
cancelled, to internal character pattern print accordingly.
In ESC! Choose the font, the command to remove the definition for a
given coding style.If a user-defined character is not defined, the printer t
o
ignore this command.
Use example
not
Choose international character sets
Command
Name
Choose international character sets
Command ASCII :ESC R n

PDM-02 Technical Manual
17
Code Decimal :27 82 n
Hexadecimal :1B 52 n
Functional
description
According to the following table to choose n the value of the international
character sets:
n Character sets
0 USA
1 France
2 Germany
3 England
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
15 Chinese
Parameter
range
0
≤
n
≤
15
default 0
Support
model
All
attention
Use example
1B 40 1B 52 00
20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36
37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D
4E 4F 50 51 52 53 54 55 56 57 58 59 60 6A 6B 6C 6D 6E 6F 70 71 72 73
74 75 76 78 79 7A 7B 7C 7D 7E 0D 0A
Select the character code page
Command
Name
Select the character code page
Command
code
ASCII :ESC t n
Decimal :27 116 n
Hexadecimal :1B 74 n
Functional
description
Select from n character code pages
N Code pages
0 CP437 [USA , the
European standard]

PDM-02 Technical Manual
18
1 KataKana [katakana]
2 CP850 [multi-language]
3 CP860 [portugal]
4 CP863 [Canada -
French]
5 CP865 [Nor-Europe]
6 WCP1251 [Slavic]
7 CP866 Slavic 2
8 MIK[Slavic/Bulgaria]
9 CP755 [Eastern
Europe, Latvia 2]
10 [Iran, Persia ]
11 reserve
12 reserve
13 reserve
14 reserve
15 CP862 [Hebrew]
16 WCP1252 [Latin 1]
17 WCP1253 [Greece]
18 CP852 [Latin 2]
19 CP858 [Multiple
language Latin 1 + o ]
20 Iran Ⅱ[Farsi]
21 Latvia
22 CP864 [Arabic]
23 ISO-8859-1 [Western
Europe]
24 CP737 [Greece]
25 WCP1257 [the Baltic
sea]
26 Thai
27 CP720[Arabic]
28 CP855
29 CP857[Turkish]
30 WCP1250[middle
Europe]
31 CP775
32 WCP1254[Turkish]
33 WCP1255[Hebrew]
34 WCP1256[Arabic]
35 WCP1258[Vietnamese]
36 ISO-8859-2[ Latin 2]
37 ISO-8859-3[ Latin 3]
38 ISO-8859-4[the Baltic

PDM-02 Technical Manual
19
sea]
39 ISO-8859-5[Slavic]
40 ISO-8859-6[Arabic]
41 ISO-8859-7[Greek]
42 ISO-8859-8[Hebrew]
43 ISO-8859-9[Turkish]
44 ISO-8859-15[ Latin 9]
45 [Thai 2]
46 CP856
47 Cp874
255 GBK2312
Parameter
range
0
≤
n
≤
255
default 0
Support
model
All
attention
Use example
1B 40 1C 2E 1B 74 00
80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F 90 91 92 93 94 95 96
97 98 9A 9B 9C 9D 9E 9F A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD
AE AF B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF C0 C1 C2
C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF D0 D1 D2 D3 D4 D5 D6 D7
D8 D9 DA DB DC DD DE DF E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC
ED EE EF F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF 0D 0A
③TAB order
Horizontal TAB
Command
Name
Horizontal TAB
Command
Code
ASCII :HT
Decimal :9
Hexadecimal :09
Functional
description
Move the print position to the next TAB
Parameter
range
not
default not

PDM-02 Technical Manual
20
Support
model
All
attention
TAB position are set in the ESC D
If the TAB position is not set no horizontal TAB position (the default), th
e
instruction will be treated as LF instructions
If the TAB position beyond the print area, coordinates will be shifted to th
e
next line of the starting position of the (depending on the data bank is full
,
and printing
Newline)
Use example
not
Settings TAB position
Command
Name
Settings TAB position
Command
Code
ASCII :ESC D [d]k NUL
Decimal :27 68 [d]k 0
Hexadecimal :1B 44 [d]k 00
Functional
description
Settings TAB position, parameter meaning is as follows:
D1...Dk: horizontal TAB position, to 8 PM, a NULL terminator
Parameter
range
XX58:1
≤
d
≤
46(d1 <d2 <
……
dk ,1
≤
k
≤
16)
XX80:1
≤
d
≤
70(d1 < d2 <
……
dk ,1
≤
k
≤
16)
default [d]k = 0 No horizontal TAB position (the default)
Support
model
All
attention TAB position signal is as follows:
Other manuals for PDM-02
1
Table of contents
Other Cashino Printer manuals

Cashino
Cashino EP-261B User manual

Cashino
Cashino PTP-III User manual

Cashino
Cashino EP-260C-24V User manual

Cashino
Cashino CSN-A4L User manual

Cashino
Cashino CSN-58III User manual

Cashino
Cashino POS80V User manual

Cashino
Cashino CSN-A1X User manual

Cashino
Cashino CSN-A5 User manual

Cashino
Cashino KMP-II User manual

Cashino
Cashino CSN-A2 Series User manual

Cashino
Cashino KP-628E User manual

Cashino
Cashino PTP-III User manual

Cashino
Cashino CSN-A3 User manual

Cashino
Cashino CSN-A1K User manual

Cashino
Cashino KP-220 User manual

Cashino
Cashino PTP-II User manual

Cashino
Cashino CSN-80V User manual

Cashino
Cashino CSN-A2L User manual

Cashino
Cashino PDM-02 User manual