Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

VPC(4S)  —  SPECIAL FILES

NAME

vpc − Systech VPC-2200 Versatec printer/plotter and Centronics printer interface

SYNOPSIS — SUN-2

device vpc0 at mbio ? csr 0x480 priority 2
device vpc1 at mbio ? csr 0x500 priority 2

DESCRIPTION

This Sun interface to the Versatec printer/plotter and to Centronics printers is supported by the Systech parallel interface board, an output-only byte-wide DMA device.  The device has one channel for Versatec devices and one channel for Centronics devices, with an optional long lines interface for Versatec devices. 

Devices attached to this interface are normally handled by the line printer spooling system and should not be accessed by the user directly. 

Opening the device /dev/vp0 or /dev/lp0 may yield one of two errors: ENXIO indicates that the device is already in use; EIO indicates that the device is offline. 

The Versatec printer/plotter operates in either print or plot mode.  To set the printer into plot mode you should include <vcmd.h> and use the ioctl(2) call:

ioctl(f, VSETSTATE, plotmd);

where plotmd is defined to be

int plotmd[] = { VPLOT, 0, 0 };

When going back into print mode from plot mode you normally eject paper by sending it an EOT after putting into print mode:

int prtmd[] = { VPRINT, 0, 0 };
...
fflush(vpc);
f = fileno(vpc);
ioctl(f, VSETSTATE, prtmd);
write(f, "\04", 1);

FILES

/dev/vp0
/dev/lp0

BUGS

If you use the standard I/O library on the Versatec, be sure to explicitly set a buffer using setbuf, since the library will not use buffered output by default, and will run very slowly. 

Sun Release 3.2  —  Last change: 16 September 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026