advertisement
from the Automation List department...
Z6Mplus Printer
Open interfaces, software and hardware topic
Posted by Zebra on 6 July, 2004 - 11:23 am
I've recently received a Z6Mplus.
I try to print on it, with java, but it does not work. I have no driver for linux and I can not comm. through minicom.

Can you give me some information about how you managed to use Zebra priner under linux?

Thanks in advance


Posted by Curt Wuollet on 8 July, 2004 - 2:28 pm
I simply wrote a small C program that formatted data in the Zebra
"language". It uses lots of weird tokens to set things up, select
type of barcode, etc. But once you get this figured out, you simply
bracket the data with this stuff and you're done. I'm not sure this
consititutes a driver as it runs in userland and is Bonehead C (tm.)
But you can't simply send it numbers, it doesn't know what you want
done with them. Buy, beg, borrow or steal a Zebra manual and all is
somewhat cryptically revealed.

Regards
cww


Posted by Michael Griffin on 9 July, 2004 - 9:41 pm
Have you tried Kbarcode label design software? I believe this program has Zebra support now.

I'm not familiar with a Z6Mplus, but you don't typically use a printer "driver" to talk to a ZPL printer. The printer requires a series of ASCII commands in the ZPL printer language. Label design software can create these
commands for you, or you can create these manually if you don't mind a bit of work with the manuals. For test purposes, it is best to create a simple text file and send this to the printer repeatedly.

To print, you want to print as a simple ASCII plain text printer. I don't know what sort of connection you are using. If you are using a parallel printer port, make sure you don't already have the port configured for some other
type of printer (e.g an ink jet). Make sure that you have permission to access whatever port it is you are using. If you are using a serial port, make sure that the port parameters match those for the printer.

The above is true regardless of the operating system you happen to be using.

--

************************
Michael Griffin
London, Ont. Canada
************************


Posted by matt on 2 August, 2004 - 11:54 pm
Setting up Remote Printers on LINUX OS:

Setting up the client to print to the print server's lp queues involves configuring the etc/printcap file on the client machines to point to the print server.
The easiest way to generate the printcap file is by using the printtool.
This is what the dialog entries should look like in printtool for the remote printer:

Names: lp0
Spool Directory: /var/spool/lpd/lp0
File limit in Kb: use default value of (0)
Remote Host: enter the IP address of the print server(10.0.0.200)
(You can obtain this information by printing the print
server's configuration file)
Remote Queue: /var/spool/lpd/lp0
Input Filter Select: *auto *- TextPrinter
Suppress Headers: enabled

If you have a local printer connected also, the printtool entry should look like this:
Names: lp1
Spool Directory: /var/spool/lpd/lp1
File Limit in Kb: use default value of (0)
Printer Device: /dev/lp0
Input Filter Select: *auto* - TextPrinter
Suppress Headers: enabled

After all this is configured, using a text editor, put your printer in "dump mode" and send the
printtool's test page (ASCII) to a printer. You should have a printout!

Create a file using either programming languages (EPL or ZPL) and send the file to the printer.
Select file "Print" and enter the following command in the dialog box:
lpr -Plp0 (or -Plp1) %s (depending on which printer you want to send your printout to).

Sometimes a job will get hung and either the lpd deamon or the spooler will need to be reset.
To restart lpd use the command:
/etc/rc.d/init.d/lpd restart

To restart the spooler you can run the command:
lpc up all

To check the status of a print job, use:
lpc status
lpq -Plp0 (or -Plp1)

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
For perfect happiness, remember two things:
(1) Be content with what you've got.
(2) Be sure you've got plenty.
Advertise here
advertisements
Servo, stepping motor control, analog & web HMI in one system!
Servo, steppers, analog, digital & web HMI - Fully Integrated!
Time to incorporate data handling, web HMI and motion in one system!
MatrikonOPC has over 500 OPC interfaces and out of the box software. Find an OPC Server for your devices here.
Control.com is the largest Automation community on the web. Learn how to advertise here now...
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive