background image

Xiamen Cashino Technology Co., Ltd.

KP-628E User manual

www.cashinotech.com

35

normal and double-width modes, and (for the height n

2 of the NV

bitmap) in double height and quadruple modes, regardless of the line
space specified by ESC 2 or ESC 3.

After printing the bitmap, this command sets the print position to the

beginning of the line and processes the data that follows as normal data.

Example

None

Tab Commands

Horizontal tab

Name

Horizontal tab

Code

ASCII

HT

DEC

9

HEX

09

FUNCTION

Move the print position to the next tab position

Parameter
range

None

Defaults

None

Notes

Tab position set by ESC D
If the tab position is not set(the default is no horizontal position),this
command will be treated as an LF command
If the tab position exceeds the print area, the coordinates will move to the
star position of the next line(as the data is full, print and wrap)

Example

none

Horizontal tab position setting

Name

horizontal tab position setting

Code

ASCII

ESC D [d]k NUL

DEC

27 68 [d]k 0

HEX

1B 44 [d]k 00

Function

Set horizontal tab position, parameter meaning as below:
d1 ... dk

horizontal position, in 8 as unit, null as the terminator

Parameter
range

XX58

1 ≤ d ≤ 46

d1 <d2 < …… dk

1 ≤ k ≤ 16

XX80

1 ≤ d ≤ 70

d1 < d2 < …… dk

1 ≤ k ≤ 16

Defaults

The default positioning position is the 8-character interval(Column 9 17 25...)
of the font A(12-24)

Support
model

All

Notes

Tab position as below

Summary of Contents for KP-628E

Page 1: ... 2017 04 08 Standardize Liu Zhonghua 2017 04 09 Approved 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 ...

Page 2: ...e Description Edited page Desing Review 1 20170406 The first draft Lin Xiaopeng Hu Riyu 2 20180409 Printer parameters 6 Zhu Chunyan Hu Riyu 3 20180529 Add to remove cutter jam and paper jam 11 Zhu Chunyan Hu Riyu 4 20180619 Modify power supply specifications 6 Zhu Chunyan Hu Riyu 5 2018 6 27 Add naming rules 5 Zhu Chunyan Hu Riyu ...

Page 3: ...mmands 13 Printing and paper feed 13 Enter 13 Print and paper feed n dots 13 Print and paper feed n line 14 Printing set commands 14 Set line space as n dots 14 Set line space to default 14 Set print position 15 Set the left margin 15 Set character printing method 16 Set character size 17 Set remove white printing 17 Set remove underline 18 Set remove 90 revolving printing 19 Set printing alignmen...

Page 4: ...ds 35 Horizontal tab 35 Horizontal tab position setting 35 One dimension bar code command 36 1D bar code readable character HRI print position setting 36 1D bar code height setting 36 1D bar code width setting 37 1D bar code printing 37 Status querying Commands 43 Real time transmission status 43 Two dimensional bar code commands 46 Printing double QR code 51 Other commands 52 Printer reset 52 Pri...

Page 5: ...ard 1 2 Product feature 1 Different paper feed direction 90 degree and 180 degree 2 Auto paper loading no paper detection function 3 For self service ticket machines and other self service terminal equipment products 4 Support partial cut and full cut 5 Paper roll placement support horizontal vertical selection 2 Naming rules KP 628E M RU A 08 H S 1 2 3 4 5 6 7 1 Model number KP 628E 2 Default fun...

Page 6: ...232 T TTL TU TTL USB RU RS232 USB 4 Default function Cutter A Full half cut 5 Default function 08 Ø80mm 0 without paper roll holder 6 Default function Paper roll holder H Horizontal V Vertical N None 7 Optional function Paper near end detection S with detection N without detection 3 Dimension 4 Specifications ...

Page 7: ...Max 80mm Min 13mm Head temperature detection Thermistor Paper out detection Detected by photo interrupter Buadrate 9600bps 115200bps Interface Serial RS232 TTL USB Power adapter DC5 9V 3A Suggest more than 7 4V DC12V 2A Dimension W L H 100 5 80 67 95mm Barcode 1D UPC A UPC E EAN 13 EAN 8 CODE39 ITF2 5 CODABAR 2D QR Code Reliability Head 50km or 100 million pulses or more Auto cutter 1 000 000 cuts...

