Cashino CSN-A4L User manual

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
1
CSN-A4L Panel Printer’
User Manual
Protocol:Lin Xiaopeng 2017.03.29
Audit:Hu Riyu 2017.04.01
Standardize: Liu Zhonghua 2017.04.02
Authorize:Wang Huangyong 2017.04.13
Tel: 0592-5517253 Fax: 0592-5231815
Company Name: Xiamen Cashino Technology Co., Ltd.
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
A4L User Manual
www.csntek.cn
3
Content
Content................................................................................................................................................ 3
1.General Specifications......................................................................................................................5
2. Features............................................................................................................................................5
3.Product Specification....................................................................................................................... 6
3.1 Outline Dimention.................................................................................................................6
4.Printer Parameters............................................................................................................................ 7
5.PIN Defined Of Interfaces............................................................................................................... 7
6.LED Indicator...................................................................................................................................8
7.Command Introduction.................................................................................................................... 8
7.1Command List........................................................................................................................8
7.2Commands details.................................................................................................................. 9
①Printing and paper feed commands.................................................................................9
Printing and paper feed....................................................................................................... 9
Enter.................................................................................................................................. 10
Print and paper feed n dots................................................................................................10
Print and paper feed n line................................................................................................ 10
②Printing set commands.................................................................................................. 10
Set line space as n dots......................................................................................................11
Set line space to default.....................................................................................................11
Set absolute print position.................................................................................................11
Set the left margin............................................................................................................. 12
Set character printing method........................................................................................... 12
Set character size...............................................................................................................13
Set、remove white printing..............................................................................................14
Set、remove underline..................................................................................................... 14
Set、remove 90°revolving printing..................................................................................15
Set printing alignment.......................................................................................................16
Set Chinese mode..............................................................................................................16
Cancel Chinese character mode........................................................................................ 16
Select、cancel user customized characters...................................................................... 17
Define user customized characters....................................................................................17
Cancel user customized characters................................................................................... 19
Selecting international character set................................................................................. 19
Select character code.........................................................................................................20
③Graphic printing command........................................................................................... 22
Fill Graphics vertical module data....................................................................................22
Print Graphics horizontal module data............................................................................. 23
Define downloaded bitmap............................................................................................... 24
Print downloaded bitmap.................................................................................................. 26
Define NV bitmap............................................................................................................. 26
Print NV bitmap................................................................................................................ 29
④Tab Commands..............................................................................................................30

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
4
Horizontal tab....................................................................................................................30
Horizontal tab position setting.......................................................................................... 31
⑤One-dimension bar code command.............................................................................. 32
1D bar code readable character(HRI) print position setting.............................................32
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
⑦Two-dimensional bar code commands..........................................................................43
Mode type of QR code...................................................................................................... 43
Setting error correction level of QR code.........................................................................44
Store QR code data to QR code data buffer......................................................................44
Printing QR code...............................................................................................................45
Setting QR code graph information.................................................................................. 45
Printing two dimensional code..........................................................................................46
Printing double QR code...................................................................................................47
⑧Other commands........................................................................................................... 48
Printer reset....................................................................................................................... 48
Print self-test page.............................................................................................................48

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
5
1.General Specifications
Name:Micro Panel printer
Model:CSN-A4L
Installation Port Size:77.3(W)*53.3(H)mm
Insert Depth:43mm
Application:Taxi meter print proposal, Recording Meter print proposal
Self-service Print proposal,Ticket Machine print proposal
Medical instrument print proposal,Weight Machine Print proposal
Electric Instrument Print proposal,Test Instrument Print proposal
2.Features
①Smart appearance
②Front panel make paper replacement easily
③Easy paper loading
④Low noise thermal printing
⑤Different interfaces optional
⑥Easily embedded to any kinds of instruments and meters
⑦Support graphic and text printing
⑧Support max.30mm diameter paper roll

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
7
4.Printer Parameters
Print
Printing Method
Thermal Line
Printing Speed
Max:90mm/s
Resolution
203dpi(8dots/mm)
Effective Printing Width
48mm
Character
Character Set
ASCII Code,GBK,BIG5..
Print font
ANK:(9*17,12*24) Chinese:(24*24)
Paper spec.
Paper Type
Thermal Paper
Paper Width
57.5±0.5mm
Paper Roll Diameter
Max:30mm
Paper Thickness
60-85μm
Reliability
MCBF
5 million lines
Heating Head Temperature Detection
Thermistor
No Paper Dection
Photoelectric Detection
Interfaces
Serial/RS232/TTL/USB
Abrasion resistance
>100Km or 1 million pulses
Power(Adapter)
DC5-9V ≥2A
DC12V ≥2A
Physical
Outline Dimention
(W*L**H)
82*58*45mm
Installation Port Size
77*53mm
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%
5.PIN Defined Of Interfaces

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
8
Power
Signal name
Direction
Introduction
1.VH
Input
5-9V or 12V
2.NC
3.GND
Ground
PIN Of Serial Port
Signal name
Direction
Introduction
1.VH
POWER
2.TXD
Output
Transmit Data
3.RXD
Input
Receive Data
4.DTR
Data Termainal Ready
5.GND
Ground
USB
Signal name
Introduction
1.VUSB
+5V power
2.D-
Data Line Negative Poles
3.D+
Data Line Positive Poles
4.NC
5.GND
Ground
6.LED Indicator
When power on,the LED indicator will be on and off for 2 times with an interval of 1 second.
indicating that the printer is normal start. The LED indicators indicate current status as below:
Flash 1 time:Self-test is normal.
Flash 2 times:No printer detected.
Flash 3 times:No paper.
Flash 5 times:Heater of mechanism is overheated.
Flash 10 times:No Chinese font chip detected.
7.Command Introduction
7.1Command List
LF
Line feed
Printing 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 setting commands

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
9
ESC 2
Set default line space
ESC $
Set 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
ESC R n
International character sets
ESC t n
Select the character code page
ESC *
Bitmap vertical modulus data fillings
Bitmap 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
Tab Commands
ESC D
Set horizontal tabulation position
GS H
Set 1-D barcode readable character(HRI)
print position
1-D Barcoe Print Commands
GS h
Set 1-D barcoe hight
GS w
Set 1-D barcode width
GS k
1-D barcode
GS (
2-D barcode print
2-D Barcoe Print Commands
GS r n
Transmission status
Status Checking Commands
DLE EOT n
Real-time transmission status
ESC @
Printer reset
Other commands
DC2 T
Printing self-test page
7.2Commands 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

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
10
print position to initial position at the next line.
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
A4L User Manual
www.csntek.cn
11
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

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
12
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
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
hight,double width and underline),parameter n bit definition as below:
Bit Function Value

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
13
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
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
A4L User Manual
www.csntek.cn
14
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
0, 48
Remove underline mode

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
15
1, 49
Set underline mode(1 dot coarse)
2, 50
Set underline mode(2 dot coarse)
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 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、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
invalid.
Example
1b 40 1b 56 01
30 31 32 0d 0a
30 31 32 0d 0a

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
16
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
Cancel Chinese character mode
Name
Cancel Chinese character mode
Code
ASCII :FS .
DEC :28 46
HEX :1C 2E
Function
Cancel Chinese character mode
Range
None

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
17
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.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

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
18
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).
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 . . . .

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
19
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.
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

