Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pcl commands not working on hp laserjet 2200d

Status
Not open for further replies.

nicoep

Programmer
Nov 16, 2004
3
US
Hello:

The following pcl commands are not working on a hp laserjet 2200d printer,pc xp operating system. Some of the commands I have able to find out what they meain others there is no documentation. I need assistance in finding out the ones with a question mark ?
Thanks in advance.
nicoep

Here is the command file: The square is the escape character for your info. The commands I need more info have a ????

==========================================================
%-12345X@PJL SET PAGEPROTECT=OFF
@PJL SET DENSITY=3
@PJL SET IMAGEADAPT=AUTO
@PJL SET RET=MEDIUM
@PJL SET ECONOMODE=OFF
@PJL ENTER LANGUAGE=PCL

E
*r0F graphics presentation
&l1O landscape
&l0S ????
&l1H feed from tray
&l2a8c1E ?????
*p0x0Y ????
*c0t7632x5880Y ????
*t300R 300 dots per inch ?
&l1X number of copies ?
%0BINPAIP0,0,127,127SC0,75,0,75,0WU1 ????
%0A enter pcl mode ???
*b0M ????
raster graphics compression
E
%-12345X
 
Code:
Offset(dec)  Type                   Sequence          Data / Interpretation
¯¯¯¯¯¯¯¯¯¯  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
0000000000  Special                <Esc>%-12345X     Universal Exit Language (UEL)
            Comment                                  Switch language to PJL
0000000009  PJL Command                              @PJL SET PAGEPROTECT=OFF[0d][0a]
0000000035  PJL Command                              @PJL SET DENSITY=3[0d][0a]
0000000055  PJL Command                              @PJL SET IMAGEADAPT=AUTO[0d][0a]
0000000081  PJL Command                              @PJL SET RET=MEDIUM[0d][0a]
0000000102  PJL Command                              @PJL SET ECONOMODE=OFF[0d][0a]
0000000126  PJL Command                              @PJL ENTER LANGUAGE=PCL[0d][0a]
            Comment                                  Switch language to PCL
0000000151  PCL Simple             <Esc>E            Printer Reset
0000000153  PCL Complex            <Esc>*r0F         Raster Graphics Presentation: Logical
0000000158  PCL Complex            <Esc>&l1O         Orientation: Landscape
0000000163  PCL Complex            <Esc>&l0S         Simplex/Duplex: Simplex
0000000168  PCL Complex            <Esc>&l1H         Paper Source: Value is Printer Dependent
0000000173  PCL Complex            <Esc>&l2a         Page Size: Letter
0000000178                                8c         Vertical Motion Index (1/48 inches)
0000000180                                1E         Top Margin (lines)
0000000182  PCL Complex            <Esc>*p0x         Cursor Position (PCL units): Horizontal
0000000187                                0Y         Cursor Position (PCL units): Vertical
0000000189  PCL Complex            <Esc>*c0t         Set Picture Frame Anchor Point
0000000194                                7632x      Picture Frame Size (decipoints): Width
0000000199                                5880Y      Picture Frame Size (decipoints): Height
0000000204  PCL Complex            <Esc>*t300R       Raster Graphics Resolution (dpi)
0000000211  PCL Complex            <Esc>&l1X         Number of Copies
0000000216  Special                <Esc>%0B          Enter HP-GL/2 Mode: Pen=HP-GL/2
            Comment                                  Switch language to HP-GL/2
0000000220  HP-GL/2 Command        IN                Initialise
0000000222  HP-GL/2 Command        PA                Plot Absolute
0000000224  HP-GL/2 Command        IP0,0,127,127     Input P1 and P2
0000000237  HP-GL/2 Command        SC0,75,0,75,0     Scale
0000000250  HP-GL/2 Command        WU1               Pen Width Unit Selection
            Comment                                  Previous sequence not terminated by semi-colon
0000000253  Special                <Esc>%0A          Enter PCL Mode: Cursor=PCL
            Comment                                  Switch language to PCL
0000000257  PCL Complex            <Esc>*b0M         Set Compression Mode: Unencoded
0000000262  PCL Simple             <Esc>E            Printer Reset
0000000264  Special                <Esc>%-12345X     Universal Exit Language (UEL)
            Comment                                  Switch language to PJL
 
Thanks for reply.
So then the question is why when I send the following

type 1.prn > prn
type gl.doc > prn

1.prn has the above commands
gl.doc is a report in text format each line is 169 char. long.
It keeps printing portrait. Ignoring the commands that were send originally.
The pc has the MS XP Operating system.
 
Several points:

Your 1.prn file ends with the Universal Exit Language sequence - this effectively resets the device to the user-default (front panel) settings (which probably include Orientation=Portrait).

But if you wanted to exclude this, you would probably need to exclude the UEL at the start (and hence the following PJL statements) as well.

I'm very rusty on DOS commands, so I can't remember whether the 'type' command just sends the nominated file byte-for-byte to the nominated port, or whether it tries to be intelligent and insert simple printer controls itself.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top