Problems with RAW printing with Epson TM-U295

285 views
Skip to first unread message

mala...@gmail.com

unread,
Sep 24, 2014, 8:44:43 AM9/24/14
to jzebra...@googlegroups.com
Hello.

I am developing a web app that needs to print stamps on documents. First I tried to generate a PDF and print with the applet but the results are poor. Words broken and unreadable. Later I tried with the RAW printing. This printer is compatible with ESC/P and I have downloaded the attached manual to try to generate the stamp but I have some handicaps that someone with experience I hope that can help me. 

First the printer starts printing without waiting to put the paper. Second I need the possibility to rotate. Third a method to make copies of the documents. The first two problems are in the documentation but I don't understand how to put in Hex and use it. 

The code that I am using is this

                                qz.append("\x1B\x40"); // 1
                                qz.append("\x1B\x52\x07"); // 1
qz.append("__________________________________ \r\n");
qz.append("\x1B\x21\x08"); // 2
qz.append("        NAME OF THE     \r\n");
qz.append("          COMPANY          \r\n");
qz.append("---------------------------------- \r\n");
qz.append("\x1B\x21\x16"); // 2
qz.append("     2345   ");
qz.append("02/05/2014   14:20\r\n");
qz.append("\x1B\x21\x01"); // 3
qz.append("\x1B\x21\x08"); // 2
qz.append("---------------------------------- \r\n");
qz.append("       Registre de Sortida \r\n");
qz.append("__________________________________ \r\n");
qz.append("\x1D\x56\x41"); // 4
qz.append("\x1B\x40"); // 5
qz.append("\x1B\x46\x01"); // 5
qz.append("\x1B\x71"); // 5

Thanks in advance and sorry for my poor english.
u295o_e.pdf
ESCPOS_Command_Thermal.pdf

mala...@gmail.com

unread,
Sep 24, 2014, 9:00:41 AM9/24/14
to jzebra...@googlegroups.com
Sorry for the multiple copies but google was saying:

There was an error posting the message to the group. Please try again later.

Tres Finocchiaro

unread,
Sep 24, 2014, 9:01:55 AM9/24/14
to jZebra users

That usually means the attachment is too large.  Did you attach something?  If so, perhaps use a 3rd party service to host it (pastebin, imgur, etc)

mala...@gmail.com

unread,
Sep 24, 2014, 9:16:43 AM9/24/14
to jzebra...@googlegroups.com
Yes, you can see that I attached two manuals of the printer with ESC/P codes wishing that someone can help me. I am desperate with this...

Thanks

mala...@gmail.com

unread,
Sep 25, 2014, 7:22:59 AM9/25/14
to jzebra...@googlegroups.com
Finally I get how to rotate the print but when I enter in Page mode printer has a print area of full height. I tried to use the command "ESC W xL xH yL yH dxL dxH dyL dyH" (qz.append("\x1B\x57\x32\x00\x00\x00\x32\x32\x32\x32");) but i don't know why don't works. Someone had this trouble? thanks in advance.

Tres Finocchiaro

unread,
Sep 25, 2014, 8:31:06 AM9/25/14
to jZebra users

Please use appendHex("x00x1B...") format.  \x00 is invalid in JavaScript and our appendHex() was created to circumvent this JavaScript limitation.

mala...@gmail.com

unread,
Sep 25, 2014, 9:06:08 AM9/25/14
to jzebra...@googlegroups.com
Thanks for your reply. The problem is that my knowledge of the instructions are low. Can Someone explain me the instruction "ESC W xL xH yL yH dxL dxH dyL dyH" of the manual? I am not able to decrypt the explanation of the manual attached on OP. I attach a photo of the printer. When you enter on page mode the printer goes through the full height of the printer specs. In standard mode when there is no data on buffer ejects paper or stops.

Thanks in advance.

Tres Finocchiaro

unread,
Sep 25, 2014, 9:14:15 AM9/25/14
to jZebra users

In my manual, ESC W is for double-width printing.  Can you link the manual you are referencing?

capp...@yahoo.com

unread,
Sep 25, 2014, 9:19:06 AM9/25/14
to jzebra...@googlegroups.com
I recommend "yLh-ESCPOS_AppProgGuideV10-05". Search google for a download. Although it doesn't have new Epson models, it is the best one I have found until now.


From: Tres Finocchiaro <tres.fin...@gmail.com>
To: jZebra users <jzebra...@googlegroups.com>
Sent: Thursday, 25 September 2014, 15:14
Subject: Re: [jZebra] Re: Problems with RAW printing with Epson TM-U295

In my manual, ESC W is for double-width printing.  Can you link the manual you are referencing?
--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra

---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


mala...@gmail.com

unread,
Sep 25, 2014, 9:20:06 AM9/25/14
to jzebra...@googlegroups.com
Thanks for your patience. The manual is attached on the first post but here is the link. http://www.heijden.nl/bestelservice/download/Epson/u295o_e.pdf

Thanks.

Tres Finocchiaro

unread,
Sep 25, 2014, 9:31:05 AM9/25/14
to jZebra users
Ok thanks, that helps.

I believe the reason this function is so confusing is because it uses the "Low Bit" / "High Bit" approach for values that can be larger than 255.  We have this same exact problem when doing the images.  Here is an example which explains it a bit better... (courtesy Oleg Morozov)



--

mala...@gmail.com

unread,
Sep 25, 2014, 10:34:59 AM9/25/14
to jzebra...@googlegroups.com
If the stamp that I want to print is 6cm x 5cm which would be the command? I am not lazy... I am blocked of too many days with this... I can't understand anything of the comments.

Thanks a lot.
Message has been deleted

mala...@gmail.com

unread,
Sep 26, 2014, 7:15:38 PM9/26/14
to jzebra...@googlegroups.com

Can someone help me?

Thanks
Reply all
Reply to author
Forward
0 new messages