I have an EPSON that we are using qzprint to both print receipts with on roll paper and "stamp" documents using the front slip.
Printing hasn't been an issue thus far for the most part but I would like to know if it's possible to send a "cancel" command or some way to re-initialize the printer while it's waiting for a slip to be inserted so I don't have to put the paper in and can send new commands. I see two commands in the programming guide that seem to be possibilities but I'm not entirely sure I'm using them right.
These are the commands
Select paper sensor to output paper-end signals
ASCII ESC c 3 n
Hex 1B 63 33 n
Now the guide says that the n (bit) is either 4 or 5 (slip TOF / slip BOF respectively)
In addition to that for n = 4, the Off is signified by Hex 00 to disable the slip TOF and On is signified by Hex 10 to enable it
For n = 5, Off is Hex 00 to disable slip BOF and On is Hex 20 to enable it
The other command I have is
Select paper sensor(s) to stop printing
ASCII ESC c 4 n
Hex 1B 63 34 n
The same applies to this command as above for the n value with the slip
For example, I tried sending ESC c 3 n with the following with no luck (tried the same with ESC c 4 n as well)
qz.append('\x1B' + '\x63' + '\x33' + '\x00');
and
qz.append('\x1B' + '\x63' + '\x33' + '\x04' + '\x00');
and
qz.append('\x1B' + '\x63' + '\x33' + '\x05' + '\x00');
Are these the correct commands to use to cancel out of the slip sensor "waiting" for a piece of paper or is there something else I should be doing? Should they be done in a certain order or am I just using them incorrectly? I have tried to send the Printer init command (ESC @) and that didn't do anything either.