|
|
1.1 root 1: .\" Copyright (c) 1980 Regents of the University of California.
2: .\" All rights reserved. The Berkeley software License Agreement
3: .\" specifies the terms and conditions for redistribution.
4: .\"
5: .\" @(#)va.4 6.2 (Berkeley) 5/14/86
6: .\"
7: .TH VA 4 "May 14, 1986"
8: .UC 4
9: .SH NAME
10: va \- Benson-Varian interface
11: .SH SYNOPSIS
12: .B "controller va0 at uba0 csr 0164000 vector vaintr"
13: .br
14: .B "disk vz0 at va0 drive 0"
15: .SH DESCRIPTION
16: (\fBNOTE: the configuration description, while counter-intuitive,
17: is actually as shown above\fP.)
18: .PP
19: The Benson-Varian printer/plotter in normally used with the line printer
20: system.
21: This description is designed for those who wish to drive the Benson-Varian
22: directly.
23: .PP
24: In print mode, the Benson-Varian uses a modified ASCII character set.
25: Most control characters print various non-ASCII graphics such as daggers,
26: sigmas, copyright symbols, etc.
27: Only LF and FF are used as format effectors. LF acts as a newline,
28: advancing to the beginning of the next line, and FF advances to the top of
29: the next page.
30: .PP
31: In plot mode, the Benson-Varian prints one raster line at a time.
32: An entire raster line of bits (2112 bits = 264 bytes) is sent, and
33: then the Benson-Varian advances to the next raster line.
34: .PP
35: .B Note:
36: The Benson-Varian must be sent an even number of bytes.
37: If an odd number is sent, the last byte will be lost.
38: Nulls can be used in print mode to pad to an even number of bytes.
39: .PP
40: To use the Benson-Varian yourself,
41: you must realize that you cannot open the device,
42: .I /dev/va0
43: if there is a daemon active.
44: You can see if there is an active daemon by doing a
45: .IR lpq (1)
46: and seeing if there are any files being printed.
47: Printing should be turned off using
48: .IR lpc (8).
49: .PP
50: To set the Benson-Varian into plot mode include the file
51: .RI < sys/vcmd.h >
52: and use the following
53: .IR ioctl (2)
54: call
55: .IP
56: ioctl(fileno(va), VSETSTATE, plotmd);
57: .PP
58: where
59: .I plotmd
60: is defined to be
61: .IP
62: \fBint\fR plotmd[] = { VPLOT, 0, 0 };
63: .PP
64: and
65: .I va
66: is the result of a call to
67: .I fopen
68: on stdio.
69: When you finish using the Benson-Varian in plot mode you should advance to
70: a new page
71: by sending it a FF after putting it back into print mode, i.e. by
72: .PP
73: 'nf
74: \fBint\fR prtmd[] = { VPRINT, 0, 0 };
75: \&...
76: fflush(va);
77: ioctl(fileno(va), VSETSTATE, prtmd);
78: write(fileno(va), "\ef\e0", 2);
79: .fi
80: .SH FILES
81: /dev/va0
82: .SH SEE ALSO
83: vfont(5),
84: lpr(1),
85: lpd(8),
86: vp(4)
87: .SH DIAGNOSTICS
88: The following error numbers are significant at the
89: time the device is opened.
90: .TP 10
91: [ENXIO]
92: The device is already in use.
93: .TP
94: [EIO]
95: The device is offline.
96: .PP
97: The following message may be printed on the console.
98: .PP
99: \fBva%d: npr timeout\fR. The device was not able to get data from
100: the UNIBUS within the timeout period, most likely because some other
101: device was hogging the bus. (But see BUGS below).
102: .SH BUGS
103: The 1's (one's) and l's (lower-case el's) in the Benson-Varian's
104: standard character set look very similar; caution is advised.
105: .PP
106: The interface hardware is rumored to have problems which can
107: play havoc with the UNIBUS. We have intermittent minor problems on the
108: UNIBUS where our
109: .I va
110: lives, but haven't ever been able to pin them down
111: completely.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.