Invalid ESC/POS commands
Hi,
I have observed some strange behaviour with certain receipt printers, specifically the EPSON TM-T88 series.
Using your standard receipt layout they sometimes miss part of the receipt or corrupt the print.
I have analysed the data being sent to the printer and it seems to me that the EPOS software is sending some invalid commands (according to EPOS reference documentation).
In the example below I have highlighted the commands that I believe may be wrong, I would be grateful if you could let me know if I have misinterpreted the data and confirm if you believe these commands are sent by your software?
Thanks for your help
==========================================
Debit Card: #19.42
------------------------------------------
Paid amount: #19.42 CR LF
ESC @ - Initialise printer
ESC a00 - Left alignment
ESC !00 - Set print mode = Font A + Not emphasised + Not dbl height + not underlined
ESC R03 - Set character set = UK
LF
ESC @ - Initialise printer
ESC R03 - Set character set = UK
LF
ESC a01 - centre alignment
GS h P - set barcode height = 0x50
GS w 01 - Set barcode width = 0x01 which is an invalid value
GS f 00 - Select font for HRI characters = Font A
GS H 02 - Select HRI position = Below barcode
GS k E 0x0d 21-200-000033 - Print the barcode = CODE39 with 0x0d characters (21-200-000033)
GS d 03 ********* INVALID *******************
CR LF
GS @ *********** INVALID ******************
ESC @ - Initialise printer
LF
LF
LF
ESC i - partial cut
Please sign in to leave a comment.
Comments
0 comments