Cashino CSN-A1X User manual

CSN-A1 user manual
1
CSN-A1X Micro panel printer
User Manual
Protocol: Lin Xiaopeng 2017.04.06
Audit : Hu Riyu 2017.04.08
Standardize:Liu Zhonghua 2017.04.09
Authorize: Wang Huanyong 2017.04.11

CSN-A1 user manual
2
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.
revision record
Item
Date
Description
Edited
page
Desing
Review
1
20170406
The first draft
Lin
Xiaopeng
Hu Riyu
2
20180409
Printer parameters
6.7.8
Zhu
Chunyan
Hu Riyu
3
20180523
Modify installation port size
6
Zhu
Chunyan
Hu Riyu
4
20170515
Add command 1B 4D n for setting font
type
15
Zhu
Chunyan
Hu Riyu
www.cashinotech.com

CSN-A1 user manual
3
Content
1. Product overview..........................................................................................................................6
2. Features.........................................................................................................................................6
3. Dimension......................................................................................................................................6
4. Specifications.............................................................................................................. ...7
5. Pin definition description.............................................................................................................8
7.Command Introduction............................................................................................................10
7.1 Command List.................................................................................................................. 10
7.2 Commands details...........................................................................................................12
①Printing and paper feed commands........................................................................12
Printing and paper feed.................................................................................................12
Enter................................................................................................................................. 13
Print and paper feed dots............................................................................................. 13
Print and paper feed n line........................................................................................... 13
②Printing set commands..............................................................................................14
Set print position.............................................................................................................14
Character right space setting....................................................................................... 14
Set line space as n dots................................................................................................14
Set horizontal and vertical movement units...............................................................15
Set line space to default................................................................................................15
Set character print font..................................................................................................16
Set character printing method......................................................................................16
Set character size.......................................................................................................... 17
Set、remove white printing.......................................................................................... 17
Set、remove underline................................................................................................. 18
Set、remove bold print................................................................................................. 19
Set、remove overlapping............................................................................................. 19
Set、cancel characters upside down......................................................................... 19
Set、remove 90°revolving printing............................................................................. 20
Allow、orbid key switch................................................................................................ 20
Set the left margin.......................................................................................................... 21
Set relative printing position......................................................................................... 21
Set printing alignment....................................................................................................22
Select、cancel user customized characters............................................................. 22
Define user customized characters.............................................................................22
Cancel user customized characters............................................................................25
Set / remove quadruple angle of Chinese print........................................................ 25
Set the Angle of Chinese character word space.......................................................26
Set up the Chinese characters to print mode combination.....................................26
Set Chinese mode......................................................................................................... 27
Exit Chinese character mode.......................................................................................27

CSN-A1 user manual
4
Set and cancel under line of Chinese character mode............................................27
Set and cancel under line of Chinese character mode............................................27
Selecting international character set...........................................................................28
Select character code....................................................................................................29
③Graphic printing command....................................................................................... 30
Fill Graphics vertical module data............................................................................... 30
Print Graphics horizontal module data....................................................................... 32
Define downloaded bitmap...........................................................................................33
Print downloaded bitmap.............................................................................................. 34
Define NV bitmap........................................................................................................... 35
Print NV bitmap.............................................................................................................. 38
Print bitmap..................................................................................................................... 39
Print MSB bitmap........................................................................................................... 40
④Tab Commands.......................................................................................................... 41
Horizontal tab..................................................................................................................41
Horizontal tab position setting......................................................................................42
⑤bar code command.................................................................................................... 43
bar code readable character(HRI) print position setting..........................................43
bar code readable character(HRI)font type selection.............................................. 43
bar code height setting..................................................................................................43
bar code width setting................................................................................................... 44
bar code printing.............................................................................................................44
⑥Printing QR code.......................................................................................................49
Mode type of QR code.................................................................................................. 49
Setting error correction level of QR code...................................................................50
Store QR code data to data buffer.............................................................................. 51
Printing QR code............................................................................................................ 51
Setting QR code graph information.............................................................................52
⑦Status querying Commands.....................................................................................55
Transmission status....................................................................................................... 55
Transit theprinter status to host................................................................................... 56
Transit printer ID.............................................................................................................57
Select peripherals.......................................................................................................... 58
Real-time transmission status......................................................................................59
Real-time pulse...............................................................................................................63
⑧Commands in page print mode............................................................................... 64
Forms feed...................................................................................................................... 64
Data print in page print mode.......................................................................................64
Page print mode select................................................................................................. 64
Line print mode select................................................................................................... 65
Character development angle select in page print mode....................................... 65
Page print mode print area setting..............................................................................66
Vertical absolute position setting in page print mode.............................................. 67
Vertical relative position setting in page print mode.................................................68

