iMZ320 print the CPCL code in addition to the original message

D David Hernan Burela 3 years 7 months ago
49 1 0

Hello
I have problems sending to CPCL message to print in to iMZ320 because the printer does not understand the codes, so print all the message without pull apart the CPCL code from the string.

I have set the printer language as Line Print  for CPCL (ZPL is the default language) .

I share a litle example that I'm using to test the printer

String msg = "PW 574\r\n";msg += "TONE 0\r\n";msg += "SPEED 3\r\n";msg += "ON-FEED IGNORE\r\n";msg += "NO-PACE\r\n";msg += "BAR-SENSE\r\n";msg += "PCX 25 28 !

Please Register or Login to post a reply

1 Replies

D Dmitry Prokhorov

Hello David,

I suppose it happens due to Line Print mode selected as a printer language. In this mode it will treat all CPCL commands as a printable text. To use CPCL you need to configure your printer to use ZPL language with following command:

! U1 setvar "device.languages" "ZPL"

This way your printer will be configured for both languages, ZPL and CPCL. See here for details please: How to Enable ZPL or Line Print Mode on Mobile Printers
https://support.zebra.com/cpws/docs/comtec/PROMAN-CPCL_RevY.pdf#page=250

In case you still need to use line print mode for some reason then there are some commands that make it possible to format your line print mode printings with advance features:
https://support.zebra.com/cpws/docs/comtec/PROMAN-CPCL_RevY.pdf#page=129

Dmitry Prokhorov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

CONTACT
Can’t find what you’re looking for?