I
-
I
-
Automating Measurements
Controlling Peripherals
Reading
from
the
Parallel
Port
The
paralIe1
port has five TTL input signals,
normally
used for determining
the printer’s status, which can be read. The signals and the corresponding
data bits and pins are shown in the following table:
Pin
Bit
10
00
11
01
r-r
12
02
13 03
15
04
Name
Acknowledge
Busy
Out of Paper
On Line
Printer Error
Your custom interface circuit can drive these signals, and they can be read
using any of these commands:
SCPI commands:
OUTPUT
@Rfna;“DIAG:PORT:READ?
15,lO”
ENTER
ORfna;Parallel,in
BASIC
command:
Parallel-in
=
READIO(l5,lO)
7-59
I-