Model 3456A
3·193. FrontJRear Switch Position.
3-194. The Front/Rear Switch position can be remotely
determined over the HP-lB. This is done by sending
program codes "SW 1 " to the 3456A and then reading
its output. If "0" is output, the switch is set to REAR
and " I " indicates FRONT. Use the programming pro
cedure in Paragraph 3-165 to send the codes and the
procedure in Paragraph 3-184 to read the output data
(switch position). The output is as follows:
J o < o
.. ...
... J
o.'PII ' in ASCII
i'h ,
r",m
0IId ''0'' ,I><
I'<"n"",
':1"
... FRONT """.
indiwi.,. ,
,oon
REAR
3·195. Complete Program Example.
3-196. After you know how to program the 3456A
using the HP-IB, the next step is to write a program of
the algorithm in Paragraph 3-162. Again, the program
is given in the HP-IB Format, HPL (9825A Comroller
Language), and Enhanced Basic (9835A/B, 9845B Con
troller Language).
a. HP-IB Format.
I . Interface clear
ABORT all previous operation
2. 1U6
REMOTE the 3456A
3. 1U6 004
CLEAR the instrument
4. 021
LOCAL
3456A (including the other
devices on the controller's
select code)
5 . 1U6
Send DATA to set up the in
FIRIT4SM020 15
strumem to the dc function,
12
autorange, hold trigger, and
set SRQ bit 4 mask (15 is CR
and 12 is LF)
6. 1U6 010
TRIGGER the 3456A
7. 1U5V
Send the measurement DATA
+ D.DDDDDDE + D
to the controller and store in
015 EOI 012
a variable
8. 15V 030
I f REQUIRE
check the STATUS BYTE;
otherwise skip the next step
(the 030 is the Serial Poll
enable)
9, 10. 031
No STATUS BYTE is sent by
the 3456A (the 031 is the Serial
Poll disable)
1 1 . Controller Lan
Print out the DATA in vari
guage
able A
12. 1U, 001
CLEAR
SET LOCAL (in this case,
only for the 3456A)
13. Controller Lan
Ends the program
guage
CR�OILf
.. f«d
Eod o r
eo .... .. .
Idtn,ir� (if .. ,bled
R".,"
LOCKOUT
the
SERVICE,
LOCKOUT
AND
b. HPL (9825A Controller Language).
0: cH 7
ABORT
I : rem 722
REMOTE 3456A
2: clr 722
CLEAR 3456A
3: 110 7
LOCAL LOCKOUT
4: wrt 722,
DATA. Set up instrument
"FIRIT4SM020"
5 : trg 722
TRIGGER 3456A
6: red 722,A
DAT A.Output of 3456A into
variable
7: ,ds (722) - S
REQUIRE SERVICE?
8: if S=O; gto 10
If no STATUS BIT, skip the
next line
9: stp
Stop the program
10: prt A
Print
variable
1 1 : 1c1 722
CLEAR
SET LOCAL (3456A)
12: end
Ends the program
c. Enhanced Basic (9835A/B, 9845B Controller
Language).
10 ABORTIO 7
ABORT
20 REMOTE 722
REMOTE 3456A
30 CLEAR 722
CLEAR 3456A
40 LOCAL
LOCAL LOCKOUT
LOCKOUT 7
50 OUTPUT 722;
DATA. Set up instrument
"FIRIT4SM020"
60 TRIGGER 722
TRIGGER 3456A
70 ENTER 722;A
DATA. Output of 3456A into
variable
80 STATUS 722;S
REQUIRE SERVICE?
90 IF S = O THEN
If no STATUS BIT, skip the
GOTO 1 1 0
next line
100 STOP
Stop the program
110 PRINT A
Print
variable
120 LOCAL 722
CLEAR
SET LOCAL
130 END
Ends the program
3-197. The information you have received in the
preceding paragraphs should give you a good start in
programming the 3456A over the HP-lB. The following
paragraphs explain some more unique remote opera
tions.
3·198. Front Panal SAD.
3-199. The Front Panel SRQ feature of the 3456A out
puts a Require Service Message when the Front Panel
SRQ button is pressed. Before this can take place. set bit
o
on the SRQ mask (refer to Paragraph 3-169 to set the
mask). Once this is done, press the SRQ button. The
front panel SRQ LED will turn on and the Require Ser
vice Message is output. This condition will remain until
Operation
output
DATA
in
LOCKOUT AND
output
DATA
in
LOCKOUT AND
3·27