PCL over TCP/IP Printing Library

The PCL Printing Library (BhiLibPcl) for Wago e!COCKPIT allows a Wago PFC200 PLC to print directly to a PLC5-compatable laser or inkjet printer using a TCP/IP connection.

PLC5 is supported by many Hewlett-Packard printers and is also supported other manufacturers’ printers.

The library allows e!COCKPIT programmers to efficiently format documents and send them to the printer. Text can be printed at specific positions on the page.

A simple interface abstracts the TCP/IP socket management and print job management. The library can work with any font that is installed on the printer.

BhiLibPcl can be integrated with the Beyond HMI LACT library (BhiLibLACT) to permit printing of LACT batch reports to an Ethernet printer. Formatting of the batch report is controlled by a template (“layout”) file – which the user creates in a simple markup language. Multiple layout files can be loaded onto the PLC and the desired batch report layout can be changed at print time.

Feature Summary

Printer Connection TCP/IP User specified IP address and port number (port 9100 is customary)
Job Management Number of copies User can specify number of copies to print
Simplex/Duplex Allows two-sided printing – as supported by the printer
Positioning on Page User-settable left and top margins
Page Management Multipage printing User can specify when/if to change pages
Text Positioning – across the page User can specify X-location of printed text (in inches)
Text Positioning – down the page Library automatically determines Y position – based on current font height
Font Management Bold/Italic Simple interfaces to switch between regular font, bold font, italic font, bold+italic font
Font Height Simple interface to select font height (printer will use nearest match)
Font Pitch Simple interface to select font pitch (printer will use nearest match)
Font Spacing Simple interface to select between fixed or proportionally-spaced font
Stroke Weight Simple interface to select stroke weights between ultra-thin and ultra-black (if fonts loaded in printer include these features)
Font Style Simple interface to select font styles: upright, italic, compressed, condensed, expanded, outlined, inlined, shadowed (if fonts loaded in printer include these features)
Symbol Set Simple interface to select the symbol set to be used
Typeface Family Simple interface to select the typeface family set to be used (font must be loaded on the printer)
Custom LACT Batch Reports LACT Batch Source LACT Batch data structure is created by the Beyond HMI LACT library (BhiLibLACT)
Printable Batches Active ad hoc batch, previous ad hoc batch, current day batch, previous day batch, current month batch, previous month batch, or any historical batch retained in the BhiLibLACT database
Report Formatting End-user constructs a report layout file in a documented markup language
Report layouts are loaded onto the PLC (one or many layouts per PLC)
Layout to be used for printing is specified at print time
Licensing Free for developer Library file is free and can be added to any Wago e!COCKPIT instance
Runtime Licensed Library generates a site code on the PLC
Beyond HMI, Inc. generates a license file from site code
License file is installed on the PLC. License is perpetual but only usable on that PLC.
Library features will execute for about 100 print operations after restart in trial mode. License must be installed before this count is exceeded or printing will stop.
Sample Project Available Unlicensed (free) sample project/program Functional PLC sample program provided at no cost on request

Licensing

The BhiLibPcl library is available at no cost to e!COCKPIT users. The library uses runtime licensing. A license is required for each PLC which executes the library code. The program will run for about 100 print operations in trial mode before a license is required. Licenses must be purchased from Beyond HMI, Inc.