HP 5501A Operating And Service Manual page 151

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

Advertisement

Table
4-73.
70746A
Binary
Interface
Typical
Program
(Cont'd)
*It should be noted when a reference error occurs both measure and error signals willalso go true. In this
example X and Y will both show a measure error although no measure error has occurred.
PROGRAM
47:
if
B>=4;
B-4+B;
I--D
48:
if
B>=2;prt
"ref
errorn;*
0-D
49:
if
B=l;prt
"meas
error";
0-D
50:
if
D4;gto"prterrJ'
51:
rdb(2)+B
52:
wtb2,24,3
53:
rdb(2)-B;
if
B<0;
65536+B--B
54:
r d b ( 2 ) S ;
ifG<0;
65536%-G
55:
int(B/4096)--D
56:
8-4896*D--B
57:
(65536*B+G)*tnt(2-D)-B
58:
if
F 4
and
B - I W f i
B-2r
28-8
59:
if
F=l
and
B-1Wa;
B-2
t28+B
60:
ret
61:
"prterr":
ifF=0;
prt
"X-AXIS
ERROR"
62:
if
F=l;
prt
"Y-AXIS
ERROR"
63:
dsp
"go
to
gageJJ;stp
64:
gto
fi
65:
end
I f using a 5570A Automatic Compensator, a OV(96) command must be sent to guarantee update o f data.
(This should be done at beginning o f program.)
COMMENT
If
Bit
26,
D=l
as
possible
recoverable
error.
Clear
Bit
26.
If
Bit
25,
D 4
as
irrecoverable
error.
Clear
bit
25.*
If
Bit
24,
D
=
0
as
irrecoverable
error.
Print
"meas
error".
go
to
"prterr"
if
irrecoverable
error.
Refer
to
step
61.
Overflow
only.
Read
i n
bits
15-0
t o
complete
previous
3P
command.
2491
=
80
=
clears
error
bits
o n
10746A
so
28
bits
of
data
can
be
transferred
with
3P
command.
3
=
3P
=
prepare
t o
transfer.
Read
i n
bits
31-16.
Complements
if
negative.
Reads
in
bits
15-0.
Complements
if
negative.
D
contains
bits
31-28
decimal
point
information.
B
=
Bits
27-16.
B*2116
+
Bits
15-0.
2-D
applies
decimal
point.
Correct
for
overflow. (Really
underflow).
Correct
for
overflow.
(Really
underflow).
Irrecoverable
error,
so
stop
and
go
t o
gage.
Table
4-74.
Binary
Interface
Typical
Program
Variables
I
VARIABLE
CONTENTS
I
r l
I
X
Tolerance
in
Microns
Y
Tolerance
i n
Microns
X Destination
i n
MM
or
Fringes
Y
Destination
i n
MM
or
Fringes
Compensation
Number
for
VOL
and
Material
Temperature
Current
X
Location
in
Fringes
I
r4
I
Current
Y
Location
in
Fringes

Advertisement

Table of Contents
loading

Table of Contents