Page 8: ...und 2 RXD Receive data 3 TXD Transmission data 4 DTR Request to send Data terminal ready Power XH02 2 54mm Terminal No Signal Name Description 1 VH Power supply 2 GND Ground Mini USB Terminal No Signal Name Description 1 VUSB 5v power supply 2 D Differential Data Input Output D 3 D Differential Data Input Output D 4 GND Signal ground 6 Basic usage ...

Page 9: ... 3 seconds printer will print a self gets page 6 2 LED reminder Power on then green power light is on red ERROR light is flash statues as following Flash 1 time Working properly Flash 2 times Printer head is not connected or temperature is too low Flash 3 times No paper Flash 4 times Cutter error Flash 5 times Printer head overheating Flash 6 times Platen open 6 3 Paper roll placed KP628E has two ...

Page 10: ... 628E User manual www cashinotech com 10 Vertical 6 4 Paper roll installation The printer is powered up the paper is facing upside down and the printer is loaded with the paper Then printer will auto feed paper as the following figure 1 ...

Page 11: ...ork and then remove the paper jam and finally clear the paper path residual scraps How to remove cutter jam Reset the cutter by turning printer off and then on If cutter is still jammed turn the cutter worm gear to make the cutter return to its normal position 7 Command Instruction 7 1 Command List LF Line feed Print paper feed Command CR Enter ESC J n Print and paper feed n dots ESC d n Print and...

Page 12: ...l character ESC t n Select the character code page ESC m Hl Hh d k Bitmap vertical modulus data fillings Bitmap Command GS v 0 Bitmap horizontal modulus data print GS x y Define Downstream bitmap GS m Print Downstream bitmap FS q n Define NV bitmap FS p n m Print NV bitmap HT Horizontal tab Tab Command ESC D d k NUL Set horizontal tabulation position GS H n Set 1 D barcode readable character HRI p...

Page 13: ...ter 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 Ra...

Page 14: ...rinting 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 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 a...

Page 15: ...rint 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 Set the left margin Name Set the left margin C...

Page 16: ...ine parameter n bit definition as below Bit Function Value 0 1 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...

Page 17: ...mal 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 print...

Page 18: ...e 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 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 se...

Page 19: ... 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 ali...

Page 20: ...CII 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 Code ASCII FS DEC 28 46 HEX 1C 2E Function Exit Chinese character mode cancel Chinese character mode Range None Default No...

Page 21: ...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 th...

Page 22: ...h com 22 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 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 ...

Page 23: ... 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 charac...

Page 24: ... 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 CP8...

Page 25: ...CP1256 Arabic 35 WCP1258 Vietnam 36 ISO 8859 2 Latin 2 37 ISO 8859 3 Latin 3 38 ISO 8859 4 Baltic 39 ISO 8859 5 Cyrillic 40 ISO 8859 6 Arabic 41 ISO 8859 7 Greek 42 ISO 8859 8 Hebrew 43 ISO 8859 9 Turkish 44 ISO 8859 15 Latin 9 45 Thai2 46 CP856 47 Cp874 252 CP932 SHIFT_JIS 253 UNICODE UCS 2 254 BIG5 255 GBK Range 0 n 255 Default 0 Notes None Example 1B 40 1C 2E 1B 74 00 80 81 82 83 84 85 86 87 88...

Page 26: ...al scale vertical scale 0 8dots single density 2 3 1 8dots double density 1 3 32 24dots single density 2 1 33 24dots double density 1 1 Hl Hh is horizontal direction dots Hl 256 Hh d k is bit map data K used for indicating bit map data bytes not for transfer Parameter range XX58 m 0 1 32 33 1 Hl Hh 256 384 0 d 255 k Hl Hh 256 when m 0 1 k Hl Hh 256 3 when m 32 33 XX80 m 0 1 32 33 1 Hl Hh 256 576 0...

