Cashino CSN-A2L User manual

Xiamen Cashino Technology Co.,Ltd A2L User Manual
1
CSN-A2L Micro panel printer's
User Manual
Draw up: Lin Xiaopeng 2017.04.06
Audit:Hu Riyu 2017.04.08
standardization:Liu Zhonghua 2017.04.09
Approved:Wang Huanyong 2017.04.11
Tel:0592-5517253 Fax:0592-5231815
Supply Company:Xiamen Cashino Technology Co., Ltd.
Address:4/F,No.318,Tongji South Road, Jimei District, Xiamen, China. 361021
Technical Specifications are subject to change without notice,ask Xiamen cashino

Xiamen Cashino Technology Co.,Ltd A2L User Manual
2
technology Co.,Ltd. for the latest version
R E V I S O N R E C O R D
No
Data
Modify the content
Change
page
number
Prepared
by
Review
1
2017040
6
First draft
Lin
Xiaopeng
Hu
Riyu
2
2018041
6
Add settings, cancel
characters upside down
14
Zhu
Chunyan
Hu Riyu
3
2018041
6
Printer parameter
6
Zhu
Chunyan
Hu Riyu
4
2018052
3
Modify the size of the
mounting port
6
Zhu
Chunyan
Hu Riyu
5
2018072
6
Add QR Code printing
43
Zhu
Chunyan
Hu Riyu

Xiamen Cashino Technology Co.,Ltd A2L User Manual
3
Content
1.Product Description............................................................................................................................................ 5
2.Feature..................................................................................................................................................................5
3.Product specification.......................................................................................................................................... 5
3.1Printer dimention.......................................................................................................................................5
3.2Installation method................................................................................................................................... 6
4.Printer Parameter................................................................................................................................................6
5.Paper roll placement...........................................................................................................................................7
6.Description for interface pin definition............................................................................................................. 7
7. Panel LED indication......................................................................................................................................... 8
8.Command instruction......................................................................................................................................... 8
8.1Command list.............................................................................................................................................8
8.2 Command details.....................................................................................................................................9
①Printing and paper feed commands................................................................................................ 9
Printing and paper feed.........................................................................................................................9
Enter....................................................................................................................................................... 10
Print and paper feed dots................................................................................................................... 10
Print and paper feed n line................................................................................................................. 10
②Printing set commands....................................................................................................................11
Set line space as n dots...................................................................................................................... 11
Set line space to defaults....................................................................................................................11
Set print position...................................................................................................................................12
Set left margin.......................................................................................................................................12
Set character printing method............................................................................................................12
Set character size.................................................................................................................................13
Set、remove white printing................................................................................................................ 14
Set、remove underline........................................................................................................................15
Set、cancel characters upside down............................................................................................... 15
Set、remove 90°revolving printing....................................................................................................16
Set printing alignment..........................................................................................................................16
Set Chinese mode................................................................................................................................17
Cancel Chinese character mode....................................................................................................... 17
Select、cancel user customized characters................................................................................... 17
Define user customized characters...................................................................................................18
Cancel user customized characters..................................................................................................20
Selecting international character set.................................................................................................20
Select character code..........................................................................................................................21
③Graphic printing command............................................................................................................. 23
Fill Graphics vertical module data..................................................................................................... 23
Print Graphics horizontal module data............................................................................................. 24
Define downloaded bitmap................................................................................................................. 25
Print downloaded bitmap.................................................................................................................... 26
Define NV bitmap................................................................................................................................. 27

Xiamen Cashino Technology Co.,Ltd A2L User Manual
4
Print NV bitmap.....................................................................................................................................30
④Tab Commands.................................................................................................................................31
Horizontal tab........................................................................................................................................31
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................................................................................................................... 33
1D bar code printing............................................................................................................................ 34
⑥Status querying Commands...........................................................................................................39
Transmission status............................................................................................................................. 39
Real-time transmission status............................................................................................................40
⑦Printing QR code.............................................................................................................................. 43
Mode type of 2-D bar code................................................................................................................. 43
Setting error correction level of 2-D bar code................................................................................. 44
Store 2-D bar code data to data buffer.............................................................................................44
Printing two-dimension bar code....................................................................................................... 45
Setting two-dimension bar code graph information........................................................................45
⑧Other commands..............................................................................................................................48
Printer reset...........................................................................................................................................48
Print self-test page............................................................................................................................... 48

