schweizer
13th April 2011, 16:08
Hi Friends,
we want print a label from baan report to zebra ZM400, language is EPL.
How can I send the string from baan to the printer.
I have seen the example
N
A50,0,0,1,1,1,N,"Example 1"
P1
But how can I put this in a string?
Any help would be very apreciated.
Thanks Schweizer

mark_h
13th April 2011, 16:55
Search on zebra on this forum. We use the RMCis product for our labels, but you can send the zebra commands to a report on the printer. You will need to get the ZPL commands correct.

schweizer
13th April 2011, 17:12
Hi Marc,
unfortunatly, we have EPL Printer.
Or can I use ZPL for this too?
Rg. Schweizer

mark_h
13th April 2011, 17:20
At one point in time we had some ZM400 printers and they came with a ZPL programming guide. I can't say for sure, because we converted from jetadmin type connection into using the RMCis label generator product. Most of ours have been converted to something like ZM4000's(I think).

pconde
13th April 2011, 17:43
Here an example how we define a zebra ZPL flow in a report
the field FFFFFFFF are form fields filled by the script.all other are codes interpreted by the zebra printer

this is ZPL but I think that EPL should follow the same logic

Regards
Philippe

schweizer
13th April 2011, 20:13
Thanks Phillipe,
I think we can change the firmware to ZPL.
Will try it tomorrow, maybe it works better.
I do not have to provide special character like chr(..) etc.
Thanks to all.
Rg. Schweizer

mmurphy2650
14th April 2011, 15:00
We use EPL to print bar coded Item Labels to a Zebra LP 2844.

See the attached document for how the Report is defined in ERP LN.

This is the data that gets sent to the printer ...

N
q800
X10,5,10,780,180
A50,26,0,4,1,1,N,"Item: 0124151000"
A50,56,0,4,1,1,N,"Descr: Z-AXIS SHIPPING BRACKET "
A50,86,0,4,1,1,N,"Unit: ea "
B180,116,0,3,2,5,50,N,"0124151000"
P1

Hope this helps you out.

Mike

schweizer
14th April 2011, 22:14
Thank you Mike,
actually I did almost the same.
I defined a device like "print to file" and put the printer queue as
output path like \\22.272.32.33\zm400.
But it prints allways the raw data.
Have you something special configured in the zm400 printer settings and
can you confirm the way to cofigure the print device in BAAN?
Thank you very much for your input.
Rg. Schweizer

mmurphy2650
15th April 2011, 02:11
On our windows computer that the Zebra printer is physically connected to (Shop4), the printer is defined as a Generic/Text Only printer and shared as Zebra.

In LN, the Device is defined as a Windows Printer with a Device Queue = \\Shop4\Zebra.

Mike

schweizer
15th April 2011, 10:57
Hi Mike,
I now defined the device "print to file" and it works.
The most diffecult part was to install the printer, the IP was lost many times, the printer was changing to color ribbon, in short it was pretty confusing.
Again, thanks to all for your help.
Rg. Schweizer

Premahari
25th January 2019, 07:36
Hi Mike , I have Zebra GT800(EPL). I followed your steps still it's prinitng raw data to printer. Can you please help.

pconde
26th January 2019, 09:04
Hello,

I suppose that when you say "raw data" you receive the code defined in the report.
This means that the string send to the printer is not interpreted because it is protected.
You didn't describe your system and the printer settings
If it is a windows
- if the printer is defined with the EPL driver (windows setting) try replacing it with the driver for "generic printer".
If it is a unix system there are more options:
- windows printer ==> see above
- unix queue: which driver did you use in the ERP LN session "Maintain device" ? I'm not sure that Infor deliver an EPL driver for the Zebra printer. Check the driver used and try with a generic driver (not PCL)

Regards
Philippe

Premahari
28th January 2019, 12:02
Hi pconde Thanks for you reply. Now I have changed settings now its Printing. But there is one problem It's npt allowing Special Characters in LN Script. When I print my label to file it contains some special characters for logo. I try to add those in my scripts its not allowing(particular special character) to save.Can anyone help how to add special character in script.




bdittmar
28th January 2019, 14:45
Hello,

Downloading a PCX Graphic using EPL

Use the following steps for downloading a PCX graphic file to a printer with a flash (nonvolatile) memory card installed with DOS operating system commands. This procedure may also be done from within a MSDOS window from a Windows® operating system. See the M, EI, FI, GI & U commands to manage the printer's memory.
1.Generate the PCX graphic file with the following considerations: ◦Black and White (Bitmap) only.
◦Set Dot Density (Resolution) of the bitmap to match the printer's print head resolution. All EPL2 printers have a 203 dpi (dots per inch) resolution except the TLP3642 has a 300 dpi resolution.
◦Crop the image as small as possible to speed printing and maximize memory usage.
◦The file's name should be 1 to 7 characters long followed by the PCX DOS file extension. Examples: zebhead.pcx
◦Graphic file size cannot exceed available printer memory. (See config label for available memory)

2.Type DIR *.PCX at the DOS prompt (example C:>), in the disk/directory that the PCX graphic file is stored in. Read and record the file size for the file(s) to be downloaded.

Record file size as: 1908
3.Generate a program (ASCII text) file for each PCX graphic file to be downloaded. (This is configuring the printer to accept the graphic download.)
Example -

GK"ZEBHEAD" - This removes any previous download (Quotes are required)
GM"ZEBHEAD"1908 - This sets the name and block size for the download (Quotes are required)

Note: Place your curser after the last numeric digit in the file name data and assure you delete any following characters such as line feeds or carriage returns. For example, in the above, place the curser after 1908 and press "Delete" several times.

Save the file as a 1-8 character file name and include a .TXT extension. Always save files in ASCII text format.

Example: zebhead.txt

4.Verify that printer has memory available to download the graphics. See the M, FI, GI & U commands to verify and manage the printer's memory.
5.Use the DOS COPY command to download the text and graphic files to printer memory. (The /B sets the download to binary)

Example: COPY zebhead.txt + zebhead.pcx /B LPT1

6.Repeat process for each PCX graphic.
7.You can send the GI command to assure the graphic has successfully downloaded. See the EPL manual for details.
8.To print the logo, use the GG command to recall and print the logo.

Example:
N
GG10,10,"ZEBHEAD"
P1

Save the file as a 1-8 character file name and include a .TXT extension.

Example: label.txt
9.Use the DOS COPY command to send this file to the printer.
10.The Zebra Logo should print on your label.


Regards

Premahari
29th January 2019, 12:11
Thanks for you reply. I couldn't follow your steps. I printed label to a text file. Everything is coming perfect other than logo Because it contains more special characters which I couldn't add in script to write in notepad. Can anyone please help me how to write special characters in notepad through script
Thanks in advance