Question
Reply
 
Highlighted
Tutor
Posts: 15
Member Since: ‎02-22-2014
Message 1 of 30 (720 Views)

Designjet 800 PS clips image unwantedly

At a customers' site the output of a DesignJet 800 PS printer, a HP-GL file, gets clipped about at one 3rd of the page.

The file is printed via the DOS command PRINT or COPY LPT1: . The printer is connected via USB as LPT1.

Although this might interfere with the Windows 7 driver (Windows 7, 32bit), I think it shouldn't and I'm seeking for a way to print that file safely. There is no chance - other than someone tells me how - to print the file using the driver and setting the printable area correspondingly.

 

The plotting worked just fine when a Designjet 650 was connected to the computer, but that one had to be replaced since the tooth belt needed to be exchanged and the vendor told the customer, that that spare part were no longer available.
 

Maybe just a nice idea of the to sell new stuff :smileyhappy:

 

Anyway, here is the code. I tried to insert IW, PS commands to no avail. (although I experimented with these commands only  after removing the lead in/out escape sequences - maybe they are crucial?)

 

 

<ESC>.Y
<ESC>.P1:
<ESC>.K.JIN;
SP1;PU;PA24560,17160;
PU;PA24560,17160;PU;PA23960,16560;SP7;PU;PA3868,6454;PD;PA3868,6574;
PD;AA13914,6514,-89,1;PD;PA13914,16560;PD;AA13914,6514,-90,1;
PD;PA23960,6514;PD;AA13914,6514,-90,1;PD;PA13914,-3532;
PD;AA13914,6514,-89,1;PD;PA3868,6454;PU;PA3883,6454;PD;PA3883,6574;
PD;AA13914,6514,-89,1;PD;PA13914,16545;PD;AA13914,6514,-90,1;
PD;PA23945,6514;PD;AA13914,6514,-90,1;PD;PA13914,-3517;
PD;AA13914,6514,-89,1;PD;PA3883,6454;PU;PA24560,17160;SP0;
<ESC>.Z

 

I'm clueless at the moment but I need to get it solved somehow.

 

--

Christoph

 

 

P.S. This thread has been moevd from Printers - Deskjet to Designjets. - Hp Forum MOderator

 

Reply
0
Associate Professor
Posts: 1,638
Member Since: ‎05-27-2010
Message 2 of 30 (707 Views)

Re: Designjet 800 PS clips image unwantedly

I don't know the answer to your question (I've worked with PCL for several decades, but only have a basic knowledge of HP-GL/2) but have a few comments:

 

  • I'm assuming that you have used the <ESC> string as a 'placeholder' to represent the non-graphic control-code character Escape (the character with decimal code 27, or hexadecimal 1B).
  • <ESC>Y (hexadecimal 1B59) is a PCL simple escape sequence (Display Functions - Enable) - it's purpose is to cause subsequent escape sequences to be printed, rather than being interpreted.
  • Your code snippet for the first sequence has the hexadecimal bytes 1B2E (representing <ESC>.) before the 'Y' byte, rendering that escape sequence invalid - can I assume that this is merely due to the method you've used to display the contents in this forum thread?
  • Similarly, <ESC>Z (hexadecimal 1B5A), at the end, is a PCL simple escape sequence (Display Functions - Disable) - it's purpose is to cause escape sequences to resume their normal default behaviour and be interpreted.
  • This sequence also has an extraneous character '.(hexadecimal 2E) before the 'Z', rendering it invalid; again, I assume that this is due to the display method.
  • Ignoring other extraneous characters as per above, <ESC>P, <ESC>K and <ESC>J are not PCL escape sequences, so I've no idea what they are intended to signify; and even if they were some proprietary DesignJet sequences, being preceded by <ESC>Y, they would not be interpreted anyway.
Associate Professor
Posts: 1,638
Member Since: ‎05-27-2010
Message 3 of 30 (706 Views)

Re: Designjet 800 PS clips image unwantedly

So if we ignore the questionable PCL sequences, you are left with HP-GL/2 commands, as follows:

 

Offset         Type                   Sequence          Description
-------------  ---------------------  ----------------  ----------------------------------------------------

               Comment                                  Start Language = HP-GL/2 requested
