Discussion Locked

Sending Escape Codes to a Printer

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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: "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:
HEX: 18

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

Thanks!

john

3 replies

by bigduck

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

This discussion is closed to new replies.