Solved

escape codes for Canon 5255 printer

Posted on 2014-03-25
8
1,219 Views
Last Modified: 2016-03-15
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
Comment
Question by:WDShelly
  • 4
  • 3
8 Comments
 
LVL 16

Expert Comment

by:DansDadUK
ID: 39954023
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
0
 
LVL 16

Accepted Solution

by:
DansDadUK earned 500 total points
ID: 39954036
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
 

Author Comment

by:WDShelly
ID: 39954142
Thank you, DansDadUK. I'll try your code soon.
0
 

Author Comment

by:WDShelly
ID: 39954556
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:WDShelly
ID: 39960324
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
 

Author Closing Comment

by:WDShelly
ID: 39960329
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
 
LVL 16

Expert Comment

by:DansDadUK
ID: 39960338
Thank you. I hope all goes well.
0
 

Expert Comment

by:JohnnyObbq
ID: 41509137
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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now