0000000000     HP-GL/2 Command        IN;               Initialise
0000000003     HP-GL/2 Whitespace     0x0d              <CR>: Carriage Return
0000000004     HP-GL/2 Whitespace     0x0a              <LF>: Line Feed
0000000005     HP-GL/2 Command        SP1;              Select Pen
0000000009     HP-GL/2 Command        PU;               Pen Up
0000000012     HP-GL/2 Command        PA24560,17160;    Plot Absolute
0000000026     HP-GL/2 Whitespace     0x0d              <CR>: Carriage Return
0000000027     HP-GL/2 Whitespace     0x0a              <LF>: Line Feed
0000000028     HP-GL/2 Command        PU;               Pen Up
0000000031     HP-GL/2 Command        PA24560,17160;    Plot Absolute
0000000045     HP-GL/2 Command        PU;               Pen Up
0000000048     HP-GL/2 Command        PA23960,16560;    Plot Absolute
0000000062     HP-GL/2 Command        SP7;              Select Pen
0000000066     HP-GL/2 Command        PU;               Pen Up
0000000069     HP-GL/2 Command        PA3868,6454;      Plot Absolute
0000000081     HP-GL/2 Command        PD;               Pen Down
0000000084     HP-GL/2 Command        PA3868,6574;      Plot Absolute
0000000096     HP-GL/2 Whitespace     0x0d              <CR>: Carriage Return
0000000097     HP-GL/2 Whitespace     0x0a              <LF>: Line Feed
0000000098     HP-GL/2 Command        PD;               Pen Down
0000000101     HP-GL/2 Command        AA13914,6514,-89  
0000000117                              ,1;             Arc Absolute
0000000120     HP-GL/2 Command        PD;               Pen Down
0000000123     HP-GL/2 Command        PA13914,16560;    Plot Absolute
0000000137     HP-GL/2 Command        PD;               Pen Down
0000000140     HP-GL/2 Command        AA13914,6514,-90  
0000000156                              ,1;             Arc Absolute
0000000159     HP-GL/2 Whitespace     0x0d              <CR>: Carriage Return
0000000160     HP-GL/2 Whitespace     0x0a              <LF>: Line Feed
0000000161     HP-GL/2 Command        PD;               Pen Down
0000000164     HP-GL/2 Command        PA23960,6514;     Plot Absolute
0000000177     HP-GL/2 Command        PD;               Pen Down
0000000180     HP-GL/2 Command        AA13914,6514,-90  
0000000196                              ,1;             Arc Absolute
0000000199     HP-GL/2 Command        PD;               Pen Down
0000000202     HP-GL/2 Command        PA13914,-3532;    Plot Absolute
0000000216     HP-GL/2 Whitespace     0x0d              <CR>: Carriage Return
0000000217     HP-GL/2 Whitespace     0x0a              <LF>: Line Feed
0000000218     HP-GL/2 Command        PD;               Pen Down
0000000221     HP-GL/2 Command        AA13914,6514,-89  
0000000237                              ,1;             Arc Absolute
0000000240     HP-GL/2 Command        PD;               Pen Down
0000000243     HP-GL/2 Command        PA3868,6454;      Plot Absolute
0000000255     HP-GL/2 Command        PU;               Pen Up
0000000258     HP-GL/2 Command        PA3883,6454;      Plot Absolute
0000000270     HP-GL/2 Command        PD;               Pen Down
0000000273     HP-GL/2 Command        PA3883,6574;      Plot Absolute
0000000285     HP-GL/2 Whitespace     0x0d              <CR>: Carriage Return
0000000286     HP-GL/2 Whitespace     0x0a              <LF>: Line Feed
0000000287     HP-GL/2 Command        PD;               Pen Down
0000000290     HP-GL/2 Command        AA13914,6514,-89  
0000000306                              ,1;             Arc Absolute
0000000309     HP-GL/2 Command        PD;               Pen Down
0000000312     HP-GL/2 Command        PA13914,16545;    Plot Absolute
0000000326     HP-GL/2 Command        PD;               Pen Down
0000000329     HP-GL/2 Command        AA13914,6514,-90  
0000000345                              ,1;             Arc Absolute
0000000348     HP-GL/2 Whitespace     0x0d              <CR>: Carriage Return
0000000349     HP-GL/2 Whitespace     0x0a              <LF>: Line Feed
0000000350     HP-GL/2 Command        PD;               Pen Down
0000000353     HP-GL/2 Command        PA23945,6514;     Plot Absolute
0000000366     HP-GL/2 Command        PD;               Pen Down
0000000369     HP-GL/2 Command        AA13914,6514,-90  
0000000385                              ,1;             Arc Absolute
0000000388     HP-GL/2 Command        PD;               Pen Down
0000000391     HP-GL/2 Command        PA13914,-3517;    Plot Absolute
0000000405     HP-GL/2 Whitespace     0x0d              <CR>: Carriage Return
0000000406     HP-GL/2 Whitespace     0x0a              <LF>: Line Feed
0000000407     HP-GL/2 Command        PD;               Pen Down
0000000410     HP-GL/2 Command        AA13914,6514,-89  
0000000426                              ,1;             Arc Absolute
0000000429     HP-GL/2 Command        PD;               Pen Down
0000000432     HP-GL/2 Command        PA3883,6454;      Plot Absolute
0000000444     HP-GL/2 Command        PU;               Pen Up
0000000447     HP-GL/2 Command        PA24560,17160;    Plot Absolute
0000000461     HP-GL/2 Command        SP0;              Select Pen

 

