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.

10ASSIGN @Ps TO 705

20COM /Ps/ @Ps

30OUTPUT @Ps; “CLR;UNMASK OR;SRQ ON”

40ON INTR 7.1 CALL Err_trap

50ENABLE INTR 7:2

60

!

70

!

80! DO PROGRAM

90!

100!

110END

120!

130!

140SUB Err_trap

150OFF INTR"

160COM /Ps/ @Ps

170OUTPUT @Ps;FAULT?”

180Spoll_resp=SPOLL (@Ps)

190!

200!

210! PROCESS INTERRUPT

220!

230!

240SUBEND

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

122 Programming the Agilent 603xA Power Supplies Using Basic

Page 122
Image 122
Agilent Technologies 6033A, 6035A, 6028A, 603xA, 6023A, 6038A 6010A, 6031A Service Request, Output @PSSRQ on Output @PS~SRQ OFF