The past couple days I was on a mission to look for a way to replace our aging dot-matrix receipt printer. We got some new printers to go with our new credit card processor. These printers are Epson TM-T20 thermal printers. I had some problems finding the information to have the printer cut the paper and to get it to eject the cash drawer. I am documenting what I found here for people in the future to figure out.
You need these codes embedded in the spool file. The first hex character,
03, tells the OS we are sending ASCII characters. The second,
06, tells the OS that the next x characters are ASCII.
- To cut the paper –
- To eject the cash drawer 1 –
- To eject the cash drawer 2 –