Note that there is nothing in this code to specify page size, so (I guess) that the printer will use whatever paper size has been set via its front panel controls.

Associate Professor
Posts: 1,638
Member Since: ‎05-27-2010
Message 4 of 30 (705 Views)

Re: Designjet 800 PS clips image unwantedly

If I modify the above HP-GL/2 by inserting the following PCL sequences at the start:

 

0000000000     PCL Simple             <Esc>E            Printer Reset
0000000002     PCL Parameterised      <Esc>%0B          Enter HP-GL/2 Mode: Pen = HP-GL/2
               Comment                                  Switch language to HP-GL/2

 and (for completeness), these at the end:

 

               Comment                                  Switch language to PCL
0000000471     PCL Parameterised      <Esc>%0A          Enter PCL Mode: Cursor = PCL
0000000475     PCL Simple             <Esc>E            Printer Reset

 I am then able to send the contents of my modified file direct to the port of my local (Laser Pro 400 Colour MFP M475dn) PCL printer, which prints a single (A4) page with a blue 'arc' going from top to bottom of the (Portrait) page.

 

I used 'lpr' to send the contents of the file to the (TCP/IP) printer port, rather than using COPY (which is more suited to parallel-port, or (together with 'net use') USB ports.

I don't know what effect the DOS PRINT command would have - it may perhaps inject additional sequences into the print stream.

 

 

... and here is a copy of the modified file, as per above; I've added an extra .txt extenion in order to allow it to be uploaded in this forum.

Tutor
Posts: 15
Member Since: ‎02-22-2014
Message 5 of 30 (683 Views)

Re: Designjet 800 PS clips image unwantedly

Thanks so far to all your valuable answers.

 

As said, I removed the ESC-sequences when experimenting.

 

Yes, <ESC> was meant here as a placeholder.

 

I will try to let my customer print your modified file and see how it makes out.

 

Actually, I can suppress the questionable ESC-seqences and prepend and append the appropriate ones with some

command pipe or DOS COPY and send it to the printer.

 

--

Christoph

 

Tutor
Posts: 15
Member Since: ‎02-22-2014
Message 6 of 30 (665 Views)

Re: Designjet 800 PS clips image unwantedly

Hi,

 

the customer tried out the file on his printer and the DOS print command returns a message in this case:

 

 

CSmiley Embarassed\ PRINT   HPGL2_code_x03.prn.txt
Gerät PRN konnte nicht initialisiert werden

 

 

(Device PRN couldn't be initialized)

 

I will try in turn with the old file (on Monday, since the customer has left for the weekend by now).

But I'm pretty sure that it is a driver issue or privilege problem, that prevents the user from doing the

printer reset.

 

 

--

Christoph

 

 

 

 

Associate Professor
Posts: 1,638
Member Since: ‎05-27-2010
Message 7 of 30 (657 Views)

Re: Designjet 800 PS clips image unwantedly

I wouldn't use the DOS PRINT command; I'd use:

 

  • COPY if the target device is connected via parallel-port.
  • COPY, in conjunction with NET USE, if the target device is connected via USB.  
  • LPR if the target device is connected via a TCP/IP port. 
Tutor
Posts: 15
Member Since: ‎02-22-2014
Message 8 of 30 (652 Views)

Re: Designjet 800 PS clips image unwantedly


Chris H wrote:

I wouldn't use the DOS PRINT command; I'd use:

 

  • COPY if the target device is connected via parallel-port.
  • COPY, in conjunction with NET USE, if the target device is connected via USB.  
  • LPR if the target device is connected via a TCP/IP port. 

Is lpr a standard Windows command? I have cygwin installed which has lpr and it comes up when I type lpr. But this probably only because I alsway put cygwin before windows in the PATH to have the unix versions of find, sort etc. in the first place.

 

--

Christoph

 

Associate Professor
Posts: 1,638
Member Since: ‎05-27-2010
Message 9 of 30 (647 Views)

Re: Designjet 800 PS clips image unwantedly

Christoph

 

I run Windows 8.1 Pro 64-bit, and on this version, 'lpr' is not enabled by default; to enable it, you have to turn on one of the optional Windows features:

 

  • From Control Panel, open the Programs and Features dialogue.
  • Click the Turn Windows features on or off option; you'll need to be logged in as an administrator, or provide the administrator password, in order to continue.
  • In the resultant Windows Features dialogue, under Print and Document Services, enable the LPR Port Monitor option.

I think that enabling 'lpr' on Windows 7 is similar, although rather different on Windows XP.

 

I've no idea whether or not your use of cygwin will affect the use of the built-in 'lpr' command.

 

Chris

Tutor
Posts: 15
Member Since: ‎02-22-2014
Message 10 of 30 (638 Views)

Re: Designjet 800 PS clips image unwantedly

Yes, forgot about the facility to enable unix TCP/IP printing on Windows 7. Good point.

 

--

Christoph

 

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation