For generating <XCT> commands, here is an example to derive the code to initiate a Drawer Kick:
The manual says:
ESC p m n1 n2
[Name] Generate pulse for drawer output
[Format] <1B>H<70>H<m><n1><n2>
[Range] m=0
0≦n1≦255
0≦n2≦255
[Description] The defined pulse, On time is n1 X 2msec, Off time is n2 X
2msec.
[Note] Please don’t execute “generate pulse” successively because
of it is possible to causes over heat of drawer solenoid.
Please use designated standard solenoid.
So we need to generate this command:
ESC p m n1 n2
In Hex, using parameters m=0, n1=1, n2=1:
1B,70,00,01,01
Then converted to Decimal, the <XCT> code for the Template would be:
<XCT>27,112,0,1,1
If that does not work to kick the drawer, you might need to increase the pulse times which are the last 2 parameters. For example:
<XCT>27,112,0,50,50
... or ...
<XCT>27,112,0,100,100
I contacted the printer manufacturer directly, they sent me a manual … in Chinese … (they probably use this one in Taiwan only), there is some command code lines in there I saw.
If your interested here is the link to download the PDF file
You should go back and read my last 2 posts. I attached the manual (English) and demonstrate how to use the manual to generate XCT commands in your Template.
Stupid me, I didn’t see that link. Strange that I sent them a message in English and they returned a link for the Chinese language manual.
Thanks.
Taiwan has a specific command code Esc FF <1B>H<0C>H to cut the receipt. That’s not in the English version.
LOL, well yes, I guess. The printer manuals are hard enough to read in the first place, then yes unfortunately, you need to convert it to decimal before you put it in your Template.
Here’s the good news, the printer manufacturer said it’s a very simple DOT-matrix printer, old system from back in the days. The mechanics is made by Citizen and it’s compatible with Epson ‘ESC/POS’.
Now the bad news, it has no driver, and to make it work programming in C+ or C++ is needed to get the printer connect to the Pos software. This version of the printer is solely used in Taiwan for government tax reason, therefor the POS software needs to able to work with Chinese (Big 5) or bilingual.
Well, my customer pole display doesn’t have any drivers either, and it behaves like a ESC/POS printer. It is attached to a COM port, and I can print to it just fine. You would set a COM printer as a “Port” Printer in SambaPOS.
Review some of my previous posts to see if you can figure out which port it is connected to. If you can do this from a Command Prompt, you could be in business:
According to the manufacturer it’s not that simple as I explained him I already tried all the COM ports, I have 3 and they work, but it’s the specifics of this printer that needs some programming to connect the way it should and print in Chinese (BIG5)
Actually, the company only sells the hardware, not the POS software. And I’m not joking, this is a Taiwan specific printer and needs command code in BIG5 to work.
I tried it for what, 4-5 days now, all ports, all possiblilies, not working, not even a sound. straight form command prompt, through Samba, notepad … set it as a generic text printer, you name it.
I have two of these printers, one I got from a friend when he stopped his business and one new one I just bought. I called the manufacturers of these printers and they both (two different brands) confirmed that there is command code needed in BIG5 that connects the specific POS software, invoice software or any software to print receipts to these printers.
I even connected a customer display to my port (COM1), the display shows what I want to print, the display connects to the printer … nothing, no data goes through. COM1 works. As do the others when I try them.