From: Henk V. <he...@so...> - 2000-05-05 07:26:20
|
On Thu, 4 May 2000, Dave Hill wrote: > The HP 6-ink printers are not supported, because I don't know how to > drive them. What is needed is:- > > 1/ The init commands to tell the printer that the data is CcMmYK. > (i.e. the extra inks are Light Cyan and Light Magenta). Does this > use the "Configure Raster Data" command (ESC * g <n> W), or just > the "Simple Resolution" command (ESC * <n> R)? Maybe the "configure > palette" command (ESC * d <n> W) has something to do with it? The language of the 69x printers is PCL3, which means that they are very similar to the 89x and the 1120 printers. Like those printers, it must be configured with the "configure raster data" command (ESC*g...W) This is de entire string you need to send: /* FILE * device = fopen( "/dev/lp0", "w" ); */ /* \xxx is an octal notation, as accepted by the printf instruction */ fprintf( device, "\033*g38W\002\006" // 6 is for 6 inks "\002\130\002\130\000\002" // 600dpi, 2 dither levels for black "\002\130\002\130\000\002" // 600dpi, 2 dither levels for cyan "\002\130\002\130\000\002" // 600dpi, 2 dither levels for magenta "\002\130\002\130\000\002" // 600dpi, 2 dither levels for yellow "\002\130\002\130\000\002" // 600dpi, 2 dither levels for lcyan "\002\130\002\130\000\002" // 600dpi, 2 dither levels for lmagenta ); for 300dpi printing, just replace the "\002\130" with "\001\054" To start printing, I usually only send the following list of commands: - Reset (ESC E) - SkipPerforation(don't skip) - Page Format (A4) - SetRasterWidth(ESC * r number_of_pixels_per_dataline S) - SetMediaType(glossy, or plain, or ...) - ConfigureRasterData(6 inks, each 600dpi, 2 dither levels) (note that unlike the 89x and 1120, who have 4 dither levels, the 69x has only 2 dither levels) and that's it. After the configure raster data command, you can immediately start sending the raster data using the send plane commands. The send plane commands expect ( number_of_pixels_per_dataline + 7 ) / 8 bytes of data per plane (or per ink). > 2/ The order of the planes to be sent to the printer in the "send > plane" commands (ESC * b <n> V and ESC * b <n> W). This follows the same order as I indicated in the configure raster data command : black, cyan, magenta, yellow, light cyan, light magenta. Henk Verleye |