HP 5501A Operating And Service Manual page 135

Laser transducer system
Hide thumbs Also See for 5501A:
Table of Contents

Advertisement

4.10
TYPICAL
PROGRAMS
Table
4-71.
Instruct~on
Set
Conversion
from
Alphanumeric
to
Decimal
NOTE
The
numbers
shown
in
black
are
negative-true
logic
interface
cards.
The
numbers
shown
in
red
are
for
positive-true
cards.
The
10746A
Binary
lnterface
is
a
positive-true
card.
If
you
are
in
doubt
a s
to
which
numbers to
use,
the
easiest way
to
determine
the
polarity
of
your
I/O
card
is
to
program
a
simple
command
and
note
the
system
response.
Two
typical
programs
(Tables
4-72
and
4-73)
are
provided
to
illustrate
how
to
program
the
10745A
HP-IB
lnterface
and
the
10746A
Binary
lnterface
respectively.
Both
programs
are
commented.
Reference
is
made i n
these
programs
t o
data
movement
figures
to
further
illustrate
the
data
flow
within
the
Laser
Transducer
System.
I n
these
figures
each
specific
instruction
and
the
associated
data
movement
is
shown
i n
red.
Note
that
the decimal
instructions
used
i n
the
binary
interface
program
are
positive-true
values.
Table
4-74
lists
the
Binary lnterface
Typical
Program
Variables.
The
sequence
of
drawings
i n
Figure
4 2
assumes
that
you
will
go
to
a
subroutine
the
first
time
i t
is
referenced
to
determine
its
function.
Address
Command
0
1
2
I
3
4
5
6
7
Table
4-12.
10745A
HP-IB
lnterface
Typical
Program
using
HP
9825A
Calculator
PROGRAM
COMMENT
I
0:
clr
7;
rem
7
1:
wrt
709,
"006X"
A
239
16
238
17
237
18
-
235
28
234
21
233
22
232
23
2: wrt 709, "2V30"
3:
red
709,C
4:
0-E
B
223
32
222
33
221
34
219
36
218
37
217
38
216
39
5: "loop": E+1-E;
if E=10; gto -3
6: wrt 789, "10W30"
C
207
48
206
49
205
-
203
52
202
53
201
54
200
55
Send
Device
Clear
to
all
devices
on
the
HP-IB.
Send
Remote
Enable
to
all
devices
on
the
HP-IB.
Send
to
10745A.
7
=
Select
Code
of
98034A.HP-IB
Interface.
09
=
Address
of
10745A.
0 0
=
System
Initialization
via
HP-I0
6X
=
Set
X-axis
to
extended
resolution.
See
Figures
4-1A
and
B.
Send
to
10745A.
2V
=
transfer
VOL
number.
30
=
Setup
to
output
VOL
to
HP-IB.
See
Figures
4-1C
and
D.
M
47
Y 8
-
45
2le
44
211
-
-
41
214
-
VOL
transferred
via
HP-IB
to
variable
C.
Set loop
counter
for
compensation
update
to
0.
0
15
248
14
241
13
242
12
243
-
-
-
-
Increment
loop
counter.
If
10
times
through
loop
go
read
in
new
compensation value.
Send
to
10745A.
10
=
sample
X,
Y
axis
via
HP-IB.
W
=Transfer
X
to
10745A.
3 0
=
set
up
to
output
X
to
HP-IB.
See
Figures
4-1E,F,
P
255
0
254
1
253
2
252
3
251
4
-
-
-
and
G.
V
159
%
-
157
98
156
99
-
-
-
-
X
127
128
126
129
125
1 3
124
131
123
132
122
133
121
134
120
135
Y
111
144
110
145
109
146
208
147
I07
148
106
149
105
158
104
151
Z
95
168
94
161
93
162
92
163
91
164
90
165
89
166
88
167

Advertisement

Table of Contents
loading

Table of Contents