Equipment/Selex: Difference between revisions
(Created page.) |
(Add photo.) |
||
Line 1: | Line 1: | ||
[[File:Plotter_in_london_Hackspace.jpg]] | |||
==Description== | ==Description== | ||
Revision as of 21:13, 16 June 2011
Description
We have a Selex A0 black & white printer. It is really really old and quite slow but it does work. Because it was made in around '94, it uses HP-GL/2 and HP-RTL as input.
HP-GL/2 is a vector format designed for plotters. It's like a more terse version of Logo. Because this is actually a printer pretending to be a pen-plotter it can't draw lines in any order like a pen-plotter can. So when you send the HP-GL/2 data to the printer, it converts it to an internal spatially indexed format, so that it can print it out. This can take a long time! And it also can't stream vector data, so the printer can run out of memory.
HP-RTL is a format used for printing raster data. You can switch between HP-GL/2 mode and HP-RTL mode as you like within a single page, and unlike HP-GL/2, HP-RTL images can be streamed, if transmitted in a certain way. HP-RTL is more complicated than HP-GL/2 and I haven't tried printing any yet. But if you want to print a huge photo or something, that is the way to go.
The readable, but long spec for HP-GL/2 and HP-RTL is here: http://www.hpmuseum.net/document.php?catfile=213
Initialising the printer
1. Turn it on (the switch is on the right hand end), and wait for a bit. The display should say stuff about the firmware (copyright 1994!), and eventually settle on 'Unloaded'.
2. Insert the paper. To do this, lift the two lever things, and slider the right hand stop to the appropriate width of the paper. Then put the paper in, make sure it is straight and lower the two levers. I'm not sure exactly how far to put the paper in, or if it detects where it is. I think the edge should be a few cm in front of the white line.
3. When you insert the paper the printer will start whirring. Press 'Online', and it will suck in the paper and start doing printery things. Eventually it will say 'Online' and something about cooling the ink for a few seconds. You are now ready to print!
Sending the print job
The printer is connected via a USB-to-serial adapter to Lovelace. To print, simply cat your HP-GL/2 file into /dev/ttyUSB0 or something like that. HP-GL/2 files have an extension of ".plt". So your command might be:
cat myplot.plt > /dev/ttyUSB0
This command will block, and while it is executing the printer will start a count-up timer, with an ASCII busy animation: *+-+*+- etc. This means that it is processing the data. Eventually (~15 minutes for a simple A1 plot), it will suddenly start printing!
Creating plt files
This is the tricky part! Apparently Inkscape can output HP-GL/2. And suppooosedly CUPS can be set up to print to it, and this will probably work for simple plots, but for complex ones it is better if you can get proper HP-GL/2 output from whatever you are trying to print.
For the A1 map near the door I wrote an HP-GL/2 output module for my map program.