How to align the printing with a label with EPL:

// Expert user has replied.
W Wen Mo 2 years 11 months ago
330 6 0

I'm programming a new label printing with 1.5x0.5 sticky with blank mark label with EPL.
I could not align the printing. The width and the height and gap are measured by dots EPL. How do I convert the measures in inches to dots?

Here is the EPL codes:

N
q300
Q70,22
B290,65,2,UA0,2,2,40,B,"607845011293"
P0003,1

Please Register or Login to post a reply

6 Replies

W Wen Mo

I have tried different values for Q and q and still could not make it work. The printer always shows flashing red light.

S Steven Si

To convert the inches to dots, you need to know the resolution of the printer heads. If the resolution of the printer heads is 203 dpi or 300 dpi (dots per inch), then the conversion would be 203 x the inches, or 300 x the inches. Please note, 203 dpi is a common resolution for most of Zebra label printers.

Regarding the red flashing light, please refer to the user's manual of the specific printer model for the explanation.

W Wen Mo

Thanks!
It seems ZPL provided more control on "black mark" detection. Could you provide the corresponding ZPL with black mark detection for my EDL:

N
q300
Q100,22
B290,65,2,UA0,2,2,40,B,"607845011293"
P0003,1

S Steven Si

Instead of setting the label dimension with EPL command, I would suggest to do a printer calibration on the media. Please refer to the User's Manual of this particular printer on the procedures or steps on the media calibration. One the printer is calibrated for the media, you can remove these label dimension related commands from the EPL. The printer should align the label prints automatically for you.

W Wen Mo

Thank you so much, SSi1!
I will give a try.
Do you happen to know how to print British Pound sign and Euro Currency sign with EPL?

I've tried many ways, but, could not figure out. It always prints two other characters. Here is my codes to print -
N
q300
Q100,22
B297,80,2,1,2,2,30,N,"607845011293"
A270,42,2,2,1,1,N,"607845011293"
A290,20,2,2,1,1,N,"12345678901234567890"
A90,70,2,1,1,1,N,"£199.99"
A100,42,2,2,1,1,N,"€299.99"
P0003,1
But, it doesn't print £ and € correctly.
Thanks!

W Wen Mo

I've used the Zebra Setup Utilites -> Configer Printer Settings -> .. "Media Type" set to "Mark Sensing".
and take out
q300
Q100,22
it works perfectly; thank you very much!

CONTACT
Can’t find what you’re looking for?