|
Anleitung Zusammenfassung
VOLT 4.5;CURR 255 Program the voltage and current. VOLT?;CURR? Read back the programmed levels. OUTP ON Enable the output. MEAS:VOLT?;MEAS:CURR? Read back the outputs from the sense terminals. Programming Protection Circuits This example programs the voltage and current, programs an overvoltage protection value, and turns on the overcurrent protection. It then reads back all the programmed values. VOLT:LEV 4.5;PROT 4.75 Program the voltage and overvoltage protection. CURR:LEV 255;PROT:STAT ON Program the current and overcurrent protection. VOLT:LEV?;PROT?;:CURR:LEV?;PROT:STAT? Read back the programmed values. Note the required use of the optional LEVel header in the above example (see "The Effect of Optional Headers", given previously). Changing Outputs by Trigger If you do not program pending triggered levels, they default to the programmed (immediate) output levels. The following statements shows some basic trigger commands. OUTP OFF Disable the output. VOLT:LEV:IMM 2.2;TRIG 2.5 Program the (immediate) voltage level to 2.2V and the pending triggered level to 2.5 V. CURR:LEV:IMM I5O;TRIG 250 Program the (immediate) current level to 150 A and the pending triggered level to 250 A. VOLT:LEV:IMM?;TRIG?;:CURR:LEV:IMM?;TRIG? Check all the programmed values. OUTP ON Enable the output. MEAS:VOLT?;CURR? Read back the immediate levels from the sense terminals. INTIT;TRIG Arm the trigger circuit and send a single trigger. INIT;*TRG Same as above, except using a common command. MEAS:VOLT?;CURR? Read back the triggered levels from the sense terminals. If you need to send two or more triggers, program the trigger circuit for continuous arming. OUTP OFF Disable the output. VOLT:LEV:IMM 5.O;TRIG 2.5 Program the (immediate) voltage level to 5 V and the pending triggered level to 2.5 V. INTIT:CONT ON Program the trigger circuit for continuous arming. OUTP ON Enable the output to 5 V. TRIG Trigger the output voltage to 2.5 V. VOLT:TRIG 5;:TRIG Set the pending trigger level to 5 V and trigger the output voltage back to 5 V. INTIT:CONT OFF Remove the continuous trigger arming. 16 Remote Programming Saving and Recalling States You can remotely save and recall operating states. See *SAV and *RCL in "Chapter 3 - Language Dictionary" for the parameters that are saved and recalled. Note When you turn the power supply on, it automatically retrieves the state stored in location 0. When a power supply is delivered, this location contains the factory defaults (see *RST in "Chapter 3 - Language Dictionary"). OUTP OFF;VOLT:LEV 6.5;PROT 6.8 Program a desired operating state. CURR:LEV 335;PROT:STAT ON *SAV 2 Save this state to location 2. *RCL 2 (Later) recall this same state. Writing to the Display You can include messages to the front panel LCD in your programs. The description of DISP:TEXT in "Chapter 3 Language Dictionary" shows the number and types of permitted display characters. In order to write to the display, you must first change it to text mode as shown in the following example: DIS:MODE TEXT Switch display to text mode. RECALLED 2 Write “Recalled 2” to the display. DIS:MODE NORM Return display to its normal mode. Programming Status You can use status programming to make your program react to events within the power supply. "Chapter 4 - Status Reporting" explains the functions and bit configurations of all status registers. Refer to Figure 4-1 in that chapter while examining the examples given here. Detecting Events via SRO Usually you will want the power supply to generate interrupts (assert SRQ) upon particular events. For this you must selectively enable the appropriate status register bits. The following examples allow the power supply to assert SRQ under selected conditions. 1. STAT:OPER:ENAB 1280;PTR 1280;*SRE 128 Assert SRQ when the supply switches between CV and CC modes. 2. STAT:OPER:ENAB 1;PTR 1;NTR 1;*SRE 128 Assert SRQ when the supply enters or leaves calibration mode. 3. STAT:QUES 3;PTR 3;*SRE 128 Assert SRQ when the supply goes into overvoltage or overcurrent condition. 4. STAT:OPER:ENAB 1280;PTR 1280;Assert SRQ under any event occurring in 1. or 3., above. STAT:QUES 3;PTR 3;*SRE 136 Reading Specific Registers You can exercise program control without interrupts by reading specific registers. STAT:OPER:1280;EVEN? Enable only the CV and CC events and read their status. STAT:OPER:ENAB 1313;PTR 1313;EVEN? Enable all conditions of the Operation Status register and read any events. STAT:OPER:ENAB?;EVENT?;:STAT:QUES:ENAB?;EVEN?;:*ESE?;*ESR? Read which events are active and which events are enabled in the Operation, Questionable, and Standard Event status registers. Remote Programming 17 Note The last query string can be handled without difficulty. However, should you request too many queries, the system may return a "Query DEADLOCKED” error (-430). In that case, break the long string into smaller parts. Programming the Digital I/O Port Digital control ports 1 and 2 are TTL outputs that can be programmed either high or lo...
Dieses Handbuch ist für folgende Modelle:Netzteile - 664xA (482.62 kb)
Netzteile - 667xA (482.62 kb)
Netzteile - 668xA (482.62 kb)
Netzteile - 669xA (482.62 kb)