Quantcast
Channel: All Printers - LaserJet posts
Viewing all articles
Browse latest Browse all 6647

Re: How to convert PCL coordinates (x, y) to HPGL/2 coordinates (x, y) using HPGL/2 commands in PCL

$
0
0

For completeness, here is an analysis of Jim's sample initialisation file:

 

PCL Simple             <Esc>E            Printer Reset
PCL Parameterised      <Esc>&l2a         Page Size: Letter
                              0o         Orientation: Portrait
                              6d         Line Spacing (6 lines-per-inch)
                              0e         Top Margin (0 lines)
                              66F        Text Length (66 lines)
PCL Parameterised      <Esc>*p0x         Cursor Position Horizontal (0 PCL units)
                              0Y         Cursor Position Vertical   (0 PCL units)
PCL Parameterised      <Esc>*c7920x      Picture Frame Size Width  (7920 decipoints)
                              7920y      Picture Frame Size Height (7920 decipoints)
                              0T         Set Picture Frame Anchor Point
PCL Parameterised      <Esc>&a0R         Cursor Position Vertical   (row 0)
PCL Parameterised      <Esc>%0B          Enter HP-GL/2 Mode: Pen = HP-GL/2
Comment                                  Switch language to HP-GL/2
HP-GL/2 Command        IN                Initialise
HP-GL/2 Command        SP1               Select Pen
HP-GL/2 Command        IP0,11176,11176,  
                         0               Input P1 and P2
HP-GL/2 Command        SC0,6600,0,6600;  Scale
Comment                                  Switch language to PCL
PCL Parameterised      <Esc>%0A          Enter PCL Mode: Cursor = PCL
PCL Control Code       <LF>              Line Feed

 Note that:

 

  • The 7920decipoint values for the PCLPicture Frame size equate to 11inches (the length of a Lettersize page in Portraitorientation).
  • The 11176 plotter unit (0.25 millimetre) values for the HP-GL/2IP command scaling points equate to 11 inches.
  • The 6600 user unit (@ 300dots-per-inchvalues for the HP-GL/2 SC command X-max and Y-max equate to 11 inches.

Viewing all articles
Browse latest Browse all 6647

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>