Agilent Technologies Serials 2933A-08856 to 08860 3025A-09316 and Video Gaming Accessories User Manual


 
Programming the Agilent 603xA Power Supplies Using Basic
123
Delay Time
When changing the output voltage or current level of the supply it may change state to overrange, CV, or CC mode
during the transition. This may not be desirable if an interrupt is enabled upon a mode transition. To deal with such
situation, a time delay is implemented, during which CC, CV and OR bits are masked to the fault register. In addition,
to avoid nuisance tripping, the conditions are also masked to the foldback feature during the delay time.
The conditions are masked for the delay time following the execution of an "OUT ON", "RST", "TRG" or "RCL"
command. "VSET" and "ISET" are masked only with "HOLD OFF".
Default value for the delay time is .5 seconds. Delay time is adjustable from 0 to 31.999 seconds in 1 mS increments.
As an example, the following statement will set delay time to 4.23 seconds:
OUTPUT @PS; "DLY4.23S"
Programming Error Detection
The power supply can recognize all programming errors and inform the programmer when an error occurs. When an error
is detected no attempt is made to execute the command. A bit in the serial poll register (ERR) is set. If the mask register and
SRQ are set, an interrupt will be generated.
The error register contents can be entered into the variable ERR_CODE with the following sequence:
OUTPUT @PS; "ERR?"
ENTER @PS;ERR_CODE
The possible codes returned are:
0 NO ERROR DETECTED
1 UNRECOGNIZED CHARACTER
2 IMPROPER NUMBER
3 UNRECOGNIZED ALPHA CHARACTER
4 SYNTAX ERROR
5 NUMBER OUT OF RANGE
6 ATTEMPT TO EXCEED SOFT LIMITS
7 IMPROPER SOFT LIMIT
8 DATA REQUESTED WITHOUT QUERY
EXAMPLE 8: Program to check programming errors. This program can be entered and run as is. While the program is
running, commands can be sent to the power supply from the computer keyboard. If a programming error is detected,
evidenced by the ’ERROR’ LED on the power supply front panel, depress the labeled softkey. The error will be
displayed on the computer CRT.
10 COM /Ps/ @Ps
20 ASSIGN @Ps TO 705
30 ON KEY 0 LABEL "ERROR?" CALL Err_trap
40 Label: GOTO Label
50 END
60 !
70 !