This section discusses some of the problems associated with the printing/plotting of FEMGV plot files.
esc E ! reset esc &l1O ! landscape mode esc %0B ! Enter HP-GL mode ....... ....... ! the HP-GL plot file ....... esc %0A ! Back to PCL mode esc E ! reset and flush where esc is ASCII 27
The text from ! to the end of the line is just a comment and must NOT be typed in to the plotfile.
So, on a PC, for example, you could create HPGL.HDR which contains the first 3 lines and HPGL.TRL which contains the last 2 lines. Then create PRINTHPGL.BAT containing
COPY/B HPGL.HDR+%1+HPGL.TRL LPT1:
So to print FVPLOT.DAT you would type
PRINTHPGL FVPLOT.DAT
On VAX/VMS systems these plotfiles are ASCII text but they must be printed using the PASSALL option.
PRINT/PASSALL/QUEUE=LASERJET FVPLOT.DAT
for example.
On the UNIX machines and the PC the file is in binary format and must be sent to the printer in such a way that no interpretation of control characters is performed.
The stty command may be used in order to condition the printer port. For example, the stty setup used on the Silicon Graphics machine at Femsys Ltd is:
speed 9600 baud; line = 1; intr = DEL; quit = ^\; erase = ^H; kill = ^U; eof = ^A; eol = ^@; swtch = ^@; lnext = ^V; werase = ^W; rprnt = ^R; flush = ^O; stop = ^S; start = ^Q; -parenb -parodd cs8 -cstopb hupcl cread clocal -loblk -tostop -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -iuclc ixon -ixany -ixoff -isig -icanon -xcase -echo -echoe echok -echonl -noflsh -opost -olcuc -onlcr -ocrnl -onocr -onlret -ofill -ofdel
The most important option is -opost which disables all output post-processing.
Alternatively, a printcap entry such as
# HP Laserjet III connected by serial line # hpiii:\ :lp=/dev/ttya:br#9600:ms=raw,-crtscts,ixon,ixoff:\ :sh:sf:sd=/usr/spool/lpd: # # ms=raw allows escape characters to be passed unchanged # sh supress burst page header # sf supress form feeds # # Printer settings: 9600 baud # no parity # 8 data bits # 1 stop bit # xon/xoff handshaking #
could be used.
On the PC simply use COPY/B filename LPT1:
If your printer runs out of memory whilst trying to print a FEMGV plotfile - usually indicated by an Error 20 or Error 21 - you should try recreating the plot at a lower resolution. If you are already working at 150dpi then an alternative solution is to install additional memory. (Additional memory is available from your Hewlett-Packard Sales Representative.....)
Femsys Limited