|
Resumen del manual
(Provided the remote inhibit (INH) line is false). The FAU bit can thus be used in conjunction with the fault and mask registers to give the programmer a rapid indication that a user-defined fault has occurred. The RDY bit is cleared when the Agilent603XA is busy processing commands and set when the processing is completed. The PON bit is set when power is first applied to the power supply and is cleared upon receipt of the "CLR" device command or the device clear interface management command. RQS indicates that the supply has requested service. A serial poll will clear this bit. The power supply can be serial polled by assigning the serial poll response to a variable: SPOLL_RESP= SPOLL (@PS) EXAMPLE 6: Use of serial poll to determine whether the supply passed through or into overrange mode. This program differs from the previous example only in the method of reading status. Serial poll is useful because it can be performed within a program line and is much faster than reading a status register. The greater speed is balanced by the level of status information available. If the user does not want to use interrupts from the power supply serial poll can provide the same information with periodic checking. 10 ASSIGN @Ps TO 705 20 OUTPUT @Ps;"CLR;UNMASK OR’’ 30 ! 40 ! 50 ! D0 PROGRAM 60 ! 70 ! 80 IF BIT (SPOLL(@Ps),0) THEN 90 PRINT "SUPPLY ENTERED OR MODE" 100 END IF 110 END Explanation: 10: Assign I/O path name to power supply 20: Initialize power supply, set ’OR’ bit in mask register 80-100: Conduct serial poll, compare to OR bit if both true, print message Note: Fault register must be cleared with "FAULT?" query Programming the Agilent 603xA Power Supplies Using Basic 121 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 122 Programming the Agilent 603xA Power Supplies Using Basic 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 SO...
Otros modelos de este manual:Fuente de alimentación y fuente de alimentación - 6023A (605.22 kb)
Fuente de alimentación y fuente de alimentación - 6028A (605.22 kb)
Fuente de alimentación y fuente de alimentación - 6031A (605.22 kb)
Fuente de alimentación y fuente de alimentación - 6032A (605.22 kb)