简体   繁体   中英

What is the Esc/Pos Epson thermal printer command to set 58mm roll width?

I have to control a thermal printer Epson TM-T20 with raw ESC/POS command.

Usually I work with 80mm roll and I don't need to set particular command or configuration. Now I need to prepare a template for a 58mm roll and I guess I need to tell the printer the printer width, for sure, I need it to use the ESC a (text align) command to print centered text.

Does anyone can tell me how to handle width with these printers?

rewritten with correct information

You can use these commands.

GS ( E <Function 1>
GS ( E <Function 5>
GS ( E <Function 2>

However, vendors do provide configuration tools for these uses and make them available for download.
It's safer and more reliable to use this configuration tool.
TM-T20 Utility

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM