08-30-2021 02:49 PM
Hi There,
I have been searching for a labview driver to print labels via a cab eos2 printer with no luck. Does anyone know if one is available or is anyone willing to share some code?
Thanks in advance.
08-30-2021 05:04 PM
You may or may not find an implementation on LV, in my 5-min research I was able to find a bunch of programmer's manual and drivers from manufacturers website - it may not be easy but possible, you need to put more effort into understanding the driver APIs, call them from LV (probably a dotNET or C dll call).
Anyway, all the best if somebody already has done this and can share that with you.
08-31-2021 03:29 AM
There are a number of ways of communicating with the printer. As you pointed out, one of them is via the DLLs/API (thanks for looking into that for me). Another is via OPC UA (which I had never heard of until I started looking at this printer). I loaded the Labview demo code and can read values from the printer. However I can't seem to figure out how to write to the printer.
Maybe this would be an easier approach rather than trying to get the DLL API to work? Or maybe I would be better off looking at other printers (Cost of developing code vs cost of printer)?
08-31-2021 04:41 AM - edited 08-31-2021 04:45 AM
OPC UA sounds like an interesting option but you need to calculate the runtime license cost of the OPC UA driver into this. There are two different licenses, the Development version is needed for your development PC where you develop your application on. The Deployment license is needed for every computer you want to run your build application on (except your development computer, the Development license also includes the Runtime/Deployment license for that computer).
Not sure why you wouldn't be able to write to the OPC UA tags for that driver. Could it be a permission thing? OPC UA provides some possibilities to prevent both read and write access to specific tags depending on a configuration that must be set by the user. Default is in many cases to allow read but prevent write access, since OPC UA is often used to control real hardware that may pose a serious danger to people and material if messed with in the wrong way.
08-31-2021 07:11 AM
Is the printer connected to the network? If so, you can communicate directly with it using TCP over port 9100. I am not familiar with this printer nor it's native label formatting language. The printer does support ZPL emulation so you can define labels using ZPL and simply send that to the printer. The printer also supports LPD. I have developed a LDP library. However, I would use the raw port as it is more efficient than LPD.
09-07-2021 03:52 AM
Just tried this and it works very well. A few issues I still need to figure out (like printing icons) but so far, all good. Many thanks.
09-05-2023 01:37 PM
hello
nice see that,it will be nice if you could share the solution
thank you in advance