Service Request and Serial Poll

The fault and mask registers, when used in conjunction with the service request and serial poll functions, allow you to select which conditions can cause computer interrupts. The fault and mask registers can also be used independently of the serial poll or service request if so desired. The following example shows how to enable an interrupt to the computer in the case of an overvoltage condition. After the interrupt has occurred, this example includes an interrupt routine that conducts a serial poll to determine on which output the overvoltage occurred. Note that this example assumes that terminal block external OV trip lines are not wired together.

10 ASSIGN @Ps TO 705

20 COM /Ps/ @Ps

30 OUTPUT @Ps;’’CLR;UNMASK1,8;UNMASK2,8;SRQ1’’

40 ON INTR 7,1 CALL Err _ trap

50 ENABLE INTR 7;2

60 OUTPUT @Ps;"OVSET1,4;OVSET2,4"

70 OUTPUT @Ps;’’VSET1,5;VSET2,5"

80 Lbl: GOTO Lbl

90END

100!

110!

120SUB Err _ trap

130OFF INTR

140COM /Ps/ @Ps

150IF BIT(SPOLL(@Ps),0) THEN

160OUTPUT @Ps;’’OUT1,0;OVRST1"

170PRINT "OVERVOLTAGE ON OUTPUT #1"

180END IF

190IF BIT(SPOLL(@Ps),1) THEN

200OUTPUT @Ps;"OUT2,0;OVRST2’’

210PRINT ’’OVERVOLTAGE ON OUTPUT #2"

220END IF

230OUTPUT @Ps;’’FAULT?1;FAULT?2’’

240SUBEND

LINE 10: Assigns the I/O pathname to the power supply.

LINE 20: Declares a common block for the I/O pathname. The COM statement must be used for the @Ps variable to preserve its value for use in the service routine.

LINE 30: Returns the power supply to its power on state, unmasks output 1’s and output 2’s OV status bits to generate faults, and enables the service request capability on all outputs.

LINE 40: Defines interrupt at interface 7, with GP-IB priority 1.

LINE 50: Enables interrupt at interface 7 for service request type interrupts only.

LINE 60: Sets the overvoltage of outputs 1 and 2 to 4 volts.

LINE 70: Sets the voltage of outputs 1 and 2 above the OV setting so that both outputs will overvoltage when the program is run.

LINE 80: Waits for the computer to receive the interrupt. This simulates conditions that would normally exist when a program is running.

LINE 120: Defines the error handling routine.

LINE 130: Disables interrupt capability while processing.

LINE 140: Brings in the common block for the I/O pathname.

LINE 150-180: Conducts a serial poll. If bit 0 in serial poll register indicates a fault for output 1, output 1 is disabled and the overvoltage circuit is reset.

LINE 190-220: Checks bit 1 in serial poll register for a fault on output 2. If true, output 2 is disabled and the overvoltage circuit is reset.

LINE 230: Reads fault registers to clear FAU bits in serial poll register.

106Programming with a Series 200/300 Computer

Page 106
Image 106
Agilent Technologies 6625A, 6626A Service Request and Serial Poll, Enable Intr, OFF Intr, Print Overvoltage on Output #1

6629A, 6625A, 6626A, 6628A specifications

Agilent Technologies, a recognized leader in electronic test and measurement solutions, has developed a series of precision power supplies ideal for a variety of applications in both research and industry. The Agilent 6628A, 6626A, 6625A, and 6629A are part of the Agilent 6000 series and stand out due to their innovative technologies and robust functionalities.

The Agilent 6628A is a triple-output power supply, featuring two 0 to 20 V outputs capable of delivering up to 3 A each, along with a 5 V output that can supply 5 A. This combination is perfect for supplying power to devices that require multiple supply voltages simultaneously, making it an excellent choice for testing and development purposes.

The Agilent 6626A, on the other hand, offers dual output capabilities with higher specifications. Each of its outputs can be adjusted from 0 to 25 V and delivers up to 3 A, providing enhanced flexibility for designers and engineers working with various devices. Additionally, the 6626A's compact size and lightweight design make it easy to integrate into test setups without occupying excessive space.

For applications that require comprehensive monitoring, the Agilent 6625A provides a unique solution with its built-in digital voltmeter (DVM). This power supply comes with two 0 to 25 V outputs, both capable of 3 A. The integrated DVM allows real-time measurement and displays voltage and current values, ensuring accurate readings during experimentation and testing.

Lastly, the Agilent 6629A is designed for high-performance applications, providing up to four outputs, including two adjustable outputs that can be set between 0 to 35 V and deliver 5 A each. This model is particularly suited for environments where multiple devices need to be powered simultaneously with varying voltage requirements.

All four models come equipped with key features including ease of programming, precision regulation, and superior load transient response. They employ advanced technologies like low-noise operation and excellent line regulation, ensuring stable performance under varying load conditions. Additionally, safety features such as overvoltage protection, current limiting, and rapid recovery from overloads guarantee reliable operation.

In summary, Agilent's 6628A, 6626A, 6625A, and 6629A power supplies provide versatile, precise, and reliable solutions for all electronic testing needs. Their characteristics and dedicated functionalities make them indispensable tools for engineers, researchers, and developers across numerous fields. Whether it's for prototyping, testing, or production, these power supplies deliver the quality and performance that professionals expect from Agilent Technologies.