Page 27: ...o make graphic and other information print simultaneously After filling bitmap you can use ESC J n 24 command to print and also can use LF command to print But using LF command will cause paper feeding feeding paper according to the line space and make graphic continuous between different lines And can set line space as 0 to avoid feeding too much Dot matrix printer may drift when it starts pls se...

Page 28: ...d for indicating not for transfer Parameter range XX58 0 m 3 48 m 51 1 xL xH 256 48 0 yL 255 0 yH 255 0 d 255 k Hl Hh 256 yL yH 256 XX80 0 m 3 48 m 51 1 xL xH 256 72 0 yL 255 0 yH 255 0 d 255 k Hl Hh 256 yL yH 256 Default None Notes d k corresponding bit is 1 which means that this bit can print While it is 0 it means that this bit can not print If the horizontal bytes exceed printing area then the...

Page 29: ...D 2A x y d1 d x y 8 Function using x and y to appoint dots to define the downloaded bitmap x appoints that the horizontal dots as 8 x y appoints that the vertical dots as 8 y Parameter range 1 x 255 1 y 48 x y 1536 0 d 255 Default None Notes If x y is out of the specified range this command will be forbidden The d indicates bitmap data Data d specifies the printing bit as 1 and the not printing bi...

Page 30: ...FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 1D 2F 00 Print downloaded bitmap Name Print downloaded bitmap Code ASCII GS m DEC 29 47 m HEX 1D 2F m Function Prints a downloaded bitmap using the mode specified by m Using the mode that m appointed to print downloaded bitmap m Model 0 48 Normal 1 49 Double width 2 50 Double height 3 51 Quadruple Param...

Page 31: ...H d1 dk n DEC 28 113 n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n HEX 1C 71 n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n Function Define the NV bitmapusing the specifiedn n specifies the number of the defined NV bitmap xL xH means that the defined NV bitmap specifies the horizontal dots as xL xH 256 8 yL yH means that the defined NV bitmap specifies the vertical dots as yL yHx256 8 Parameter range 1 n 2...

Page 32: ...processed normally When the data volume exceeds the left capacity of the range defined by xL xH yL and yH the printer will process the range defined by xL xH yL and yH outside the defined range In the first group of NV bitmaps when any one of xL xH yL yH is out of the definition range this command is disabled In groups of NV bitmaps other than the first group when xL xH yL yH out of the defined ra...

Page 33: ... bytes The printer does not transmit ASB status or perform status detection during processing of this command even when ASB is specified Once an NV bitmap is defined it is not erased by performing ESC reset and power off This command performs only definition of an NV bitmap and does not perform printing Printing of the NV bitmap is performed by the FS p command Diagram when xL 64 xH 0 yL 96 yH 0 ...

Page 34: ...le Parameter range 0 m 3 48 m 51 1 n 255 Default None Support All Notes n is the number of the NV bitmap defined using the FS q command m specifies the bitmap mode NV bitmap is a bitmap defined in non volatile memory by FS q and printed by FS p This command is not effective when the specified NV bitmap has not been defined In standard mode this command is effective only when there is no data in th...

Page 35: ...Tab position set by ESC D If the tab position is not set the default is no horizontal position this command will be treated as an LF command If the tab position exceeds the print area the coordinates will move to the star position of the next line as the data is full print and wrap Example none Horizontal tab position setting Name horizontal tab position setting Code ASCII ESC D d k NUL DEC 27 68 ...

Page 36: ...n changes simultaneously The command setting will be valid after ESC printer reset power off Example 1B 44 04 06 08 0A 00 09 30 09 31 09 32 09 33 0D 0A One dimension bar code command 1D bar code readable character HRI print position setting Name 1D bar code readable character HRI print position setting Code ASCII GS H n DEC 29 72 n HEX 1D 48 n Function Set 1D bar code readable character HRI print ...

