background image

PD02-058 User Manual 

·

1

·

 

 

1 INTRODUCTION .................................................................................................................................... 2 

1.1 POS-58A Receipt Printer ............................................................................................................... 2 
1.2 Feature............................................................................................................................................ 2 
1.3 Outline............................................................................................................................................ 2 
1.4 Caution........................................................................................................................................... 2 

2 SETTING UP THE PRINTER.................................................................................................................. 3 

2.1 Unpacking ...................................................................................................................................... 3 
2.2. Main frame.................................................................................................................................... 3 
2.3. Connecting the printer................................................................................................................... 3 

2.3.1 RS232 INTERFACE ........................................................................................................... 4 
2.3.2 PARALLEL INTERFACE .................................................................................................. 5 
2.3.3 USB INTERFACE .............................................................................................................. 5 
2.3.4 ETHERNET INTERFACE ................................................................................................. 5 

2.4 Connect the cash drawer ................................................................................................................ 6 

3 USING THE PRINTER ............................................................................................................................ 7 

3.1 Control Panel ................................................................................................................................. 7 
3.2 Online and Offtline ........................................................................................................................ 7 
3.3 Feed paper ...................................................................................................................................... 7 
3.4 Setting the print density ................................................................................................................. 7 
3.5 Setting the baudrate........................................................................................................................ 7 
3.6 Enter the test mode......................................................................................................................... 8 
3.7 Enter the debug mode .................................................................................................................... 8 
3.8 Install the paper roll ....................................................................................................................... 8 
3.9 Tear off paper ................................................................................................................................. 9 

4 ESC/POS PRINTING COMMAND SET ............................................................................................... 10 

4.1 Set of Command........................................................................................................................... 10 
4.2 Command detail ........................................................................................................................... 12 

4.2.1 Print Commands................................................................................................................ 12 
4.2.2  Line spacing setting command....................................................................................... 12 
4.2.3  Character command ....................................................................................................... 13 
4.2.4 Bit Image Command ......................................................................................................... 15 
4.2.5 Cash drawer control command.......................................................................................... 17 
4.2.6 Key control command ....................................................................................................... 17 
4.2.7 Init command .................................................................................................................... 17 
4.2.8 Status Command ............................................................................................................... 17 
4.2.9 Bar Code Command.......................................................................................................... 18 
4.2.10 Print Posiiton and Page Command.................................................................................. 20 

5. Sample Programming............................................................................................................................. 23 
APPENDIXA

CODE PAGE ................................................................................................................... 24 

APPENDIXB

International characters.................................................................................................... 26 

APPENDIXC

Arabic characters ............................................................................................................. 27 

 
 
 
 

 

Summary of Contents for POS-58A

Page 1: ...All specifications are subjec to change without notice POS 58A Receipt Printer User Manual ted ...

Page 2: ......

Page 3: ...rint density 7 3 5 Setting the baudrate 7 3 6 Enter the test mode 8 3 7 Enter the debug mode 8 3 8 Install the paper roll 8 3 9 Tear off paper 9 4 ESC POS PRINTING COMMAND SET 10 4 1 Set of Command 10 4 2 Command detail 12 4 2 1 Print Commands 12 4 2 2 Line spacing setting command 12 4 2 3 Character command 13 4 2 4 Bit Image Command 15 4 2 5 Cash drawer control command 17 4 2 6 Key control comman...

Page 4: ...25 UPC A UPC E EAN 8 EAN 13 Codebar Code39 Code93 Code128 Code11 MSI Font ASCII 12x24 8x16 Graphic printing Direct bitmap printing Page mode printing Paper Sensor Photo sensor Head tempeture detection Thermistor Communication Interface RS232 PARALLEL USB ETHERNET optional Cash drawer interace Support 12V 24V cash drawer Power supply 9V 3A Power 1W Idle 45W printing Head Life 50km Printing width 48...

Page 5: ... items are damaged or missed please co p 2 SETTING UP 2 1 Unpacking our printer box should include t Y ntack your dealer for assistance 2 2 Main frame Accord nication cable to the printer 2 3 Connecting the printer ing to the printer type connect the correct commu POS 58A S RS232 POS 58A L PARALLEL POS 58A U USB POS 58A E ETHERNET ...

Page 6: ...and host computer It use DB9 DTR XON XOFF flow control protocol k of the printer Commucation cable C Power supply connector N turned off 1 RS232 INTERFACE P RS232 interface support RTS CTS DSR Connect the printer as following picture RS232 PIN definition PIN SIGNAL IO DEFINITION 1 DCD NC 2 RxD O end the printer status to PC UT S 3 TxD IN Receive command and data from PC 4 DTR NC 5 GND GND 6 DSR OU...

