Re: Designjet 800 PS clips image unwantedly (546 Views)
Reply
Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 1 of 30 (628 Views)

Designjet 800 PS clips image unwantedly

[ Edited ]

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 :)

 

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

 

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 2 of 30 (615 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.
Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 3 of 30 (614 Views)

Re: Designjet 800 PS clips image unwantedly

[ Edited ]

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.

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 4 of 30 (613 Views)

Re: Designjet 800 PS clips image unwantedly

[ Edited ]

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.

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 5 of 30 (591 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

 

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 6 of 30 (573 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:

 

 

C:>\ 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

 

 

 

 

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 7 of 30 (565 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. 
Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 8 of 30 (560 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

 

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 9 of 30 (555 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

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 10 of 30 (546 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

 

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 11 of 30 (501 Views)

Re: Designjet 800 PS clips image unwantedly

I'm back today at the customers' site  and I'm still clueless as to what's going on here.

I took your file:

 

E%0BIN;
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;%0AE

 

To be sure here is the hexdump:

 

00000000  1b 45 1b 25 30 42 49 4e  3b 0d 0a 53 50 31 3b 50  |.E.%0BIN;..SP1;P|
00000010  55 3b 50 41 32 34 35 36  30 2c 31 37 31 36 30 3b  |U;PA24560,17160;|
00000020  0d 0a 50 55 3b 50 41 32  34 35 36 30 2c 31 37 31  |..PU;PA24560,171|
00000030  36 30 3b 50 55 3b 50 41  32 33 39 36 30 2c 31 36  |60;PU;PA23960,16|
00000040  35 36 30 3b 53 50 37 3b  50 55 3b 50 41 33 38 36  |560;SP7;PU;PA386|
00000050  38 2c 36 34 35 34 3b 50  44 3b 50 41 33 38 36 38  |8,6454;PD;PA3868|
00000060  2c 36 35 37 34 3b 0d 0a  50 44 3b 41 41 31 33 39  |,6574;..PD;AA139|
00000070  31 34 2c 36 35 31 34 2c  2d 38 39 2c 31 3b 50 44  |14,6514,-89,1;PD|
00000080  3b 50 41 31 33 39 31 34  2c 31 36 35 36 30 3b 50  |;PA13914,16560;P|
00000090  44 3b 41 41 31 33 39 31  34 2c 36 35 31 34 2c 2d  |D;AA13914,6514,-|
000000a0  39 30 2c 31 3b 0d 0a 50  44 3b 50 41 32 33 39 36  |90,1;..PD;PA2396|
000000b0  30 2c 36 35 31 34 3b 50  44 3b 41 41 31 33 39 31  |0,6514;PD;AA1391|
000000c0  34 2c 36 35 31 34 2c 2d  39 30 2c 31 3b 50 44 3b  |4,6514,-90,1;PD;|
000000d0  50 41 31 33 39 31 34 2c  2d 33 35 33 32 3b 0d 0a  |PA13914,-3532;..|
000000e0  50 44 3b 41 41 31 33 39  31 34 2c 36 35 31 34 2c  |PD;AA13914,6514,|
000000f0  2d 38 39 2c 31 3b 50 44  3b 50 41 33 38 36 38 2c  |-89,1;PD;PA3868,|
00000100  36 34 35 34 3b 50 55 3b  50 41 33 38 38 33 2c 36  |6454;PU;PA3883,6|
00000110  34 35 34 3b 50 44 3b 50  41 33 38 38 33 2c 36 35  |454;PD;PA3883,65|
00000120  37 34 3b 0d 0a 50 44 3b  41 41 31 33 39 31 34 2c  |74;..PD;AA13914,|
00000130  36 35 31 34 2c 2d 38 39  2c 31 3b 50 44 3b 50 41  |6514,-89,1;PD;PA|
00000140  31 33 39 31 34 2c 31 36  35 34 35 3b 50 44 3b 41  |13914,16545;PD;A|
00000150  41 31 33 39 31 34 2c 36  35 31 34 2c 2d 39 30 2c  |A13914,6514,-90,|
00000160  31 3b 0d 0a 50 44 3b 50  41 32 33 39 34 35 2c 36  |1;..PD;PA23945,6|
00000170  35 31 34 3b 50 44 3b 41  41 31 33 39 31 34 2c 36  |514;PD;AA13914,6|
00000180  35 31 34 2c 2d 39 30 2c  31 3b 50 44 3b 50 41 31  |514,-90,1;PD;PA1|
00000190  33 39 31 34 2c 2d 33 35  31 37 3b 0d 0a 50 44 3b  |3914,-3517;..PD;|
000001a0  41 41 31 33 39 31 34 2c  36 35 31 34 2c 2d 38 39  |AA13914,6514,-89|
000001b0  2c 31 3b 50 44 3b 50 41  33 38 38 33 2c 36 34 35  |,1;PD;PA3883,645|
000001c0  34 3b 50 55 3b 50 41 32  34 35 36 30 2c 31 37 31  |4;PU;PA24560,171|
000001d0  36 30 3b 53 50 30 3b 1b  25 30 41 1b 45           |60;SP0;.%0A.E|
000001dd

 And did a

 

COPY file lpt3:

 

The DesignJet 800 PS still clips at about 40% of the page.

The printer is connected via a USB to parallel adapter and

I also connected the printer to my notebook and did a COPY file lpt1: - same clipping,

also after a printer power cycling.

 

 

I'm clueless. If anyone is awake at the moment I'd be grateful for immediate assistance. Thank you.

 

 

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 12 of 30 (498 Views)

Re: Designjet 800 PS clips image unwantedly

As I stated before, if the contents of the HPGL2_code_x03.prn file are copied to my local LaserJet Pro 400 colour MFP M475dn printer, it prints a single (A4) page with a blue 'arc' going from top to bottom of the (Portrait) page- see attached scan.

I don't have any access to (nor any experience of) DesignJet devices.

 

As regards your copy mechanism - you should specify the /b switch (although whether or not this will make any difference to your symptoms, I don't know); e.g.:

COPY  /b  file  lpt3:

 

>> ... clips at about 40% of the page ...

 

What is the page size; can you provide a scan showing the output?

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 13 of 30 (483 Views)

Re: Designjet 800 PS clips image unwantedly

While I was waiting the idea of using COPY /b came to me but it doesn't make any difference.

The interesting thing is that your attachment shows the same clipping as I am seeing. With a HPGL-viewer I'm seeing a full circle and this what I'm expecting to be printed.


The page size is A0. Difficult to provide a scan :) but I'll try to provide a photo.


Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 14 of 30 (479 Views)

Re: Designjet 800 PS clips image unwantedly

Here's the picture.  The ruler is in line with the pen direction. The roll moves perpendicular to the ruler.

The clipping occurs at 42 cm (roughly).

 

Could it be that just the circle segments are not being drawn for some rounding problems or what not?

 

 

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 15 of 30 (476 Views)

Re: Designjet 800 PS clips image unwantedly

Your (revised) symptoms indicate that the paper size being assumed by the device is not A0.

 

I've no idea how you set page size with HP-GL/2.

 

You could perhaps try placing a PlotSize command immediately after the Initialise command; e.g.:

IN;PS46000,32320;

 which (I think) specifies approximately the A0 size (with margins).

 

Or perhaps try it with just PS with no parameters?

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 16 of 30 (464 Views)

Re: Designjet 800 PS clips image unwantedly

[ Edited ]

Chris H wrote:

Your (revised) symptoms indicate that the paper size being assumed by the device is not A0.

 

I've no idea how you set page size with HP-GL/2.

 

You could perhaps try placing a PlotSize command immediately after the Initialise command; e.g.:

IN;PS46000,32320;

 which (I think) specifies approximately the A0 size (with margins).

 

Or perhaps try it with just PS with no parameters?


To no avail.

 

... 0BIN;
IN;PS46000,32320;
SP1
...

 sheer PS doesn't work either.

 

I tried to tinker with the paper menu and besides AUTO I also tried A0 - no effect.

 

Isn't anyone with a DesignJet 800 PS out there who could try out the file?

 

 

--

Best

Christoph

 

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 17 of 30 (447 Views)

Re: Designjet 800 PS clips image unwantedly

I still think that the file probably needs to (somehow) specify the target 'page' size.

 

Perhaps your printer understands PJL?

I've seen reference to (other) DesignJet models using PJL SET PAPERLENGTH and SET PAPERWIDTH commands, so you could perhaps try this.

 

Attached is a modified version of the original HPGL2_code_x03.prn file, with UEL/PJL header sequences:

 

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

0000000000     PCL Parameterised      <Esc>%-12345X     Universal Exit Language (UEL)
               Comment                                  Switch language to PJL
0000000009     PJL Command            @PJL SET           PAPERLENGTH=33675[0a]
0000000036     PJL Command            @PJL SET           PAPERWIDTH=23811[0a]
0000000062     PJL Command            @PJL ENTER         LANGUAGE=PCL[0a]
               Comment                                  Switch language to PCL
0000000086     PCL Simple             <Esc>E            Printer Reset
0000000088     PCL Parameterised      <Esc>%0B          Enter HP-GL/2 Mode: Pen = HP-GL/2
               Comment                                  Switch language to HP-GL/2
0000000092     HP-GL/2 Command        IN;               Initialise
. . .
etc., etc., as per original file

 I've included values for length and width which (I think - but I'm not sure) are specified in units of decipoints.

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 18 of 30 (443 Views)

Re: Designjet 800 PS clips image unwantedly


Chris H wrote:

I still think that the file probably needs to (somehow) specify the target 'page' size.

 

Perhaps your printer understands PJL?

I've seen reference to (other) DesignJet models using PJL SET PAPERLENGTH and SET PAPERWIDTH commands, so you could perhaps try this.

 

Attached is a modified version of the original HPGL2_code_x03.prn file, with UEL/PJL header sequences:

 

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

0000000000     PCL Parameterised      <Esc>%-12345X     Universal Exit Language (UEL)
               Comment                                  Switch language to PJL
0000000009     PJL Command            @PJL SET           PAPERLENGTH=33675[0a]
0000000036     PJL Command            @PJL SET           PAPERWIDTH=23811[0a]
0000000062     PJL Command            @PJL ENTER         LANGUAGE=PCL[0a]
               Comment                                  Switch language to PCL
0000000086     PCL Simple             <Esc>E            Printer Reset
0000000088     PCL Parameterised      <Esc>%0B          Enter HP-GL/2 Mode: Pen = HP-GL/2
               Comment                                  Switch language to HP-GL/2
0000000092     HP-GL/2 Command        IN;               Initialise
. . .
etc., etc., as per original file

 I've included values for length and width which (I think - but I'm not sure) are specified in units of decipoints.


Sending this file to the printer results in an error message on the control panel "Fehler bei Jobverarbeitung" (error in job processing)

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 19 of 30 (432 Views)

Re: Designjet 800 PS clips image unwantedly

The error probably implies that the device doesn't support PJL.

 

I don't think that I can offer any more advice on this, since (as I stated before) I have no access to or detailed knowledge of DesignJet devices.

 

I hope that someone else with the relevant knowledge can help you.

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 20 of 30 (429 Views)

Re: Designjet 800 PS clips image unwantedly

[ Edited ]

I'm beginning to believe that it's not a clipping problem. I added manually a box with the coordinates of the arc starting points (or what that is in the AA command) and, lo and behold, there is no clipping (at least not for the box I'm drawing). You can see from the picture that the arc is moved more to the center of the page. It seems simply 2 arcs are not drawn.

 

 

Would it be recommendable to do a firmware update? Is that possible easily?

 

Engine F/W: A. 02.01

Formatter F/W: A. 01.10R

 

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 21 of 30 (408 Views)

Re: Designjet 800 PS clips image unwantedly

[ Edited ]

... or perhaps the centre of the circle is too close to the zero-point on the Y-axis?

 

Attached are two .prn files (both disguised with additional .txt extensions to allow them to be attached here):

 

  • HPGL2_code_x04a.prn

As per the original HPGL2_code_x03.prn file, but with the addition of a Scale command to make everything smaller:

 

SC0,30000,0,40000;           

 

An incomplete circle, near the bottom of the sheet,  is produced when printed on my (A4) paper printer.

 

  • HPGL2_code_x04b.prn

As per the original HPGL2_code_x03.prn file, but with the addition of a Scale command to make everything smaller, and an Input Relative P1/P2 command to move the scaling points:

 

SC0,30000,0,40000
IR30,30,100,100;  

 A complete circle, nearer (but not at) the centre of the sheet,  is produced when printed on my (A4) paper printer.

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 22 of 30 (399 Views)

Re: Designjet 800 PS clips image unwantedly

[ Edited ]

Looking at the code in more detail, eight (quadrant) arcs are defined:

 

PA3868,6574	AA13914,6514,-89,1
PA13914,16560	AA13914,6514,-90,1
PA23960,6514	AA13914,6514,-90,1
PA13914,-3532	AA13914,6514,-89,1
PA3883,6454	AA13914,6514,-89,1
PA13914,16545	AA13914,6514,-90,1
PA23945,6514	AA13914,6514,-90,1
PA13914,-3517	AA13914,6514,-89,1

 With two of those arcs, the current pen position, defined by the preceding Plot Absolute command, has a negative Y-coordinate.

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 23 of 30 (390 Views)

Re: Designjet 800 PS clips image unwantedly

[ Edited ]

Chris H wrote:

Looking at the code in more detail, eight (quadrant) arcs are defined:

 

PA3868,6574	AA13914,6514,-89,1
PA13914,16560	AA13914,6514,-90,1
PA23960,6514	AA13914,6514,-90,1
PA13914,-3532	AA13914,6514,-89,1
PA3883,6454	AA13914,6514,-89,1
PA13914,16545	AA13914,6514,-90,1
PA23945,6514	AA13914,6514,-90,1
PA13914,-3517	AA13914,6514,-89,1

 With two of those arcs, the current pen position, defined by the preceding Plot Absolute command, has a  negative Y-coordinate.


Are negative Y-ccordinates a problem? I don't think so.

It may be an indication for a firmware problem though.

 

With previous DesignJet models (600 series) the code used to work.

 

 

--

Christoph

 

Honored Contributor
Chris H
Posts: 3,968
Registered: ‎06-04-2004
Message 24 of 30 (387 Views)

Re: Designjet 800 PS clips image unwantedly

[ Edited ]

>> ... Are negative Y-ccordinates a problem? I don't think so ...

 

They probably are awkward if you are using the default HP-GL/2 picture frame, where coordinate (0,0) is at bottom-left of the page.

 

From an old HP-GL/2 reference guide:

 

Capture.PNG

 

Did you try the HPGL2_code_x04a.prn and HPGL2-code_x04b.prn files on your device?

With what results?

Advisor
chriskuku
Posts: 15
Registered: ‎02-20-2014
Message 25 of 30 (370 Views)

Re: Designjet 800 PS clips image unwantedly

[ Edited ]

Chris H wrote:

>> ... Are negative Y-ccordinates a problem? I don't think so ...

 

They probably are awkward if you are using the default HP-GL/2 picture frame, where coordinate (0,0) is at bottom-left of the page.

 

From an old HP-GL/2 reference guide:

 

Capture.PNG

 

Did you try the HPGL2_code_x04a.prn and HPGL2-code_x04b.prn files on your device?

With what results?


Thanks. I'm away from the customers' site now, but I sent the file to him and I'll be back soon.

 

BTW, in terms of the Designjet 800PS , what axis is the pen direction, resp. what the drum direction?

 

 

Another question to the forum admins: Why is it that the font comes out terribly large when I quote an article.

I always have to select the quoted text and set it to font size 2. Awkward. (I left the quoted text unedited this time to demonstrate the effect)

 

 

--

Best

 

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.