Cashino CSN-A5 User manual

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
1
CSN-A5 Micro Panel Printer
Product Specifications
Protocol: Lin Xiaopeng 2017.04.06
Audit : Hu Riyu 2017.04.08
Standardize:Liu Zhonghua 2017.04.09
Authorize: Wang Huanyong 2017.04.11
Company: Xiamen Cashino Technology Co., Ltd.
Tel: 0592-5517253 Fax: 0592-5231815
Address: 4/F,No.318,Tongji South Road, Jimei District,Xiamen,China.361021
The manual is subject to change without further notice. Please contact Xiamen Cashino Technology
Co., Ltd. directly for the latest version.

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
2
CSN-A5 micro panel printer product specifications revision record
Item
Date
Description
Edited
page
Desing
Review
1
20180419
The first draft
Zhu
Chunyan
Hu Riyu
2
20180523
Modify installation port size
Zhu
Chunyan
Hu Riyu
3
20180726
Add two-dimensional code printing
43
Zhu
Chunyan
Hu Riyu

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
3
Content
1. Product description............................................................................................................................................5
2. Product feature...................................................................................................................................................5
3. External............................................................................................................................................................... 6
4. Product specification......................................................................................................................................... 6
5. Paper installation............................................................................................................................................... 7
6. Interface and define...........................................................................................................................................8
Parallel..................................................................................................................................................................... 9
7. LED reminder..................................................................................................................................................... 9
8. Command Instruction........................................................................................................................................9
8.1 Command List..........................................................................................................................................9
8.2 Commands details................................................................................................................................ 10
①Printing and paper feed commands..............................................................................................10
Printing and paper feed...................................................................................................................... 10
Enter.......................................................................................................................................................11
Print and paper feed n dots................................................................................................................11
Print and paper feed n line................................................................................................................. 11
②Printing set commands................................................................................................................... 11
Set line space as n dots......................................................................................................................12
Set line space to default..................................................................................................................... 12
Set absolute print position..................................................................................................................12
Set the left margin................................................................................................................................13
Set character printing method........................................................................................................... 13
Set character size................................................................................................................................ 14
Set、remove white printing................................................................................................................15
Set、remove underline....................................................................................................................... 15
Set、remove 90°revolving printing................................................................................................... 16
Set printing alignment......................................................................................................................... 17
Set Chinese mode............................................................................................................................... 17
Exit Chinese character mode.............................................................................................................17
Select、cancel user customized characters...................................................................................18
Define user customized characters.................................................................................................. 18
Cancel user customized characters................................................................................................. 20
Selecting international character set................................................................................................ 21
Select character code......................................................................................................................... 21
③Graphic printing command............................................................................................................. 23
Fill Graphics vertical module data.....................................................................................................23
Print Graphics horizontal module data.............................................................................................25
Define downloaded bitmap.................................................................................................................26
Print downloaded bitmap....................................................................................................................27
Define NV bitmap.................................................................................................................................28
Print NV bitmap.................................................................................................................................... 31

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
4
④Tab Commands................................................................................................................................32
Horizontal tab....................................................................................................................................... 32
Horizontal tab position setting........................................................................................................... 32
⑤One-dimension bar code command............................................................................................. 33
1D bar code readable character(HRI) print position setting.........................................................33
1D bar code height setting................................................................................................................. 33
1D bar code width setting...................................................................................................................34
1D bar code printing............................................................................................................................ 34
⑥Status querying Commands...........................................................................................................40
Transmission status.............................................................................................................................40
Real-time transmission status........................................................................................................... 41
⑦Two-dimensional bar code commands........................................................................................ 44
Mode type of QR code........................................................................................................................ 44
Setting error correction level of QR code........................................................................................ 45
Store QR code data to QR code data buffer...................................................................................45
Printing QR code..................................................................................................................................46
Setting QR code graph information.................................................................................................. 46
Printing two dimensional code...........................................................................................................47
Printing double QR code.................................................................................................................... 48
⑧Other commands............................................................................................................................. 49
Printer reset.......................................................................................................................................... 49
Print self-test page...............................................................................................................................49

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
5
1. Product description
Name: Micro panel thermal printer
Model: CSN-A5
Installation port size: 82.3(W)*82.3(L)mm
Embedded depth: 54mm
Application: Medical apparatus and instruments
Measuring equipment
Security equipment
Analytical instruments and meters
2. Product feature
1)Smart appearance
2)Easy paper loading
3)Low noise thermal printing
4)Different interfaces optional
5)Support graphic and text printing
6)Support 50 mm diameter paper roll
7)Front panel make paper replacement easily
8)Easily embedded to any kinds of instruments and meters

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
6
3. External
4. Product specification
Print
Printing Method
Thermal Line
Printing Speed
Max:90mm/s
Resolution
203dpi(8dots/mm)
Effective Printing Width
48mm
Character
Character Set
ASCII, GB2312-80(Chinese), BIG5, etc.
Print Font
ANK:9×17,12×24, GBK:24×24
Paper spec.
Paper Type
Thermal Paper
Paper Width
57.5±0.5mm
Paper Thickness
55-90μm

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
7
Paper Roll Diameter
Max:50mm
Reliability
TPH
50km(12.5% print ratio)
Interface
Parallel/Serial/Cashbox
Power Supply (Adapter)
DC5-9V ≥2A
DC12V ≥2A
Physical
Outline Dimension (WxLxH)
88×87×57mm
Installation Port Size(WxL)
82.3x82.3mm
Insert Depth
54mm
Color
Black/Beige
Environment
Operating Temp
0°C ~ 50°C
Operating Humidity
20% ~ 85%RH
Storage Temp
-20°C ~ 60°C
Storage Humidity
5% ~ 90%RH
5. Paper installation
1) Open the printer cover.
2) Put in the paper roll, make sure the back side upward.
3) Close the printer cover, make the printing paper slightly exposed.
Note: before installing the printing paper, please tear the gummed paper off the paper roll first, no
residual foreign matter, to protect the printer head.

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
8
6. Interface and define
POWER
No.
Pin
Introduction
1
VH
5-9V OR 12V
2
NC
3
GND
Ground
Serial
No.
Pin
Introduction
1
NC
2
TXD
Transmit Data
3
RXD
Receive Data
4
NC
5
GND
Ground
6
DTR
Data Terminal Ready
7
USB_D-
8
NC
9
USB_D+
10
NC
Cashbox
No.
Pin
Introduction
1
VH
Power supply
2
Cashbox

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
9
control
Parallel
No.
Pin
Introduction
1
STB
strobe pulse
2~9
D1~D8
output data
10
ACK
acknowledgment character
11
BUSY
12
PE
13
SEL
14
B4
15
ERR
16
B2
17
B1
18~26
GND
Ground
7. LED reminder
Power on ,and indicator light will flash two times ,one second apart. It shows power on.
Then indicator light is flash statues as following
Flash 1 time:Working properly
Flash 2 time:No printer is detected
Flash 3 times:No paper
Flash 5 times:Printer head overheating
8. Command Instruction
8.1 Command List
LF
Line feed
print and paper feed
commands
CR
Enter
ESC J
Print and paper feed n dots
ESC d
Print and paper feed n lines
ESC 3
Set line space n dots
print set commands
ESC 2
Set default line space
ESC $ nL nH
Set absolute print position
GS L nL nH
Set left margin amount
ESC !
Set character printing method
GS ! n
Set character size
GS B n
Set and delete white printing

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
10
ESC - n
Set and delete underline
ESC V n
Set and delete 90°rotate printing
ESC a
Setting position alignment mode
FS &
Set Chinese character mode
FS .
Delete Chinese character mode
ESC % n
Choose and delete customized characters
ESC &
Define customized characters
ESC ? n
Delete customized character
ESC R n
International character sets
ESC t n
Select the character code page
ESC *
Bitmap vertical modulus data fillings
bitmap print commands
GS v 0
Bitmap horizontal modulus data print
GS *
Define download bitmap
GS / m
Print download bitmap
FS q
Define NV bitmap
FS p n m
Print NV bitmap
HT
Horizontal tab
tabulation commands
ESC D
Set horizontal tabulation position
GS H
Set 1-D bar code readable character(HRI)
print position
1-D barcode printing
commands
GS h
Set 1-D bar code height
GS w
Set 1-D bar code width
GS k
1-D bar code
GS k
2-D bar code print
2-D bar code printing
commands
GS r n
Transmission status
status commands
DLE EOT n
Real-time transmission status
ESC @
Printer reset
other commands
DC2T
Printing self-test page
8.2 Commands details
①Printing and paper feed commands
Printing and paper feed
Name
print and paper feed
Code
ASCII :LF
DEC :10
HEX :0A
Function
Print the buffer contest, and set the paper feed as per line space, then
adjust print position to initial position at the next line.

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
11
Range
None
Default
None
Notes
None
Example
None
Enter
Name
Enter
Code
ASCII :CR
DEC :13
HEX :0D
Function
Adjust print position to initial position of the same line.
Range
None
Default
None
Notes
After executing, R command, the new printing data will cover old data in
the printing buffer.
Example
None
Print and paper feed n dots
Name
Print and paper feed n dots
Code
ASCII :ESC J n
DEC :27 74 n
HEX :1B 4A n
Function
Print the buffer content and paper feed
Range
0 ≤ n ≤ 255
Default
None
Notes
Paper feed n dots when printing buffer is empty.
After executing this command, printing position is moved to initial
Example
1b 40 30 31 32 1b 4a 10
Print and paper feed n line
Name
Print and paper feed n lines
Code
ASCII :ESC d n
DEC :27 100 n
HEX:1B 64 n
Function
Print the contents in printing buffer and paper feed n lines.
Range
0 ≤ n ≤ 255
Default
None
Notes
Print this command set as initial position of the same line
Example
1b 40 30 31 32 1b 64 01
②Printing set commands

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
12
Set line space as n dots
Name
Set line space as n dots
Code
ASCII :ESC 3 n
DEC :27 51 n
HEX :1B 33 n
Function
Set line space as n dots
Range
0 ≤ n ≤ 255
Default
n = 33
Notes
Line space as below:
If the line space setted is less than the highest character in that line, then
this line space is equal to the height of the highest character.
If ESC2,ESC@,reset the printer, the printer blackout, and the line
space turns to default.
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 line space to default
Name
Set line space to default
Code
ASCII :ESC 2
DEC:27 50
HEX :1B 32
Function
Set line space to default 30 dots
Range
None
Default
None
Notes
Line space in details pls check ESC 3 command.
If the line space setted is less than the height character in the line, the line
space of this line is equal to the height of the highest character
It can use ESC 3 to define line space.
Example
None
Set absolute print position
Name
Set absolute print position
Code
ASCII :ESC $ nL nH
DEC :27 36 nL nH

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
13
HEX :1B 24 nL nH
Function
Set left side blank area as(nL + nH × 256)dots
Range
0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
Default
None
Notes
Set left side blank area as[(nL+nH*256)]*0.125mm]
This command is only effective with the initial position of the line.
This command is unavailable if it sets beyond the printing area.
Example
None
Set the left margin
Name
Set the left margin
Code
ASCII :GS L nL nH
DEC :29 76 nL nH
HEX :1D 4C nL nH
Function
Set the left margin as(nL + nH × 256)dots
Range
0 ≤ nL ≤ 255,0 ≤ nH ≤ 255
Default
None
Support
Model
All
Notes
This command is only effective with the initial position of the line.
The illustration is as follows:
Use the maximum value of the printable unit, if the setting is beyond the
printable area.
Example
1b 40 1d 4c 08 00
30 31 32 0d 0a
30 31 32 0d 0a
Set character printing method
Name
Set character printing method
Code
ASCII :ESC ! n
DEC :27 33 n
HEX:1B 21 n
Function
Set character printing methods(font, highlight, inversion, bold, double
height, double width and underline),parameter n bit definition as below:
Bit Function Value
0 1

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
14
0 Font Normal Small character
1 Undefined
2 Undefined
3Bold Cancel Setting
4 Double height Cancel Setting
5 Double width Cancel Setting
6 Undefined
7 Underline Cancel Setting
Range
None
Default
n = 0
Notes
The command is effective with Chinese and foreign languages.
The command is disabled when ESC@, printer reset or power off
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 character size
Name
Set character size
Code
ASCII :GS ! n
DEC :29 33 n
HEX :1d 21 n
Function
Set character size as 1-8 times width,1-8 times height. Definition is as
below:
Use 0-3 set character height 4 - 7 bits set character width show as below:
Chart 1 Chart 2
Character width setting Character height setting
HEX
DEC
width
HEX
DEC
height
00
0
1(Normal)
00
0
1(Normal)
10
16
2(double width)
01
1
2(double height)
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

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
15
Range
None
Default
n = 0
Notes
This command is effective with Chinese and other foreign languages,
except for HRI character.
The command setting is disable when ESC@, printer reset or power off.
Example
1b 40 1d 21 11
30 31 32 0d 0a
30 31 32 0d 0a
Set、remove white printing
Name
Set、remove white printing
Code
ASCII :GS B n
DEC :29 66 n
HEX :1d 42 n
Function
Set and remove white printing
When the LSB of n is 0,white printing mode is off.
When the LSB of n is 1,white printing mode is on.
Range
None
Default
n = 0
Notes
It is only effective for LSB of n.
This command is all effective with built-in characters and user-defined
characters.
It is effective with blank, which is setted by ESC CP, when white printing
mode is on.
This command is not effective with bitmap, user-defined bitmap,
barcode, HRI character and vaulting space of HT,ESC $.
This command is not effective with line space.
The white printing mode is prior to underline mode. When it is white
printing mode, even underline mode is open, which can also be
forbidden.(But it not be canceled).
This command is disabled when ESC@, printer reset or power off.
Example
1b 40 1d 42 01
30 31 32 0d 0a
30 31 32 0d 0a
Set、remove underline
Name
Set、remove underline
Code
ASCII :ESC - n
DEC :27 45 n
HEX :1B 2D n
Function
Set/ remove underline mode, based on the value of n as follow:
n
Functions

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
16
0, 48
Remove underline mode
1, 49
Set underline mode(1dotcoarse)
2, 50
Set underline mode(2dotcoarse)
Range
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
Default
n = 0
Notes
Printer can print underline for all characters(including the space to the
right of the character), except for the space set by HT.
Printer cannot print underline for clockwise rotated 90 ° characters and
white printing characters.
When n is setted as 0 or 48,remove underline mode. Other data is not
printed as underline, and the setted underline coarseness does not
change before removing underline mode. The default underline
coarseness is 1 dot.
It is not effective with underline coarseness to change character size.
Using ESC! can also set and remove underline mode. However be aware
that the last received command must be effective.
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
Name
Set、remove underline
Set、remove 90°revolving printing
Name
Set 、remove 90°revolving printing
Code
ASCII :ESC V n
DEC :27 86 n
HEX :1B 56 n
Function
Set or remove 90°revolving printing
When n is equal to 0 or 48,remove 90°revolving printing.
When n is equal to 1 or 49,set 90°revolving printing.
Range
0 ≤ n ≤ 1,48 ≤ n ≤ 49
Default
n = 0
Support
Model
All
Notes
When it is setted to underline mode, the printer is not underlined for
characters rotated 90°.
In the 90° rotation mode, the multiplier and double width commands
magnify the character in the opposite direction to the multiplier command
in the normal mode.
When ESC @, printer reset, power off, the setting of this instruction is

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
17
invalid.
Example
1b 40 1b 56 01
30 31 32 0d 0a
30 31 32 0d 0a
Set printing alignment
Name
Set print alignment(Left, middle, right)
Code
ASCII :ESC a n
DEC :27 97 n
HEX :1B 61 n
Function
Align all data in one line, the meaning of n value as below:
n mode
0, 48 left
1, 49 middle
2, 50 right
Range
0 ≤ n ≤ 2 or 48 ≤ n ≤ 50
Default
n = 0
Notes
This command setting is disabled when ESC@, printer resets or power
off.
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
Set Chinese mode
Name
Set Chinese mode
Code
ASCII :FS &
DEC :28 38
HEX:1C 26
Function
Set Chinese mode
Range
None
Default
None
Notes
When the Chinese character mode is selected, the printer processes all
Chinese character codes(ASCII code) , two bytes at a time.
The Chinese character code(ASCII code) is processed in the order of the
first byte and the second byte.
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
Exit Chinese character mode
Name
Exit Chinese character mode

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
18
Code
ASCII:FS .
DEC :28 46
HEX:1C 2E
Function
Exit Chinese character mode,cancel Chinese character mode
Range
None
Default
None
Notes
None
Example
None
Select、cancel user customized characters
Name
Select 、cancel user customized characters
Code
ASCII :ESC % n
DEC :27 37 n
HEX :1B 25 n
Function
Select 、cancel user customized characters
When n LSB is 0,delete customized characters
When n LSB is 1,select customized characters
Range
0 ≤ n ≤ 255
Default
0
Notes
When cancel customized characters ,automatically select the internal
character set.
Example
None
Define user customized characters
Name
Define user customized characters
Code
ASCII :ESC & y c1 c2 [x1 d1 ... d (yx1)] ... [xk d1 ... d(y x k)]
DEC :27 38 y c1 c2 [x1 d1 ... d(yx1)] ...[xk d1 ... d(yxk)]
HEX :1B 26 y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(yxk)]
Function
Define user customized characters.
y specifies vertical direction bytes.
c1 specifies the starting character encoding,c2 specifies the ending
character encoding
xk specifies horizontal direction dots.
Range
The range of x 、y,are correspond with internal fonts.
If choosing Font 6*12,y = 2,0 ≤ x ≤ 6
If choosing Font 12*24,y= 3,0 ≤ x ≤ 12
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ d1 ... d(y*xk) ≤255
Default
None
Notes
Definable character code range: from<20>H to <7E>H ASCII code(95
characters)。
It can define continuous characters encoding for several characters.

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
19
When it need one character only, make c1=c2.
d is character’s dot data, dot mode starts from left side in the horizontal
direction. It is blank for the rest dots in the right side.
Defined user defines characters data is (y*x) byte.
Set corresponding bit of printing dots as 1, or corresponding bit of no
printing dots as 0.
This command defines different customized characters for each type of
font. Set font with ESC !.
Customized characters and downlink bitmaps cannot be defined at the
same time. When the command is executed, the downlink bitmap is
cleared.
User Customized characters will be cleared in these situations:
Execute ESC @。
Execute GS *。
Execute ESC ?。
Printer reset or power off
Graphic:
When set font A(12 24).

