• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1622
  • Last Modified:

escape codes for Canon 5255 printer

My office used to have a couple of Canon 3200 printers and we have an old ERP program that we would send a printer escape code to and it printed out reports from the ERP system in landscape. This was the string we sent:

  ~E&l1o8d0L~E(s13h3b      

I replaced those 2 old Canons with 2 new Canon ImageRunner Advance C5255 printers and that same code gives an error at the printer (something like "unsupported file format").

I think  0o = portrait and 1o = landscape, and 6d = 6 lines per inch and 8d = 8 lines per inch. I need to find an escape code that will work for these new printers. Thanks in advance for any help anyone can offer.
0
WDShelly
Asked:
WDShelly
  • 4
  • 3
1 Solution
 
DansDadUKCommented:
With the assumption that your "~E" place-holder is intended to represent the Escape control-code character (the character with decimal code 27, or hexadecimal 1B), then your sequences have the following interpretation when considered as PCL5 escape sequences.

Offset         Type                   Sequence          Description
-------------  ---------------------  ----------------  ----------------------------------------------------

0000000000     PCL Parameterised      <Esc>&l1o         Orientation: Landscape
0000000005                                   8d         Line Spacing (8 lines-per-inch)
0000000007                                   0L         Perforation Skip: Disable
0000000009     PCL Parameterised      <Esc>(s13h        Primary Font: Pitch (13 characters per inch)
0000000015                                   3B         Primary Font: Stroke Weight: Bold

Open in new window

Attached is a file containing the referenced PCL sequences.

Note:
If your printer does  not support PCL5, then these sequences may be ignored, or may cause errors to be reported. Perhaps your new printer needs an add-on in order to support PCL5?
I've corrected the termination character (which should be upper-case) of the last sequence to be "B" rather than "b".
This font selection sequence will only work as expected if the current font (as selected via another escape sequence, or as per the default set on the printer control panel) is a fixed-pitch font (Courier, Letter Gothic) rather than a proportionally-spaced font (most of the rest e.g. Arial, Times New Roman).
snippet.prn
1
 
DansDadUKCommented:
The specification (see http://www.canon.co.uk/For_Work/Products/Office_Print_Copy_Solutions/Office_Colour_Printers/iR_ADV_C5255/ ) of your Canon ImageRunner Advance C5255 printers shows the supported Page Description Languages as:

UFRII (Standard)
PCL5e/6 (Standard for iR-ADV C5235i/5240i/5250i/5255i, optional for iR-ADV C5250/5255 with PCL PRINTER KIT-AR1)
Adobe PostScript Level 3 (Standard for iR-ADV C5250i/5255i, optional for iR-ADV C5235i/5240i/5250/5255 with PS PRINTER KIT-AR1)
0
 
WDShellyAuthor Commented:
Thank you, DansDadUK. I'll try your code soon.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
WDShellyAuthor Commented:
I'm starting to think that we don't have PCL on this printer. It can handle PostScript and Canon's UFR II and can direct print jpegs and other formats, but the config does not show any PCL compatibility. I'm working with Canon on this and will definitely follow up when I know more and I will certainly award points when I know more. This may take 2 weeks since I'll be out of town soon...
0
 
WDShellyAuthor Commented:
DansDadUK,

I'm going to award you points right now while I wait for Canon to come onsite and enable PCL. I don't want you to have to wait to be rewarded for your input.
0
 
WDShellyAuthor Commented:
As I wrote in the ticket, I want to reward you now while I'm waiting for Canon to come and enable PCL on these printers.
0
 
DansDadUKCommented:
Thank you. I hope all goes well.
0
 
JohnnyObbqCommented:
I know this is an old link, but would your ERP software be SyteLine by chance? We just purchased a Canon ir-Adv-C5255 and had the same issue. The UFRII does not work so we had to get the PCL6 driver. I am still having some issues with printing. I can get a page to rotate landscape but when I try to condense the text it does not work. Any thoughts would be appreciated.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now