General discussion

Locked

Sending Escape Codes to a Printer

By jjclark ·
I'm trying to write a DOS batch file to send escape codes to a Star Micronics TSP600 series receipt printer. I have the Code, Hex, and ASCII commands, but I can't seem to figure out which to use or what syntax to use.

CODE: <ESC><FS> "p" 1 0
HEX: 1B 1C 70 1 0
ACSII: 27 28 112 1 0

I'm also trying to initialize the printer which uses the following codes:

CODE: <CAN>
HEX: 18

Star's tech support wasn't much help. Any assistance would be greatly appreceiated.

Thanks!

john

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Sending Escape Codes to a Printer

by bigduck In reply to Sending Escape Codes to a ...

assuming your printer is connected to the LPT1 port
put this line in you batch file:
copy lpt1 27 28 112 1 0

Collapse -

Sending Escape Codes to a Printer

by jjclark In reply to Sending Escape Codes to a ...

Poster rated this answer

Collapse -

Sending Escape Codes to a Printer

by jjclark In reply to Sending Escape Codes to a ...

This question was closed by the author

Back to Hardware Forum
3 total posts (Page 1 of 1)  

Hardware Forums