EasyManua.ls Logo

HP 54501A - Hardcopy Program (Service Request Using OPC)

HP 54501A
386 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Hardcopy
Program
(Service
Request
using
OPC)
This
sample
program
demonstrates
some
of the
commands
in
the
HARDCOPY
subsystem.
The
service
request
is
used
to
detect
when
the
printing
is
complete.
The
program
assumes
that
a
graphics
printer
is
used
and
its
address
is
set
to
1.
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
CLEAR
707
OUTPUT
707;":EOI
ON"
ON
INTR
7.5
GOTO
220
ENABLE
INTR
7;2
OUTPUT
707
OUTPUT
707
OUTPUT
707
OUTPUT
707
OUTPUT
707
OUTPUT
707
SEND
7.UNT
UNL
SEND
7;TALK
7
SEND
7;LISTEN
1
SEND
7;DATA
GOTO
190
A=SPOLL(707)
OUTPUT
707;":SYSTEM:DSP
'PRINT IS
COMPLETE"'
WAIT 15
OUTPUT
707;":SYSTEM:DSP
""
END
"*CLS"
"*ESE
1"
"*SRE
32"
":HARDCOPY:PAGE
AUTOMATIC"
":HARDCOPY:LENGTH
12"
":PRINT?;*OPC"
'Device
clear
command.
!initializes
HP-IB
registers.
'Turn on
EOI
!Exit
printing routine
'after
SRO
•Enables
SRQ
on
bus
#7
!C1ear
status
data
structures
!Enab1e
OPC
'Enable Event
Status
Register
•Interrupt
!Set
OPC
when
the
•print
is complete
!C1ears
bus
•Puts the
scope
in
talk
mode
!Te11s
printer
to
listen
•Lowers
ATN
line
@
controller
•Loops
until
printing
is
•complete
and
interrupt
!is
generated
•dear
service request
HP
54501A
Programming
Example
Programs
B-11

Table of Contents

Other manuals for HP 54501A

Related product manuals