Page 7: ...om PC 12 PE OUT P t aper error signal When it is high indication hat the printer is out of paper 13 SEL O onnect to 5V by a 47K resistor UT C 14 NC 15 ERR OUT ERROR When it is low the printer is in errorstatus It can be caused by out of paper or the printer head tempreture 16 17 NC 18 25 GND 2 3 3 USB INTERFACE POS 58AU use the B Type USB interface as the followed picture e USB driver first When t...

Page 8: ...drawer Connecting the cash drawer as the followed picture Cash drawer socket definiction PIN DEFINITION IO 1 GND 2 Cash drawer open control IN 3 4 24V POWER 5 Cash drawer open control IN 6 NOTE Use a drawer the matches the printer specification Using an improper drawer may damage the drawer as well as the printer ...

Page 9: ...POS 58A The default value is 9600 3 USING THE PRINTER 3 1 Control Panel 3 2 Online and Offtline T NOTE When powered up the printer will stay in the online mode When in online mode the printer receive and handle the data and command send by PC When in by PC When the printer is out of pape 3 3 Feed paper Pressing NOTE When the printer is out of paper the printer will not feed th 3 4 Setting the prin...

Page 10: ... it 3 Power up POS 58A 4 Release the feed button 5 Install the paper roll In debug mode POS 58A will prints all commands and datas in hexadecimal format as follows 1B21 001B 2602 4040 4040 020D 1B44 0A14 D 1E28 2828 0001 0A41 A 0D42 0A43 4343 4445 B CCCDE Note In debug mode POS 58AS POS 58AU will change the baudrate with online key Make sure the baudreate is your want please 3 8 Install the paper ...

Page 11: ...PD02 058 User Manual 9 3 9 Tear off paper Tear off the paper as shown ...

Page 12: ...ESC t n Select character code table ESC Select bit image mode GS Define downloaded bit image Bit Image Command GS Print downloaded bit image Cash drawer command ESC p Generate cash drawer control pulse Key Control Command ESC c 5 Enable disable panel buttons Init Command ESC Initialize printer ESC v Transmit paper sensor status ESC u Transmit peripheral device status Status Command GS a Enable Dis...

Page 13: ...D02 058 User Manual 11 GS nL nH Set absolute print Y position ESC nL nH Set relative print X position GS nL nH Set relative print Y position GS L nL nH Set left margin GS W nL nH Set printing area width ...

Page 14: ...l 0A Description LF prints the data in the print buffer and feeds one line When the print buffer is empty LF feeds one line ESC J n Print and feed paper ASCII ESC J n Decimal 27 74 n Format Hexadecimal 1B 4A n Description n 0 255 ESC J prints the data in the print buffer and feeds n dots The command will not change the setting set by command ESC 2 ESC 3 4 2 2 Line spacing setting command ESC 2 Sel...

Page 15: ... value is 0 This command is effective for all characters Character font 12x24 selected d Double Height mode not selected d ed BIT6 IT7 1 Underline mode selected 0 Underl d lected ESC SO Select Double Width mode The defau BIT0 0 1 Character font 8x16 selecte BIT1 BIT2 BIT3 1 Emphasized mode selected 0 Emphasized mode not selected BIT4 1 Double Height mode selected 0 BIT5 1 Double Width mode selecte...

Page 16: ...ESC n Enable Disable User defined Characters ASCII ESC n Decimal 27 37 n Format Hexadecimal 1B 25 n 1 Enable User defined character n Description n 0 Disable User defined character ESC s Define User defined characters ASCII ESC s n m w d1 d2 dx n m w Format Decimal 27 38 s n w m d1 d2 dx Hexadecimal 1B 26 s n w m d1 d2 dx De tion scrip character 3 24dots th 0 8 s 2 0 12 s 3 n User defined characte...

Page 17: ...merica U K 8 13 Korea 4 Denma 9 Select character code table Select an nal chara set n as fo 0 USA 5 Sweden 10 2 G 3 Japan rk 1 Norway ESC t n ASCII ESC t n Decimal n rmat adecimal n 27 116 Fo Hex 1B 74 De tion scrip a page n he character code table as follows 8 862 2 852 6 863 858 d1 d2 dk Select bit image mode Select from t 0 437 4 860 1 850 5 861 3 857 7 4 2 4 Bit Image Command ESC m nL nH ASCII...

Page 18: ...ri PI This command prints a downloaded bit cha In standard mod this comman s effective onl rint This c s ignore ownloade 51 ify bit image n Bit Image Mode tical DP zontal D 0 48 Normal 203DPI 203DPI 1 49 Double width 203DPI 101DPI 2 50 Double height 101DPI 203DPI 3 5 Q 1DPI 101DPI 1 uadruple 10 n 65 68 P o rint log 1 4 GS x y d1 dk Define downloaded bit image ASCII GS x y d1 dk Decimal 29 42 x y d...

