EasyManuals Logo

HP 5384A Service Manual

HP 5384A
168 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #47 background imageLoading...
Page #47 background image
~
HP
5384A
and
HP 5385A
a Ope<ation and Pmg<amming
EXAMPLE
2.
READING STATUS BYTE
The
following
example
reads
the
status
byte
of
the
HP 5384A/HP 5385A by a serial poll at address 03. The value
returned
is
input
into "A". The
program
first displays
the
status byte prior
to
the
error
condition.
After
the
error
condition
is
generated
by
sending
an illegal
command
"FUS",
the
program
again displays
the
status byte
of
a
different
value.
PROGRAM
10
REM
Example
#2:
READING STATUS
BYTE
"TAR2"
20
S=703
30
CLEAR
al
DISP
USING
"3/"
40
OUTPUT S
;"SMS"
50
A=SPOLL(S)
60
DISP
"The
value
of
the
status
byte
prior
to
the
error
condition
is"
70
DISP
"equal
to";A;"."
80
DISP
90
DISP
"Press
'CONT'
to
generate
an
SRQ
and
alter
the
status
byte
value."
100
DISP
@ PAUSE
110
BEEP
120
OUTPUT S
;"FUS"
130
A=SPOLL(S)
140
DISP
"The
value
of
the
status
byte
after
the
error
condition
is"
150
DISP
"equal
to";A;"."
160
END
line
10
line
20
line
30
line
40
line
50
line
60
line
70
line
80
line
90
line
100
line
110
line
120
Line 130
line
140
line
150
line
160
3-20
PROGRAM DESCRIPTION
Remarks;
comments
only,
does
not
affect
the
program.
Set
"S"
=
to
703.
Clears
the
controller
display only
and
the
cursor skips
three
lines. The reason for skipping 3 lines
is
simply
to
bring
the
cursor
near
the
middle
of
the
display
screen.
Send service
request
mask
to
HP 5384/HP 5385
at
address
equal
to
"S"
for
error
or
failure
condition
or
data
ready
condition.
Read status of
HP
5384A/HP 5385A (into
A)
by a serial poll
at
address
equal
to
"S".
Display
message within
quotes.
Display message within
quotes
and
the
status byte.
Skip
one
line
on
controller
screen.
Display message within
quotes.
Skip
one
line
on
controller
screen
and
halt
program
execution
until
user
presses "CONT".
Beep.
Output
"FUS"
command
to
HP 5384A/HP 5385A
at
address
"S"
("FUS" will
generate
an
error
condition).
Read
the
status of HP 5384A/HP 5385A (into
A)
by a serial poll at
address
"S".
Display
message within
quotes.
Display message within
quotes
and
status byte.
End
program
execution.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 5384A and is the answer not in the manual?

HP 5384A Specifications

General IconGeneral
BrandHP
Model5384A
CategoryCash Counter
LanguageEnglish

Related product manuals