Printing via PCL5/6 over Ethernet

Dear Community,

I would like to print from a DataObject using either a USB or Ethernet connection. The printer supports PCL5/6.

Currently, I have tried using the Pclcmds and Pclxcmds libraries. With USB printing, I am able to print successfully, but only when using simple strings

—not with a DataObject. (that too only till B4.83 Runtime)

With Ethernet, I can ping the printer and see that printing is active after sending the print command, but nothing actually prints.

I would like to find a way to print a DataObject using any method over PCL5/6.

Hi,

the libraries Pclcmds and Pclxcmds aren’t B&R standard libraries (as I know, I’ve never heard of them before), so it’s hard to say what’s possible with those libraries.

If you just want to print the content of a data module textual, without any interpretation or special processing of the data inside the dataobject, then I think it would be possible to use a simple library of mine, too.

If so, I would need such a data module to get an impression what’s in there to make a proposal how to print it: can you please provide such a sample + some info about the content (for example, if the content is already formatted as strings, or if the content is a flat memory mirror of a structure)?
Dependent on the dataobjects content, it would make a difference if it can directly loaded into strings for printing them, or if the content has to be loaded into variables and the variables values have to be converted to ASCII strings to get them printable.
In both variants, the datamodule content has to be loaded/accessed by the application (either by pointer access or by using DataObj() library functions) and prepared for printout.

Best regards!

1 Like