QLn320 Images and CPCL

T Trevor Thomas 3 years 7 months ago
11 3 0

Hello, hopefully someone will be able to help me. Ive done alot of work with the ZT410 and other type of printers, but im having a few issues with the QLn320.

Ive been able to push an image into the printer using ZPL

~DGE:LOGO,2496,32, FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0,::::::FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000FFFFE0,FFFFFE0000003FFFFFF800003F800003FFFFFF000003FFFFC000000000FFE0,FFFFFE0000001FFFFFF800003F800003FFFFFE00000FFFFC00000000003FE0,:FFFFFE0000001FFFFFF800003F800003FFFFFE00000FFFE000000000003FE0,FFFFFE0000001FFFFFF000003F800003FFFFFE00000FFF0000000000003FE0,FFFFF80000001FFFFFF00000FF800003FFFFFE00000FFE0000000000007FE0,  (some code removed)
but how can i acheve writing an image to the printers non volitile memory using CPCL?

Then im able to print it using the ZPL code
^XA^FDLabel Formats!!^FS^XGE:logo^XZ
but how can i print the same image using cpcl? ive tryed things like the code below doesnt work

! 0 200 200 210 1PCX 0 0 !

Please Register or Login to post a reply

3 Replies

T Trevor Thomas

Thank you Dmitry,

That manual is far better than the one i have.

Kind regards

Trev

D Dmitry Prokhorov

Hello Trevor,

There is a PCX command that gives a user the ability to send “.PCX” graphics formatted images to the printer. The .PCX image MUST be encoded as a black and white image. This way PCX image get loaded into the printer’s flash file system and given a name you provided for it. Then another PCX command with “!

T Trevor Thomas

Yes i did see that but i do have a few questions if thats ok?

Format:
     {command} {x} {y} {data}
     where: {command}: PCX
                 {x}: X-coordinate of the top-left corner.
                 {y}: Y-coordinate of the top-left corner.
                 {data}: PCX image data.

why would you need to speify the top left corner of the image as surly it would always be 0 and 0? as when you render the image you can then move it left and right with the x and y command?

Lastly the {data} part, is that literally the byte data of the PCX file? and the name of the file is the original pcx files file name.

Thank you again for your help with this

Trev

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