Agilent Technologies 664xA, 665xA, 667xA, 669xA Saving and Recalling States, Writing to the Display

Models: 668xA 669xA 667xA 664xA 665xA

1 67
Download 67 pages 46.05 Kb
Page 16
Image 16
Saving and Recalling States

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 CURR:LEV 335;PROT:STAT ON *SAV 2

*RCL 2

Program a desired operating state.

Save this state to location 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

2. STAT:OPER:ENAB 1;PTR 1;NTR 1;*SRE 128

modes.

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

4. STAT:OPER:ENAB 1280;PTR 1280;

overcurrent condition.

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

Page 16
Image 16
Agilent Technologies 664xA, 665xA, 667xA, 669xA manual Saving and Recalling States, Writing to the Display, Programming Status