Page 3 - WARRANTY
WARRANTY Tektronix warrants that this product will be free from defects in materials andworkmanship for a period of one (1) year from the date of shipment. If any such productproves defective during this warranty period, Tektronix, at its option, either will repair thedefective product without charg...
Page 5 - Table of Contents; Preface
PS2520G and PS2521G Programmer Manual i Table of Contents Preface v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting Started 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting Up the GPIB System 1 . . . . . . . . . . . ....
Page 6 - ii; System Structure
Table of Contents ii PS2520G and PS2521G Programmer Manual [SOURce:]CURRent:PROTection:STATe 26 . . . . . . . . . . . . . . . . . [SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] 27 . . . . [SOURce:]VOLTage:PROTection[:LEVel] 27 . . . . . . . . . . . . . . . . *SRE 28 . . . . . . . . . . . . . . . ....
Page 7 - iii; List of Figures
Table of Contents PS2520G and PS2521G Programmer Manual iii Enable Registers 52 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Event Status Enable Register (ESER) 52 . . . . . . . . . . . . . . . . . Service Request Enable Register (SRER) 52 . . . . . . . . . . . . . . OPERa...
Page 8 - iv; List of Tables
Table of Contents iv PS2520G and PS2521G Programmer Manual List of Tables Table 1: Parameter Types for Syntax Descriptions 8 . . . . . . . Table 2: General Setting Commands 12 . . . . . . . . . . . . . . . . . . Table 3: Status Commands 13 . . . . . . . . . . . . . . . . . . . . . . . . . . Table 4:...
Page 11 - Getting Started; Set up GPIB systems; Setting Up the GPIB System; Do not connect more than 15 devices to any one bus.
PS2520G and PS2521G Programmer Manual 1 Getting Started With a computer (controller), you can operate the PS2520G andPS2521G Programmable Power Supplies over the GPIB. This sectionexplains how to perform the following tasks: H Set up GPIB systems H Connect the programmable power supply to a GPIB con...
Page 12 - Figure 1: Typical GPIB Network Configuration; Connecting a Controller; Connect one end of a GPIB cable to the GPIB controller.; programmable power supply.; Turn on the programmable power supply.
Getting Started 2 PS2520G and PS2521G Programmer Manual GPIB Device GPIB Device GPIB Device GPIB Device GPIB Device GPIB Device GPIB Device Figure 1: Typical GPIB Network Configuration Connecting a Controller You must have a GPIB controller, such as a PC with a GPIB card, tooperate the programmable ...
Page 13 - Setting the Address; NOTE; Make sure the AUTO SEQ function is off. (The indicator for
Getting Started PS2520G and PS2521G Programmer Manual 3 GPIB port Figure 2: GPIB Port Setting the Address Change the GPIB address of the programmable power supply usingthe following procedure: NOTE . Each device connected to the same controller must have a unique GPIB address. The factory default ad...
Page 14 - To check the address setting of the power supply, press the; Testing the GPIB Connection
Getting Started 4 PS2520G and PS2521G Programmer Manual 3. To check the address setting of the power supply, press the LOCAL button again. The display remains active for about3 seconds to allow you to view or change the setting. Testing the GPIB Connection To test whether the GPIB connection is work...
Page 15 - Syntax and Commands; A brief introduction to SCPI; SCPI
PS2520G and PS2521G Programmer Manual 5 Syntax and Commands This section provides an overview of the commands for the PS2520Gand PS2521G Programmable Power Supplies. This section includesthe following topics: H A brief introduction to SCPI H A description of the command syntax H Instructions on how ...
Page 16 - Command Syntax; Command header; Command Header; Figure 3: Tree Hierarchy
Syntax and Commands 6 PS2520G and PS2521G Programmer Manual Different product manuals may also use the terms “programmessages” or simply “commands” to refer to commands and queriesas a whole. This manual uses the term “commands” to mean anytype of instruction from the controller to the programmablei...
Page 17 - Figure 4: Command Header
Syntax and Commands PS2520G and PS2521G Programmer Manual 7 The header path and leaf node together form the command header.Figure 4 shows the command header for the leaf node indicated inFigure 3. Root Node Header Path Leaf Node Command Header Figure 4: Command Header Parameter You must include valu...
Page 19 - Message Terminator and Message Separator; LF; Entering Commands; Command Characters
Syntax and Commands PS2520G and PS2521G Programmer Manual 9 Message Terminator and Message Separator In accordance with IEEE 488.2-1992, the accept any of the followingmessage terminators: H LF^END Line feed code (hexadecimal 0A) with END message H LF Line feed code H <dab>^END Last data byte ...
Page 20 - Abbreviating Commands; simply as; Combining Commands; returns the message
Syntax and Commands 10 PS2520G and PS2521G Programmer Manual Abbreviating Commands Most commands have a long form and a short form. The listing foreach command in this section shows the abbreviations in upper case.For example, you can enter the query SOURce:VOLTage? simply as SOUR:VOLT? (or sour:vol...
Page 22 - Summary of Commands; General Setting Commands
Syntax and Commands 12 PS2520G and PS2521G Programmer Manual Summary of Commands The tables in this section summarize the command set of theprogrammable power supplies. These tables divide the commandsinto the following functional groups: H General Setting Commands H Status Commands H Miscellaneous ...
Page 24 - Command
Syntax and Commands 14 PS2520G and PS2521G Programmer Manual Table 3: Status Commands (Cont.) Command Description Returns and clears the contents of StandardEvent Status Register (SESR). #!" " Returns the contents of the OPERationcondition register. Returns NR1. #!" Sets the contents of ...
Page 27 - Not a SCPI standardized command.
Syntax and Commands PS2520G and PS2521G Programmer Manual 17 Table 4: Miscellaneous Commands (Cont.) Command Description Resets the protection levels and states,resets the current and voltage levels to zero,sets the output off, and sets memory point to00. Initiates internal self-test and reports res...
Page 29 - Command Descriptions; Syntax
PS2520G and PS2521G Programmer Manual 19 Command Descriptions This section provides an alphabetical listing and a detaileddescription of each command. It also provides examples of eachcommand and what the query form might return. *CLS (No Query Form) Clears the following status data structures: H St...
Page 34 - OFF
Syntax and Commands 24 PS2520G and PS2521G Programmer Manual OUTPut[:STATe] Enables or disables the output of the power supply. ON (enabled) issignified by a 1 and OFF (disabled) by a 0 . The query form returns a 1 if the output is on and a 0 if the output is off. OUTPut:STATe <Boolean> OUTPut...
Page 35 - State; ON; MAXimum
Syntax and Commands PS2520G and PS2521G Programmer Manual 25 Table 5: State of Control Settings after *RST (Cont.) Front PanelControl State Related Command OCP ON/OFF [SOURce:]CURRent:PROTection :STATe ON DELAY — 0 AUTO SEQ SYSTem:AUTO OFF RECALL(memory location) — 00 OVP SET [SOURce:]VOLTage:PROTec...
Page 51 - Status and Events
PS2520G and PS2521G Programmer Manual 41 Status and Events The PS2520G and PS2521G Programmable Power Supplies providea status and event reporting system for the GPIB interface. Variousregisters and queues make up this system. This section explains howthese registers and queues work to inform you of...
Page 52 - Figure 6: QUEStionable INSTrument Registers
Status and Events 42 PS2520G and PS2521G Programmer Manual STATus:QUEStionable:INSTrument:ISUMmary3 To Status Byte, Bit 3 Output1 OCP Output1 OVP Output1 CURRent Output1 VOLTage 0123456789 101112131415 Not Used Not Used Not UsedNot Used Not UsedNot UsedNot Used Not Used Not UsedNot Used Not Used STA...
Page 53 - Figure 7: Status and Event System
Status and Events PS2520G and PS2521G Programmer Manual 43 SYSTem:ERRor? 01234567 01234567 IEEE 488 Registers Status Register IEEE-488.2) Status Byte IEEE-488.1) 0123456789 101112131415 SRQ OPERation Status (SCPI) OPC QYEDDE EXE CME USR PON E/E QUES MAV ESB RQS/MSS OPER Output Queue Error/Event Queu...
Page 54 - Status Registers; SCPI Status Registers
Status and Events 44 PS2520G and PS2521G Programmer Manual Status Registers The programmable power supplies use status registers that aredefined by SCPI, IEEE-488.1, and IEEE-488.2 standards. SCPI Status Registers The power supplies include two status registers defined by the SCPIstandard: H OPERati...
Page 55 - Figure 9: Status Registers and Related Commands; Although the OPERation Status
Status and Events PS2520G and PS2521G Programmer Manual 45 STAT:OPER:COND Condition Register To SBR STAT:QUES:COND STAT:OPER:ENAB Enable Register STAT:QUES:ENAB STAT:OPER:[EVEN]? Event Register STAT:QUES:[EVEN]? Figure 9: Status Registers and Related Commands The CONDition register is a read-only re...
Page 58 - Bit Number; The command
Status and Events 48 PS2520G and PS2521G Programmer Manual Table 8: QUEStionable INSTrument ISUMmary<n> StatusRegister Bit Number Name Condition (Bit is True) 0 Output<n>Voltage Output<n> Constant Current (CC), voltageunregulated. 1 Output<n>Current Output<n> Constant V...
Page 60 - Table 9: SBR Bit Functions; Figure 11 shows the SESR.
Status and Events 50 PS2520G and PS2521G Programmer Manual Table 9: SBR Bit Functions Bit Function 0 (LSB) Not used. This bit is always zero. 1 Not used. This bit is always zero. 2 E/E (Error and Event) indicates an error code is waiting to beread in the Error Event Queue 3 QUES (QUEStionable) is th...
Page 61 - Table 10: SESR Bit Functions
Status and Events PS2520G and PS2521G Programmer Manual 51 Use the query to read the SESR. Reading the SESR clears the bits of the register so that the register can accumulate informationabout new events. Table 10 explains the function of each bit in the SESR. Table 10: SESR Bit Functions Bit Functi...
Page 62 - Enable Registers; OPERation Enable Register
Status and Events 52 PS2520G and PS2521G Programmer Manual Enable Registers The enable registers determine whether certain events are reported tothe Status Byte Register and SRQ. The programmable power supplyhas the following enable registers: H Event Status Enable Register (ESER) H Service Request ...
Page 64 - Queues; Output Queue; Error Messages
Status and Events 54 PS2520G and PS2521G Programmer Manual Queues The programmable power supplies contain two queues: the OutputQueue and the Error/Event queue. Output Queue Following IEEE 488.2 protocols, the programmable power suppliesstore query responses in the Output Queue. The power supply cle...
Page 65 - Table 11: Error Messages
Status and Events PS2520G and PS2521G Programmer Manual 55 Table 11: Error Messages SCPI Error Code and Description Front PanelError Code SESRBit 0, “No error” — — –100, “Command Error” — 5 –108, “Parameter not allowed” — 5 –109, “Missing parameter” — 5 –121, “Invalid character in number” — 5 –124, ...
Page 66 - SCPI Error Code and Description
Status and Events 56 PS2520G and PS2521G Programmer Manual Table 11: Error Messages (Cont.) SCPI Error Code and Description SESRBit Front PanelError Code –300, “Device-specific error; Calibration current full-scaleerror” –091 3 –300, “Device-specific error; Calibration voltage full-scaleerror” –092 ...
Page 67 - Index
PS2520G and PS2521G Programmer Manual 57 Index A abbreviating, command, 10address, setting GPIB address of power supply, 3 B brackets, 10 C *CLS, 19CME, 51command abbreviating, 10combination, 10definition of, 5descriptions, 19entering, 9header, 6, 7syntax, 6 command set alphabetical listing of. See ...