Page 37: ...The command setting will be valid after ESC printer reset power off Example None 1D bar code width setting Name 1D bar code width setting Code ASCII GS w n DEC 29 119 n HEX 1D 77 n Function Parameter n specifies the unit of a bar code in dots Parameter range 1 n 6 Defaults n 2 Noted The command setting will be valid after ESC printer reset power off Example None 1D bar code printing Name 1D bar co...

Page 38: ...the bar code data for sign no transmission Parameters relationship as below Command A m Coding system Bar code length SP show space Data lengt h k Character set Data d 0 UPC A fixed k 11 12 0 9 48 d 57 1 UPC E fixed 6 k 8 k 11 12 0 9 48 d 57 when k 7 8 11 12 d1 48 2 JAN13 EAN13 fixed k 12 13 0 9 48 d 57 3 JAN8 EAN8 fixed k 7 8 0 9 48 d 57 4 CODE39 chan geab le 1 k 0 9 A Z SP 48 d 57 65 d 90 d 32 3...

Page 39: ... 12 13 0 9 48 d 57 68 JAN8 EAN8 fixe d n 7 8 0 9 48 d 57 69 CODE3 9 cha nge able 1 n 0 9 A Z SP 48 d 57 65 d 90 d 32 36 37 42 43 45 46 47 70 ITF Interlea ved 2 of 5 cha nge able 2 n 255 even numbers 0 9 48 d 57 71 CODAB AR NW 7 cha nge able 1 n 0 9 A D a d 48 d 57 65 d 68 97 d 100 d 36 43 45 46 47 58 65 d1 68 65 dk 68 97 d1 100 97 dk 100 72 CODE9 3 cha nge able 1 n 255 00H 7FH 0 d 127 73 CODE1 28 ...

Page 40: ...h NULL m parameter is 65 74 B barcode data n stand for data length K is for sign no transmission When print UPCA m 0 or 65 Please pay attention for the following points Whatever the input data length is 11 or 12 the check bit is automatically inserted or corrected Initial character central split character and terminator are inserted automatically When print UPCE m 1 or 66 Please pay attention as f...

Page 41: ...r encoder is automatically inserted When middle of the data encounter the encoder regard it as terminator the other data as the normal data The check bit could not calculate and add automatically When print ITF25 m 5 or 70 please pay attention as following Initial character and terminator inserted automatically The check bit could not calculate and add automatically When print CODABAR NW 7 m 6 or ...

Page 42: ...I Dat a part Che ck bit A FN C1 AI Dat a part Che ck bit A Che ck bit B Ter min ator Inserted automatica lly d1 dk Inserted automatica lly The encoding system intelligently identifies data and implements minimum length encoding without the user set character include starting character set or switch character Function character FNC1 FNC4 use C1H C4H and input it User input data AI which do not need...

Page 43: ...3 34 35 36 41 1d 6b 49 08 41 30 32 33 34 35 36 41 Status querying Commands Real time transmission status Name Real time transmission status Code ASCII DLE EOT n DEC 16 4 n HEX 10 04 n Function According to below parameters transit the real time status of printer n stands for printer status N 1 transmit printer status N 2 transmit off line status N 3 transmit error status N 4 transmit paper sensor ...

Page 44: ...n Printer executed immediately after received the command The command only effective for serial printer Printer start to work immediately after receiving this command at any situation n 1 printer status Bit 0 1 Hexadecimal Decimal Function 0 0 00 0 Fixed to be 0 1 1 02 2 Fixed to be 1 2 0 00 0 Two drawers kick no drawer fixed to be 0 1 04 4 Turn off two cash drawer 3 0 00 0 On line 1 08 8 Off line...

Page 45: ... 0 0 00 0 Fixed to be 0 1 1 02 2 Fixed to be 1 2 Undefined 3 0 00 0 No cutter error 1 08 8 Cutter error 4 1 10 16 Fixed to be 1 5 0 00 0 No unrecoverable error 1 20 32 Unrecoverable error 6 0 00 00 Printer head temp and voltage are normal 1 40 64 Printer head temp and voltage are exceed 7 0 00 0 Fixed to be 0 Unrecoverable error abnormal input voltage Automatic recovery error refers to the printin...

