?
Solved

escape codes for Canon 5255 printer

Posted on 2014-03-25
8
Medium Priority
?
1,430 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 

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
 

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Causes of paper jams:The following are the main causes of paper jams. Guides:If the guides for the paper are not set correctly they may cause the paper to enter at an angle. You should ensure that the guides are set correctly for the paper type a…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

765 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