Xiamen Cashino Technology Co.,Ltd
A4L User Manual
www.csntek.cn
20
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
15
China
Range
0 ≤ n ≤ 15
Default
0
Notes
None
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 character code
Name
Select character code
Code
ASCII :ESC t n
DEC :27 116 n
HEX :1B 74 n
Function
Selects n from character code
N
Code Page
0
CP437 [U.S.A., Standard Europe]
1
KataKana
2
CP850 [Multilingual]
3
CP860 [Portuguese]
4
CP863 [Canadian-French]
5
CP865 [Nordic]
6
WCP1251 [Cyrillic]
7
CP866 Cyrilliec #2
8
MIK [Cyrillic /Bulgarian]
9
CP755 [East Europe,Latvian 2]
10
Iran
11
Reserve
12
Reserve
13
Reserve
Table of contents
Other Cashino Printer manuals

Cashino
Cashino PTP-III User manual

Cashino
Cashino CSN-A1X User manual

Cashino
Cashino CSN-A1K User manual

Cashino
Cashino CSN-A3 User manual

Cashino
Cashino KP-628E User manual

Cashino
Cashino PDM-02 User manual

Cashino
Cashino CSN-A2L User manual

Cashino
Cashino CSN-80V User manual

Cashino
Cashino EP-261B User manual

Cashino
Cashino CSN-A2 Series User manual

Cashino
Cashino KMP-II User manual

Cashino
Cashino CSN-A5 User manual

Cashino
Cashino KP-220 User manual

Cashino
Cashino PDM-02 User manual

Cashino
Cashino CSN-58III User manual

Cashino
Cashino PTP-III User manual

Cashino
Cashino POS80V User manual

Cashino
Cashino PTP-II User manual

Cashino
Cashino EP-260C-24V User manual