Page 46: ...r 1 0C 12 Paper near end 4 1 10 16 Fixed to be 1 5 6 0 00 0 Paper 1 60 96 Paper end 7 0 00 0 Fixed to be 0 Example 10 04 01 10 04 02 10 04 03 10 04 04 Two dimensional bar code commands Mode type of QR code Name Mode type of QR code Code ASCII GS k pL pH cn fn n Decimal 29 40 107 pL pH cn fn n Hexadecimal 1D 28 6b pL pH cn fn n Function Setting mode type of QR code Parameter range pL 3 pH 0 cn 49 f...

Page 47: ... range pL 3 pH 0 cn 49 fn 69 48 n 51 Default n 48 Notes Setting error correction level of QR code n Function Approximate Amount of correction 4 8 Error correction level L 7 4 9 Error correction level M 15 5 0 Error correction level Q 25 5 1 Error correction level H 30 Example None Store QR code data to QR code data buffer Name Store QR code data to QR code data buffer Code ASCII GS k pL pH cn fn m...

Page 48: ...6b pL pH cn fn m Function Printing QR code Parameter range pL 3 pH 0 cn 49 fn 81 m 48 Default None Notes Printing QR code Users must consider QR code graph space The space of up and down left and right of QR code graph is specified in the specification Example 1b 40 1d 28 6b 03 00 31 43 03 1d 28 6b 03 00 31 45 30 1d 28 6b 06 00 31 50 30 41 42 43 1b 61 01 1d 28 6b 03 00 31 52 30 1d 28 6b 03 00 31 5...

Page 49: ... Separator 1FH 31 1byte Fixed Value 31H 49 1byte Separator 1FH 31 1byte Other Information 30H or 31H 48 or 49 1byte NUL 00H 0 1byte Parameter range pL 3 pH 0 cn 49 fn 82 m 48 Default None Notes This command do not print QR code graph Users must consider QR code graph space The space of up and down left and right of QR code graph is specified in the specification Example None Printing QR code Name ...

Page 50: ... damaged n specify a safety and stable recovery 1 n 8 K defines horizontal and vertical ratios 2 K 5 d is the data length and contains 2 bytes dL the first byte is the low order byte dH the second byte is the high order byte d1 dn is bar code data affect PDF417 type by the bar code width command QR CODE bar code type 2 m specify version flag 1 40 0 auto size N specify EC level L 7 M 15 Q 25 H 30 K...

Page 51: ...c2 v2 dk dm HEX 1F 51 m n p1H p1L l1H l1L ecc1 v1 d1 dn p2H p2L 12H l2L ecc2 v2 dk dm Function Printing double QR code Range QR code numbers 0 m 3 QR code size n 1 8 P1H p1L specify the location of QR1 p1H 256 p1L L1H l1L specify the data length of QR1 l1H 256 l1L Ecc1 specify error correction level about QR1 0 7 1 15 2 25 3 30 V1 specify QR1 version of the symbol 1 40 0 auto size D1 d2 as the dat...

Page 52: ...ame Printer reset Code ASCII ESC Decimal 27 64 Hex 1B 40 Function The ESC command initializes the printer as following This command prints the data contained in the print buffer and initializes various setup items Restore default values for each parameter Range None Default value None Notes None Example None Print self test page Name Print self test page Code ASCII DC2 T Decimal 18 84 Hex 12 54 Fu...

Page 53: ... command is valid only at the beginning of the line m 0 48 1 49 Printer cut paper directly m 65 66 Feeds paper to The distance between the print position and the cutter n vertical motion unit and cuts the paper Moving units horizontally and vertically are set by the GS p command The feed volume is calculated by moving units vertically Example 1B 40 30 30 30 0D 0A 1D 56 00 30 30 30 0D 0A 1D 56 01 3...

Page 54: ...gy Co Ltd KP 628E User manual www cashinotech com 54 Partial cut Name Partial cut Code ASCII ESC m Decimal 27 109 Hex 1B 6D Function Partial cut mode Range None Default value None Notes None Example 1B 40 30 30 30 0D 0A 1B 6D ...

Reviews: