p f -symbolic (NOTE: the configuration description, while counter-intuitive, is actually as shown above.) .Ef
p The Benson-Varian printer/plotter in normally used with the line printer system. This description is designed for those who wish to drive the Benson-Varian directly.
p In print mode, the Benson-Varian uses a modified .Tn ASCII character set. Most control characters print various .No non- Ns Tn ASCII graphics such as daggers, sigmas, copyright symbols, etc. Only .Tn LF and .Tn FF are used as format effectors. .Tn LF acts as a newline, advancing to the beginning of the next line, and .Tn FF advances to the top of the next page.
p In plot mode, the Benson-Varian prints one raster line at a time. An entire raster line of bits (2112 bits = 264 bytes) is sent, and then the Benson-Varian advances to the next raster line.
p .Em Note : The Benson-Varian must be sent an even number of bytes. If an odd number is sent, the last byte will be lost. Nulls can be used in print mode to pad to an even number of bytes.
p To use the Benson-Varian yourself, you must realize that you cannot open the device,
a /dev/va0 if there is a daemon active. You can see if there is an active daemon by doing a .Xr vax/lpq 1 and seeing if there are any files being printed. Printing should be turned off using .Xr vax/lpc 8 .
p
To set the Benson-Varian into plot mode include the file
n sys/vcmd.h and use the following
.Xr ioctl 2
call
d -literal -offset indent ioctl(fileno(va), VSETSTATE, plotmd);
.Ed
where
.Ar plotmd
is defined to be
d -literal -offset indent int plotmd[] = { VPLOT, 0, 0 };
.Ed
and
.Ar va
is the result of a call to
.Xr fopen 3
on stdio.
When you finish using the Benson-Varian in plot mode you should advance to
a new page
by sending it a
.Tn FF
after putting it back into print mode, i.e. by
d -literal -offset indent int prtmd[] = { VPRINT, 0, 0 };
...
fflush(va);
ioctl(fileno(va), VSETSTATE, prtmd);
write(fileno(va), "\ef\e0", 2);
.Ed
.Sh FILES
l -tag -width /dev/va0xx -compact t Pa /dev/va0 .El
.Sh DIAGNOSTICS
The following error numbers are significant at the
time the device is opened.
l -tag -width ENXIOxx t Bq Er ENXIO The device is already in use.
t Bq Er EIO The device is offline.
.El
The following message may be printed on the console.
l -diag t va%d: npr timeout. The device was not able to get data from
the
.Tn UNIBUS
within the timeout period, most likely because some other
device was hogging the bus.
(But see
.Sx BUGS
below).
.El
.Sh SEE ALSO
.Xr vax/lpr 1 ,
.Xr vax/vp 4 ,
.Xr vfont 5 ,
.Xr vax/lpd 8
.Sh HISTORY
The
.Nm
driver appeared in
x 4.0 . .Sh BUGS
The 1's (one's) and l's (lower-case el's) in the Benson-Varian's
standard character set look very similar; caution is advised.
p The interface hardware is rumored to have problems which can play havoc with the .Tn UNIBUS . We have intermittent minor problems on the .Tn UNIBUS where our .Xr vax/va 4 lives, but haven't ever been able to pin them down completely.