CSN-A1 user manual
5
⑨Other commands........................................................................................................68
Printer reset.....................................................................................................................68
Print self-test page......................................................................................................... 69

CSN-A1 user manual
6
1. Product overview
Name Micro panel printer
Model: CSN-A1X
Mounting port size: 73.1 (wide) *73.55 (high) mm
Embedding depth: 34.65mm
Application: medical printing equipment, measuring equipment,
Safety equipment, on-board printing equipment,
ID automation equipment, catering and retail,
EFTs POS machines, tax control printers, gas stations
2. Features
Smart appearance
Button control panel can be selected
Easy paper loading
Low noise thermal printing
Different interfaces optional
Easily embedded in various instruments and meters
Supports ESC/POS printing command
3. Dimension

CSN-A1 user manual
7
Suggested installation port size : 73±0.1X73.45±0.1MM
4. Specifications
Printing
Printing Method
Thermal line printing
Printing speed
Max 90mm/s
Resolution
203dpi(8 dots/mm)

CSN-A1 user manual
8
Printing Width
48mm
Feeding accuracy
0.0625mm
character
Character set
ASCII,GBK,BIG5 etc.
Font
ANK : (9*17,12*24) Traditional
Chesese:(24*24)
Paper roll
specificati
ons
Paper type
Thermal paper
Paper width
57.5±0.5mm
Paper roll diameter
Max40mm
Paper thickness
60-85μm
Heating head temperature detection
Via thermistor
Paper end detection
Photoelectric detection
Baud rate
9600bps-115200bps
Interface
串口(RS232,TTL)/USB
Printer head reliability
100Km,or 1 million pulsed
Power supply
DC5-9V,≥2A
DC12V,≥2A
Phy
sical
Properties
Dimension(WXLXH)
76.8*77.4*47.7mm
Embedded port size
73.1*73.55mm
color
black/beige/white
Embedding depth
34.65mm
Environment
Operating Temp
0°C~50°C
Operating Humidity
20%~85% RH
Storage Temp
-20°C~60°C
Storage Humidity
5%~90% RH
5. Pin definition description

CSN-A1 user manual
9
Power XH03/2.54mm
No.
Pin
Definiton
1
VH
power
2
null
3
GND
ground
RS232 PH04/2.0mm
No,
Pin
Deifinition
1
DTR
Flow control
2
TXD
Data send
3
RXD
Data receive
4
GND
Ground
TTL PH04/2.0mm
No.
Pin
Definiton
1
DTR
Flow control
2
TXD
Data send
3
RXD
Data receive
4
GND
Ground
6. Basic usage
6.1 Self-test page printing
Press the K1 button on the control board to print a self - test page.
6.2 LED indicator
After power on, the red status indicator light on the control board will be on and off twice,
with an interval of 1 second, indicating that the start is normal. Afterwards, the indicator
light is shown as below,
Flash 1: working normally
Flash 2: the mechanism is not connected or the temperature is too low
Flash 3: paper end
Flash 5: Mechanism is overheating
6.3 Paper roll installation
1. Open the printer upper cover;
2. Put the back of the roll up;
3. close the upper cover of the printer and leave the paper slightly exposed.
Note: before installing the paper roll, please tear the adhesive paper affixed on the paper
roll clean, No foreign matter shall remain, to protect the printer head.