Page 19: ...de 1 5 n Description el key n 0 ault imal 7 99 5 Format cimal B 63 3 n 1 Disable the pan Enable the panel key Def 4 2 7 Init com ESC Initialize the printer C mand ASCII ES Decimal 27 Format 64 Hexadecimal 1B 40 Description Initializes the printer ri er is cleared m to default value n dard mode 4 2 8 Status C ESC v Transmit aper sensor status ASC ESC v The p nt buff Reset the para retur to stan Del...

Page 20: ...B Disable Enable 3 4 5 l set busy n R status USY Disable Enable Disab e Enable whe in ERRO RTS B 6 7 When ASB is enabled the printer will send the changed status to PC ESC u Transmit peripheral devices status ASCII ESC u Decimal 27 117 Format Hexadecimal 1B 75 ion POS 58A don t sup Return s finetion bit0 POS 58A always return 0 back Descript port this command statu bytes de Drawer status bit4 0 4 ...

Page 21: ...ption This command selects the height of a barcode n specifies the number of dots in the vertical direction The default value is 50 1 n 255 GS w n Set bar code width ASCII GS w n Decimal 29 119 n Format Hexadecimal 1D 77 n Description This command selects the horizontal size of a barcode n 2 3 The default value is 3 GS k m d1 d2 dk NUL Print barcode symbology GS k m n d1 d2 dn ASCII GS k m d1 d2 d...

Page 22: ...mal 1B 4C Description This command set the printer into page mode Reset the current positioni to 0 0 Page width is 384 height is 512 FF Print the page buffer data and return to standard mode ASCII FF Decimal 255 Format Hexadecimal FF Description Print the page buffer data and return to standard mode ESC FF Print the page buffer data ASCII ESC FF Decimal 27 255 Format Hexadecimal 1B FF Description ...

Page 23: ...position Hexadecimal 1B 24 nL Description GS nL nH Set absolute Y position ASCII GS nL nH Decimal 29 36 nL nH Format Set absolute Y position Hexadecimal 1D 24 nL nH Description ESC nL nH Set relative X position ASCII ESC nL nH Decimal 27 92 nL nH Format Set relative X position Hexadecimal 1B 5C nL nH Description GS nL nH Set relative Y position ASCII GS nL nH Decimal 29 92 nL nH Format Set relativ...

Page 24: ... 22 PD02 058 User Manual 57 nL nH scription Set page width Hexadecimal 1D De ...

Page 25: ...o 1 putchar 27 putchar putchar 0 set print font putchar 27 putchar a putchar 0 set align left putchar 27 putchar a putchar 27 line height 27 8mm send print data putchar 27 putchar J putchar 120 Feed 15mm putchar 27 putchar 0 putchar 0 putchar 0 putchar 0 open drawer putchar 27 putchar putchar 0 set printer offline note 9 Logo command is necessary 9 Logo is used to printer the bitmap which is downl...

Page 26: ...Û Ù ý Ý F PC852 0 1 2 3 4 5 6 7 8 9 A B C D E F 8 Ç ü é â ä ů ć ç ł ë Ő ő î Ź Ä Ć 9 É Ĺ ĺ ô ö Ľ ľ Ś ś Ö Ü Ť ť Ł č A á í ó ú Ą ą Ž ž Ę ę ź Č ş B Á Â Ě Ş Ż ż C Ă ă D đ Đ Ď Ë ď Ň Í Î ě Ţ Ů E Ó ß Ô Ń ń ň Š š Ŕ Ú ŕ Ű ý Ý ţ F ˇ ű Ř ř PC857 0 0 1 2 3 4 5 6 7 8 9 A B C D E F 8 Ç ü é â ä à å ç ê ë è ï î I Ä Å 9 É æ Æ ô ö ò û ù İ Ö Ü ø Ø Ş ş A á í ó ú ñ Ñ Ğ ğ B Á Â À C ã Ã D º ª Ê Ë È Ç Í Î Ï Ì E Ó ß Ô Ò õ ...

Page 27: ... π Σ σ µ τ Φ Θ Ω δ φ ε F ⁿ C 6 P 8 3 0 1 2 3 4 5 6 7 8 9 A B C D E F 8 Ç ü é â Â à ç ê ë è ï î À 9 É È Ê ô Ë Ï û ù Ô Ü Ù Û ƒ A ó ú Î B C D E α ß Γ π Σ σ µ τ Φ Θ Ω δ φ ε F ⁿ C 5 P 8 8 0 0 1 2 3 4 5 6 7 8 9 A B C D E F 8 Ç ü é â ä à å ç ê ë è ï î ì Ä Å 9 É æ Æ ô ö ò û ù ÿ Ö Ü ø Ø ƒ A á í ó ú ñ Ñ ª º B Á Â À C ã Ã D ð Ð Ê Ë È Í Î Ï Ì E Ó ß Ô Ò õ Õ µ þ Þ Ú Û Ù ý Ý F ...

Page 28: ... 26 PD02 058 User Manual APPENDIXB International characters ...

Page 29: ...PD02 058 User Manual 27 APPENDIXC Arabic characters ...

Reviews: