× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




Hi James,

:DWRSLT
DRAWER=DRAWER2
DATA = '1B266C2538' X.

Your data makes no sense.

x'1b' = ESC (correct)
x'26' = &   (correct)
x'6c' = l   (lower case L, correct)
x'25' = %   (percent... makes no sense)
x'38' = 8   (the number 8?  Why?)

Most likely, you meant to specify x'35' (the number 5) and x'48' (the letter H) for the last two bytes. That'd make your data string look like this:

  DATA = '1B266C3548' X.

The reason I suspect that this is what you meant is that the PCL code to change the drawer is:

   <ESC>&lxH

Where x = the drawer number.

Unfortunately, even though you might have the number 5 printed on the drawer on the outside of the printer, the number 5 may not be what the printer needs to select drawer #5. (I can't say that I fully understand why... but often the numbers don't correspond.)

Still... it's worth a try. If 5 doesn't work, experiment with a few other values, or see if you can find a programming reference for the specific printer you're printing to.

There's lots of information on PCL codes and what they mean at the following link:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl04568

Good luck


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.