CSN-A1 user manual
10
7.Command Introduction
7.1 Command List
ESC Command
ESC !
Set character printing method
ESC - n
Set and delete underline
ESC E n
Set and delete bold printing
ESC G n
Set and delete overlapping printing
ESC{n
Set and delete inversion printing
ESC V n
Set and delete 90°rotate printing
ESC 1
Set line space n dots(same as ESC3)
ESC 2
Set default line space
ESC 3
Set line space n dots
ESC *
Bitmap vertical modulus data fillings
ESC d
Print and paper feed n lines
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 D
Set horizontal tabulation position
ESC J
Print and paper feed n dots
ESC p
Produce cashdrawer pulse
ESC c 5 n
Allow or prohibit to switch printer by button
ESC C
Undefined
ESC T n
Set printing direction in page print mode
ESC u
Peripheral device status transmission
ESC v
Printer status transmission
ESC i
Full cuts
ESC @
Printer reset
ESC =
Select peripherals device
ESC a
Setting position alignment mode
ESC $ nL nH
Set absolute print position
ESC \ nL nH
Set relative print position
ESC W
Page print mode print area setting
ESC L
Page print mode select
ESC S
Line print mode select
ESC FF
Data print in page print mode
ESC SP n
Character right space setting
ESC Z
QR code print
ESC M n
Set character print font

CSN-A1 user manual
11
ESC m
Partly cuts
ESC q
Undefined
ESC Q
Undefined
GS Command
GS ! n
Set character size
GS *
Define download bitmap
GS / m
Print download bitmap
GS :
Start or end macro definition
GS ^ r t m
Run macros
GS V m
Choose cut mode and cut
GS P x y
Set horizontal and vertical movement units
GS I n
Printer ID transmission
GS B n
Set and delete white printing
GS b
Undefined
GS H
Set 1-D barcode readable character(HRI)
print position
GS f n
Set HRI character
GS h
Set 1-D barcoe hight
GS w
Set 1-D barcode width
GS k
1-D barcode
GS L nL nH
Set left margin amount
GS a n
Allow or prohibit to upload the status automatically
GS r n
Transmission status
GS v
Transfer printer status to host
GS v 0
Bitmap horizontal modulus data print
GS (
2-D barcode print
GS $nL nH
Vertical absolute position setting in page print mode
GS \ nL nH
Vertical relative position setting in page print mode
FS Command
FS !n
Kanji printing mode stored setting
FS &
Set Chinese character mode
FS .
Delete Chinese character mode
FS q
Define NV bitmap
FS p n m
Print NV bitmap
FS W n
Kanji quadruple size printing specification/
cancellation
FS – n
Set and delete kanji character underline
FS S n1 n2
Kanji character space Setting
FS 2
Undefined
FS A
Undefined

CSN-A1 user manual
12
US Command
US Q
Print double QR CODE
US A
Set paper type
DLE Command
DLE EOT n
Real-time transmission status
DLE ENQ n
Real-time request
DLE DC4 fn m t
Real- time pulse
DC2 command
DC2 T
Printing self-test page
DC2 *
Print bitmap
DC2 V
Print MSB bitmap
DC2 v
Print LSB bitmap
LF
Line feed
CR
Enter
FF
Forms feed
HT
Horizontal tab
SO
Paper feed to initial position at the next label
7.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.
Range
None
Default
None
Notes
None

CSN-A1 user manual
13
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 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

CSN-A1 user manual
14
②Printing set commands
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
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
Character right space setting
Name
Character right space setting
Code
ASCII :ESC SP n
DEC :27 32 n
HEX :1B 20 n
Function
Character right space setting as (n*0.125mm)
Range
0 ≤ n ≤ 255
Default
n = 0
Notes
When characters double width,Character right space is twice
of normal.When characters amplified,Character right space is n
times of normal.
This command doesn’t affect the setting of Chinese
characters.
This command sets the standard values independently in
each mode.
Example
None
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

CSN-A1 user manual
15
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 horizontal and vertical movement units
Name
Set horizontal and vertical movement units
Code
ASCII :GS P x y
DEC :29 80 x y
HEX :1D 50 x y
Function
Horizontal movement unit =25.4/x mm(1/x inch)
Vertica movement unit =l25.4/y mm(1/y inch)
When set X=0,Y=0, X and Y will display default value.
Range
0 ≤ x ≤ 255,0 ≤ y ≤ 255
Default
x=180,y=360
Notes
None
Example
None
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

CSN-A1 user manual
16
It can use ESC 3 to define line space.
Example
None
Set character print font
Name
set character print font
Code
ASCII :ESC M n
DEC :27 77 n
HEX :1B 4D n
Function
set character print font
parameter n bit definition as below
n = 0,font 12*24
n = 1,font 9*17
Range
None
Default
n = 0
Notes
The command is effective with character.
The command is disabled when ESC@, printer reset or blackout.
Example
1B 40 1B 4D 00 30 31 32 0D 0A
1B 40 1B 4D 01 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
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

CSN-A1 user manual
17
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
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

CSN-A1 user manual
18
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
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.

CSN-A1 user manual
19
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 bold print
Name
Set 、remove bold print
Code
ASCII :ESC E n
DEC :27 69 n
HEX :1B 45 n
Function
Set and remove bold print
set and remove bold print
When LSB of n is 0, remove bold print mode
When MSB of n is 1, set bold print mode
Range
0 ≤ n ≤ 255
Default
n = 0
Notes
Only allow to use when LSB of n
Example
None
Set、remove overlapping
Name
Set 、remove overlapping
Code
ASCII :ESC G n
DEC :27 71n
HEX :1B 47 n
Function
Set and remove overlapping print mode
When LSB of n is 0,remove overlapping print mode
When MSB of n is 1,set overlapping print mode
Range
0 ≤ n ≤ 255
Default
n = 0
Notes
Only allow to use when LSB of n
The printer output is the same in overlapping mode and bold mode
Example
None
Set、cancel characters upside down
Name
Set、cancel characters upside down
Code
ASCII :ESC {n

CSN-A1 user manual
20
DEC :27 123 n
HEX :1B 7B n
Function
n=1:set character upside down
n=0:cancel character upside down
Default
n=0
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
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
Allow、orbid key switch
Name
Allow and forbid key switch
Code
ASCII :ESC c 5 n
DEC :27 99 53 n
HEX :1B 63 35 n
Function
n=1, Forbid key switch
n=0, Allow key switch
Default
n = 0
Notes
None
Example
None
Table of contents
Other Cashino Printer manuals

Cashino
Cashino CSN-A2L User manual

Cashino
Cashino EP-260C-24V User manual

Cashino
Cashino CSN-A2 Series User manual

Cashino
Cashino CSN-A3 User manual

Cashino
Cashino PDM-02 User manual

Cashino
Cashino CSN-80V User manual

Cashino
Cashino CSN-A4L User manual

Cashino
Cashino EP-261B User manual

Cashino
Cashino KMP-II User manual

Cashino
Cashino POS80V User manual

Cashino
Cashino KP-628E User manual

Cashino
Cashino PDM-02 User manual

Cashino
Cashino PTP-II User manual

Cashino
Cashino PTP-III User manual

Cashino
Cashino CSN-A5 User manual

Cashino
Cashino CSN-58III User manual

Cashino
Cashino CSN-A1K User manual

Cashino
Cashino KP-220 User manual

Cashino
Cashino PTP-III User manual