Xiamen Cashino Technology Co.,Ltd A2L User Manual
5
1.Product Description
Name:Micro panel thermal printer
Model:A2L
Installation Port Size:103.3(W)*57.3(H)mm
Insert Depth:50mm
Application:Medical equipment, Measuring equipment, Security equipment, Analyzing Instrument &
Meter
2.Feature
①Elegant style
②Support for ESC/POS print command
③Easy paper loading
④Low noise, thermal printing
⑤Multi-interface optional
⑥Easy to embed in all kinds of instruments
3.Product specification
3.1Printer dimention

Xiamen Cashino Technology Co.,Ltd A2L User Manual
6
3.2Installation method
Put the printer into the front of device as the picture 1 and picture 2 , Install the fixed block from
the back, lock the screw as the picture 3
Note: the machine panel could be adjusted the thickness range from 1 to 6CM
Picture 1 Picture 2 Picture 3
4.Printer Parameter
Print
Printing Method
Thermal line
Printing speed
Max:90mm/s
Resolution
203dpo(8dot/mm)
Effective printing width
48mm
Character
Character set
ASCII,GB2312-80(Chinese)
Print font
ANK:(8*16,9*17,9*24,12*24)
Chinese:(16*16,24*24)
Paper specification
Paper type
Thermal paper
Paper width
57.5±0.5mm
Paper roll diameter
Max:38mm
Paper thickness
60-85μm
Reliabitlity
Mean Time Between
Failures(MCBF)
>500 million line
Interface
Serial(RS232,TTL)/Parallel/USB
Insert depth
50mm
Power supply
DC 5V-9V ≥2A
DC 12V ≥2A
Outline dimension(W*L*H)
111*65*56.5mm

Xiamen Cashino Technology Co.,Ltd A2L User Manual
7
Physical
Installation port size
103.3*57.3mm
Color
Beige/Black
Environment
Operating temperature
0°C ~ 50°C
Operating humidity
20% ~ 85%RH
Storage temperature
-20°C ~ 60°C
Storage humidity
5% ~ 90%RH
5.Paper roll placement
1.Open the top cover of the printer;
2.The paper roll is placed on the reverse side
3.Cover the top lid of the printer so that the paper is slightly exposed
Note: Before installing the paper, please tear off the adhesive tape attached to the paper roll, and do
not leave any foreign matter to protect the print head.
6.Description for interface pin definition
Pin
Direction
Description
1.GND
Ground
2.NULL
3.VH
Input
Voltage 5-9V or 12V

Xiamen Cashino Technology Co.,Ltd A2L User Manual
8
4.GND
Ground
5.RXD
Input
Receive data
6.TXD
Output
Transfer data
7. Panel LED indication
After power off, the indicator will be on and off twice, with an interval of one second, indicating that
the startup is good, then the indicator is as following:
Flash one: self-test work
Flash twice: Pinter not detected
Flash three times: The printer is out of paper
Flash five times: The heater core of printer mechanism is overheated
Flash ten times: Chinese character font not detected
8.Command instruction
8.1Command list
LF
Pint and feed
Printing and feeding
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 setting commands
ESC 2
Set default line space
ESC $
Set the 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
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