Xiamen Cashino Technology Co., Ltd. CSN-A5 user manual
www.cashinotech.com
20
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 . . . .
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 user customized characters
Name
Cancel user customized characters
Code
ASCII :ESC ? n
DEC :27 63 n
HEX :1B 3F n
Function
Cancel user customized characters of specified code by n
Range
32 ≤ n ≤ 126
Default
None
Notes
This command terminates the use of styles defined for character
encoding, which is specified by n. After the user customized character is
canceled, it is printed in the corresponding mode of the internal character.
Table of contents
Other Cashino Printer manuals

Cashino
Cashino CSN-A3 User manual

Cashino
Cashino CSN-A2 Series User manual

Cashino
Cashino KP-220 User manual

Cashino
Cashino CSN-80V User manual

Cashino
Cashino KMP-II User manual

Cashino
Cashino CSN-A1X User manual

Cashino
Cashino KP-628E User manual

Cashino
Cashino PDM-02 User manual

Cashino
Cashino CSN-A2L User manual

Cashino
Cashino CSN-58III User manual

Cashino
Cashino PTP-III User manual

Cashino
Cashino CSN-A4L User manual

Cashino
Cashino CSN-A1K User manual

Cashino
Cashino EP-260C-24V User manual

Cashino
Cashino PDM-02 User manual

Cashino
Cashino PTP-III User manual

Cashino
Cashino PTP-II User manual

Cashino
Cashino POS80V User manual

Cashino
Cashino EP-261B User manual