Page 3 - Contents; GENERAL INFORMATION
3 Contents Safety Guidelines 2 Printing History 2 Contents 3 GENERAL INFORMATION 7 About this Guide 7 Documentation Summary 7 User’s Guide 7 External Documents 7 Prerequisites for Using this Guide 8 VXI plug&play Power Product Instrument Drivers 8 Downloading and Installing the Driver 8 Accessin...
Page 6 - General Information; About this Guide; User’s Guide
Introduction 7 1 General Information About this Guide This guide provides remote programming information for the following series of GPIB programmable power supplies: • AGILENT Series 664xA, 665xA, 667xA, 668xA, and 669xA You will find the following information in the rest of this guide: Chapter 2 I...
Page 7 - Prerequisites for Using this Guide; Downloading and Installing the Driver; Accessing Online Help
8 Introduction Prerequisites for Using this Guide This organization of this guide assumes that you know or can learn the following information:1. How to program in your controller language (Agilent BASIC, QUICKBASIC, C, etc.). 2. The basics of the GPIB (IEEE 488). 3. How to program I/O statements fo...
Page 8 - Remote Programming; GPIB Capabilities Of The Power Supply; Introduction To SCPI; lmportant; Conventions
Remote Programming 9 2 Remote Programming GPIB Capabilities Of The Power Supply All power supply functions except for setting the GPIB address are programmable over the IEEE 488 bus (also known asthe General Purpose Interface Bus or "GPIB"). The IEEE 488.1 capabilities of the power supply ar...
Page 9 - SCPI Messages; Types of SCPI Commands; Structure of a SCPI Message
10 Remote Programming SCPI Messages There are two types of SCPI messages, program and response. • A program message consists of one or more properly formatted SCPI commands sent from the controller to the power supply. The message, which may be sent at any time, requests the power supply to perform ...
Page 10 - Parts of a SCPI Message; Note
Remote Programming 11 Figure 2-1. Command Message Structure The basic parts of the message in Figure 2-1 are: Message Component Example Headers VOLT LEV PROT CURR Header Separator The colon in VOLT:LEV Data 4.5 4.8 Data Separator The space in VOLT 4. 5 and PROT 4. 8 Message Units VOLT:LEV 4.5 PROT 4...
Page 11 - Important; Traversing the Command Tree
12 Remote Programming Header Convention. In this manual, headers are emphasized with boldface type. The proper short form is shown in upper-case letters, such as DELay . Header Separator. If a command has more than one header, you must separate them with a colon. ( VOLT:PROT OUTPut:PROTection:CLEar)...
Page 13 - Including Common Commands; SCPI Queries; Value Coupling
14 Remote Programming Note The SCPI parser traverses the command tree as described in Appendix A of the IEEE 488.2 standard. The"Enhanced Tree Walking Implementation" given in that appendix is not implemented in the power supply. The following message shows how to combine commands from diffe...
Page 14 - Examples
Remote Programming 15 Listening Formats <NRf> Extended format that includes <NR1>, <NR2> and <NR3>. Examples: 273 273. 2.73E2 <NRf+> Expanded decimal format that includes <NRf>, MIN and MAX . Examples: 273 273. 2.73E2 MAX. MIN and MAX are the minimum and maximum l...
Page 15 - Controlling the Output
16 Remote Programming Controlling the Output Important The power supply responds simultaneously to both digital and analog programming inputs. If itis receiving an input over the GPIB and a corresponding input from the front panel (and/or fromthe analog programming port), the power supply output wil...
Page 16 - Saving and Recalling States; in; Writing to the Display; Programming Status
Remote Programming 17 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 l...
Page 17 - Programming the Digital I/O Port; The GPIB Address
18 Remote Programming Note The last query string can be handled without difficulty. However, should you request too manyqueries, the system may return a "Query DEADLOCKED” error (-430). In that case, break thelong string into smaller parts. Programming the Digital I/O Port Digital control ports ...
Page 18 - A stand-alone primary address and a direct primary address.
Remote Programming 19 Action Display Shows Press Current address Press new address keys New address replaces numbers on the display Press Display returns to meter mode If you try to enter a forbidden number, ADDR ERROR is displayed. The following examples show how to set addresses: To set stand-alon...
Page 19 - DOS Drivers; Agilent BASIC Controllers
20 Remote Programming DOS Drivers Types of Drivers The Agilent 82335A and National Instruments GP-IB are two popular DOS drivers. Each is briefly described here. See thesoftware documentation supplied with the driver for more details. Agilent 82335A Driver. For GW-BASIC programming, the GPIB library...
Page 24 - Language Dictionary; Introduction; Parameters; Subsystem Commands
Language Dictionary 25 3 Language Dictionary Introduction This section gives the syntax and parameters for all the IEEE 488.2 SCPI commands and the Common commands used bythe power supply. It is assumed that you are familiar with the material in "Chapter 2 - Remote Programming". That chapter...
Page 25 - Description Of Common Commands
26 Language Dictionary Description Of Common Commands Figure 3-1 shows the common commands and queries. These commands are listed alphabetically in the dictionary. If acommand has a corresponding query that simply returns the data or status specified by the command, then both commandand query are in...
Page 33 - Description of Subsystem Commands; Calibration Commands
34 Language Dictionary Description of Subsystem Commands Figure 3-2 is a tree diagram of the subsystem commands. Commands followed by a question mark (?) take only the queryform. Except as noted in the syntax descriptions, all other commands take both the command and query form. Thecommands are list...
Page 34 - Current Subsystem
Language Dictionary 35 Current Subsystem This subsystem programs the output current of the power supply. CURRCURR:TRIG These commands set the immediate current level or the pending triggered current level of the power supply. The immediatelevel is the current programmed for the output terminals. The...
Page 35 - Display Subsystem; DISP
36 Language Dictionary DIG:DATA This command sets and reads the power supply digital control port when that port is configured for Digital I/O operation.Configuring of the port is done via an internal jumper (see Appendix D in the Operating Guide). The port has three signalpins and a digital ground ...
Page 36 - IEEE Standard Digital Interface
Language Dictionary 37 DISP:MODE Switches the display between its normal metering mode and a mode in which it displays text sent by the user. The commanduses the character data <CRD> format. Command Syntax DISPlay[:WINDow]:MODE NORMalITEXT Parameters <CRD> NORMal | TEXT *RST Value NORM E...
Page 37 - Initiate Subsystem; Measure Subsystem
38 Language Dictionary Initiate Subsystem INITINIT:CONT This subsystem enables the trigger system. When a trigger is enabled, an event on a selected trigger source causes thespecified trigging action to occur. If the trigger subsystem is not enabled, all trigger commands are ignored. If INIT:CONT is...
Page 38 - Output Subsystem; OUTP
Language Dictionary 39 Output Subsystem This subsystem controls the power supply's voltage and current outputs and an optional output relay. Do not install or program the Agilent Relay Accessories if the power supply maximum output currentrating (see Table 3-1) exceeds the contact ratings of the rel...
Page 40 - Status Subsystem; Status Operation Registers
Language Dictionary 41 Status Subsystem This subsystem programs the power supply status registers. The power supply has three groups of status registers; Operation, Questionable, and Standard Event. The Standard Event group is programmed with Common commands as described in "Chapter 4 - Status R...
Page 42 - Status Questionable Registers
Language Dictionary 43 Status Questionable Registers Bit Configuration of Questionable Registers Bit Position 15-11 10 9 8 7 6 5 4 3 2 1 0 Condition NU UNR RI NU NU NU NU OT NU NU OC OV Bit Weight 1024 512 256 128 64 32 16 8 4 2 1 NU = (Not used); OC = Overcurrent protection circuit has tripped. OT ...
Page 43 - System Commands
44 Language Dictionary STAT:QUES NTRSTAT:QUES PTR These commands allow you to set or read the value of the Questionable NTR (Negative-Transition) and PTR (Positive-Transistion) registers. These registers serve as polarity filters between the Questionable Enable and Questionable Eventregisters to cau...
Page 44 - Trigger Subsystem; TRIG
Language Dictionary 45 SYST:LANG This command switches the interface between its SCPI (TMSL) command language and its compatibility language. Thecompatability language is provided for emulation of older power supply systems and is described in Appendix B. Sendingthe command causes: • The alternate l...
Page 45 - Voltage Subsystem
46 Language Dictionary TRIG:SOUR This command selects the trigger source. Since the power supply has no other trigger source than the GPIB bus, thiscommand need not be used. It is included in the command set to provide programming compatibility with other instruments(such as the Agilent Electronic L...
Page 48 - Programming Parameters
Language Dictionary 49 Programming Parameters Table 3-1 list the programming parameters for each of the models. Table 3-1. Power Supply Programming Parameters (see note) Parameter Agilent Model and Value CURR[:LEV] MAX and 6641A 6642A 6643A 6644A 6645A CURR[:LEV]:TRIG MAX 20.475 A 10.237 A 6.142 A 3...
Page 49 - Status Reporting; Power Supply Status Structure; Operation Status Group; Register Functions
Status Reporting 51 4 Status Reporting Power Supply Status Structure Figure 4-1 shows the status register structure of the power supply. The Standard Event, Status Byte, and Service RequestEnable registers and the Output Queue perform standard GPIB functions as defined in the IEEE 488.2 Standard Dig...
Page 51 - Questionable Status Group; Standard Event Status Group; Register Commands
Status Reporting 53 Questionable Status Group Register Functions The Questionable Status registers record signals that indicate abnormal operation of the power supply. As shown in Figure4-1, the group consists of the same type of registers as the Status Operation group. The outputs of the Questionab...
Page 52 - Status Byte Register; The RQS Bit; Service Request Enable Register; Status Registers
54 Status Reporting Status Byte Register This register summarizes the information from all other status groups as defined in the "IEEE 488.2 Standard DigitalInterface for Programmable Instrumentation" standard. The bit configuration is shown in Table 4-1. The register can beread either by a ...
Page 53 - Servicing an Operation Status Mode Event
Status Reporting 55 Table 4-4. Default Power On Register States Register Condition Caused By Operation PTR; Questionable PTR All bits = 1 STAT:PRE Operation NTR; Questionable NTR All bits = 0 STAT:PRE Operation Event; Questionable Event All bits = 0 *CLS Operation Enable; Questionable Enable All bit...
Page 54 - Adding More Operation Events
56 Status Reporting Table 4-5. Generating RQS from the CC Event Register Command Comment Operation PTR STAT:OPER:PTR 1024 Allows a positive transition at the CC input (bit 10) to belatched into the Status Event register. 1 Operation Enable STAT:OPER:ENAB 1024 Allows the latched CC event to be summed...
Page 55 - SCPI Command Completion; For a detailed discussion of
Status Reporting 57 SCPI Command Completion SCPI commands sent to the power supply are processed either sequentially or in parallel. Sequential commands finishexecution before a subsequent command begins. A parallel command can begin execution while a preexisting command isstill executing (overlappi...
Page 56 - Error Messages; Power Supply Hardware Error Messages
Error Messages 59 5 Error Messages Power Supply Hardware Error Messages Front panel error messages resulting from selftest errors or runtime failures are described in “Chapter 3 - Turn-OnCheckout” of the power supply Operating Guide. Calibration Error Messages Front panel error messages resulting fr...
Page 58 - SCPI Conformance Information; SCPI Version; SCPI Confirmed Commands; SCPI Approved Commands
SCPI Conformance Information 61 A SCPI Conformance Information Note See Chapter 3 - Language Dictionary for command syntax. SCPI Version This power supply conforms to Version 1990.0. SCPI Confirmed Commands 1 ABOR OUTP:PROT:DEL TRIG[:STAR]:DEL CAL[:STAT) OUTP:PROT:DEL? TRIG[:STAR]:DEL? [SOUR]:CURR[:...
Page 60 - Compatibility Language
Compatibility Language 63 B Compatibility Language The Agilent Series 664xA, 665xA, 667xA, 668xA, and 669xA Power Supplies are programatically compatible with theAgilent 603xA Series AutoRanging Power Supplies (ARPS). This means that you can program the Agilent 664xA, 665xA,667xA, 668xA, and 669xA s...
Page 64 - Index
Index 67 Index —A— AARD, 15analog port. See chapter 4 in the Operating Guide analog programming. See chapter 4 in the Operating Guide ANSI/IEEE, 7, 57ARPS commands, 64 —C— CAL bit. See status bit calibration password. See appendix A in the Operating Guide procedure. See appendix A in the Operating G...
Page 67 - Agilent Sales and Support Office
Agilent Sales and Support Office For more information about Agilent Technologies test and measurement products, applications, services, and for a currentsales office listing, visit our web site: http://www.agilent.com/find/tmdir You can also contact one of the following centers and ask for a test an...