Xiamen Cashino Technology Co.,Ltd A2L User Manual
9
ESC R n
Select International character
ESC t n
Select the character code page
ESC *
Bitmap vertical modulus data fillings
Graphic 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 barcode readable character(HRI)
print position
1-D print commands
GS h
Set 1-D barcode height
GS w
Set 1-D barcode width
GS k
Print 1-D barcode
GS ( k
Print QR code
QR code print commands
Print line segment
Curve print commands
GS r n
Transmission status
Status query commands
DLE EOT n
Real-time transmission status
ESC @
Printer reset
Other commands
DC2 T
Printing self-test page
8.2 Command 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.
Range
None
Defaults
None

Xiamen Cashino Technology Co.,Ltd A2L User Manual
10
Support
model
All
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
Defaults
None
Support Model
All
Notes
After executing, R command, the new printing data will cover old data
in the printing buffer.
Example
None
Print and paper feed 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
Defaults
None
Support Model
All
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
Defaults
None
Support Model
All
Notes
Print this command set as initial position of the same line
Example
1b 40 30 31 32 1b 64 01

Xiamen Cashino Technology Co.,Ltd A2L User Manual
11
②Printing set commands
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
Defaults
n = 33
Support Model
All
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 defaults
Name
Set line space to default
Code
ASCII :ESC 2
DEC :27 50
HEX :1B 32
Function
Set line space to default 33 dots
Range
None
Defaults
None
Support Model
All
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

Xiamen Cashino Technology Co.,Ltd A2L User Manual
12
Set print position
Name
Set print position
Code
ASCII :ESC $ nL nH
DEC :27 36 nL nH
HEX :1B 24 nL nH
Function
Set left side blank area as(nL + nH × 256)dots
Range
0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
Defaults
None
Support Model
All
Notes
This command is only effective with the initial position of the line.
This command is unavailable if it sets beyond the printing area.
Example
1b 40 1b 24 08 00
30 31 32 0d 0a
30 31 32 0d 0a
Set 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
Defaults
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

Xiamen Cashino Technology Co.,Ltd A2L User Manual
13
DEC :27 33 n
HEX :1B 21 n
Function
Set character printing methods (font,highlight,inversion,bold,double
hight,double width and underline),parameter n bit definition as below:
Bit Function Value
0 1
0 Font Normal Small character
1 Undefined
2 Undefined
3 Bold Cancel Setting
4 Double hight Cancel Setting
5 Double width Cancel Setting
6 Undefined
7 Underline Cancel Setting
Range
None
Defaults
n = 0
Support Model
All
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

Xiamen Cashino Technology Co.,Ltd A2L User Manual
14
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
Range
None
Defaults
n = 0
Support Model
All
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
Defaults
n = 0
Support Model
All
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.

Xiamen Cashino Technology Co.,Ltd A2L User Manual
15
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
0, 48
Remove underline mode
1, 49
Set underline mode(1 dot coarse)
2, 50
Set underline mode(2 dot coarse)
Range
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
Defaults
n = 0
Support Model
All
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 can not 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
Set、cancel characters upside down
Name
Set、cancel characters upside down
Code
ASCII :ESC {n
DEC :27 123 n
HEX :1B 7B n
Function
n=1:set character upside down
n=0:cancel character upside down
Defaults
n=0

Xiamen Cashino Technology Co.,Ltd A2L User Manual
16
Notes
None
Example
None
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
Defaults
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 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
Defaults
n = 0
Support Model
All
Notes
This command setting is disabled when ESC@,printer resets or power
off.
Example
1B 40 1B 61 02
30 31 32 0D 0A

Xiamen Cashino Technology Co.,Ltd A2L User Manual
17
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
Defaults
None
Support Model
All
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
Cancel Chinese character mode
Name
Exit Chinese character mode
Code
ASCII :FS .
DEC :28 46
HEX :1C 2E
Function
cancel Chinese character mode
Range
None
Defaults
None
Support Model
All
Notes
When the Chinese character mode is not selected, all character codes
are treated as ASCII codes, one character at a time.
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

Xiamen Cashino Technology Co.,Ltd A2L User Manual
18
Default
0
Support Model
All
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
Defaults
None
Support Model
All
Notes
Definable character code range:from<20>H to <7E>H ASCII code(95
characters).
It can define continuous characters encoding for several characters.
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

Xiamen Cashino Technology Co.,Ltd A2L User Manual
19
Graphic:
When set 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 . . . .
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

Xiamen Cashino Technology Co.,Ltd A2L User Manual
20
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
Defaults
None
Support Model
All
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.
In the font selected with ESC !, the command removes the style defined
for the specified encoding.
If a user customized character is not defined, the printer ignores the
command.
Example
None
Selecting international character set
Name
Selecting international character set
Code
ASCII :ESC R n
DEC :27 82 n
HEX:1B 52 n
Function
Selecting international character set n from the following table:
n
Character
0
U.S.A
1
France
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
Table of contents
Other Cashino Printer manuals

Cashino
Cashino CSN-58III User manual

Cashino
Cashino CSN-A1X User manual

Cashino
Cashino PTP-III User manual

Cashino
Cashino KP-628E User manual

Cashino
Cashino PDM-02 User manual

Cashino
Cashino PTP-II User manual

Cashino
Cashino CSN-80V User manual

Cashino
Cashino CSN-A2 Series User manual

Cashino
Cashino EP-261B User manual

Cashino
Cashino KMP-II User manual

Cashino
Cashino CSN-A3 User manual

Cashino
Cashino EP-260C-24V User manual

Cashino
Cashino CSN-A5 User manual

Cashino
Cashino PDM-02 User manual

Cashino
Cashino CSN-A4L User manual

Cashino
Cashino CSN-A1K User manual

Cashino
Cashino KP-220 User manual

Cashino
Cashino POS80V User manual

Cashino
Cashino PTP-III User manual