Agilent Technologies Agilent 6031A Video Gaming Accessories User Manual


 
Programming the Agilent 603xA Power Supplies Using Basic
118
Output Inhibit / Enable
The output of the supply can be inhibited without disturbing other programmed functions by sending the device command
"OUT OFF" . While the supply is disabled in this manner, it can still accept new programming commands. The device
command "OUT ON" will re-enable the output.
Power Supply Status
The power supply makes available several forms of status information. The present-status register contains continuously
updated status information. The accumulated-status register provides a summary of the conditions which existed, even if
only temporarily, since last reading the register.
The fault and mask registers, when used in conjunction with the service request and serial poll functions, allow the user to
select which conditions can cause controller interrupts. The fault and mask registers can also be used independent of serial
poll or service request in a manner similar to the accumulated-status register as shown in Example 5.
The structure of present-status, mask, fault and accumulated-status registers is as follows:
Condition
RI ERR FOLD AC OT OV OR CC CV
Bit position876543210
Bit Weight 256 128 64 32 16 8 4 2 1
Where CV - Constant Voltage Mode
CC - Constant Current Mode
CR - Overrange Mode
OV - Overvoltage Tripped
OT - Overtemperature Tripped
AC - AC Line overage/Dropout
FOLD - Foldback Tripped
ERR - Programming Error
RI - Remote INH Tripped
Present Status
When a status condition is true, the appropriate bit in the present status register will be set.
The device query "STS?" will instruct the supply to output the present status. The query response will consist of the sum of
the bit weights of the true conditions. For example, if the supply is operating in CV mode and a programming error was
detected and not cleared, the status returned will be 128 + 1 = 129.
EXAMPLE 3: Function to check ’OR’ bit in pre-sent status register. In the example, the calling program references the
function as a Boolean variable in a conditional execution statement. In an application program a line such as line 30
could be used to branch in the event that the supply is in ’OR’ mode.
10 ASSIGN @Ps T0 705
20 COM /Ps /@Ps
30 IF FNOr_mode THEN
40 PRINT "SUPPLY IS IN 0R MODE'‘
50 END IF
60 END
70 !