![Agilent Technologies 6023A Скачать руководство пользователя страница 122](http://html1.mh-extra.com/html/agilent-technologies/6023a/6023a_operating-manual_2868367122.webp)
Programming the Agilent 603xA Power Supplies Using Basic
122
Service Request
Service request provides the programmer with the means for interrupting the controller when a fault condition occurs.
Service is requested when the FAU bit in the serial poll register, which is the logical OR of all bits in the fault register,
becomes true with SRQ enabled.
The mask register is used to specify conditions which can cause an interrupt. The fault register can be read to determine
which condition caused an interrupt.
The following commands enable and disable the service request function:
OUTPUT @PS;"SRQ ON"
OUTPUT @PS;~SRQ OFF"
EXAMPLE 7: Enable an interrupt upon a transition to overrange mode. This non-functional example is intended to
show the syntax necessary for setting up an interrupt. A similar sequence of commands can be used to define an
interrupt on any status condition(s) so as to get the controller’s attention as quickly as possible upon transition to a
fault condition.
10
ASSIGN @Ps TO 705
20
COM /Ps/ @Ps
30
OUTPUT @Ps; “CLR;UNMASK OR;SRQ ON”
40
ON INTR 7.1 CALL Err_trap
50
ENABLE INTR 7:2
60
!
70
!
80
! DO PROGRAM
90
!
100
!
110
END
120
!
130
!
140
SUB Err_trap
150
OFF INTR"
160
COM /Ps/ @Ps
170
OUTPUT @Ps;FAULT?”
180
Spoll_resp=SPOLL (@Ps)
190
!
200
!
210
! PROCESS INTERRUPT
220
!
230
!
240
SUBEND
Explanation:
10:
Assign I/O path name to power supply
20:
Declare common block for I/O path name
30:
Enable service request on transition to 'OR' mode
40:
Define interrupt at interface 7, (GP-IB) priority 1
50:
Enable interrupt at interface 7 on SRQ
140:
Define error handling routine
150:
Disable interrupt capability while processing
160:
Bring in common block for I/O path name
170:
Read fault register to clear FAU bit in serial poll register
180:
Conduct serial poll to clear RQS bit
Содержание 6023A
Страница 20: ...General Information 20...
Страница 26: ...Installation 26 Figure 2 3 Line Voltage Conversion Components...
Страница 71: ...Operating Instructions 71 Figure 3 16 FLT INH Connections Figure 3 17 INH Example Figure 3 18 FLT Example...
Страница 74: ......
Страница 78: ......
Страница 82: ......
Страница 114: ......
Страница 128: ......