,((( 6&3, *3,% 0XOWL 'URS ,QWHUIDFH 2SWLRQ
USER MANUAL FOR IEEE PROGRAMMING INTERFACE FOR GENESYSTM POWER SUPPLIES ,$ 5HY )
7KLV SDJH LQWHQWLRQDO\ OHIW EODQN
Table of Contents 1. THE DIGITAL (IEEE 488.2 SCPI) PROGRAMMING OPTION ..................................1 1.1 INTRODUCTION ...........................................................................................................................................1 1.2 SCOPE OF MANUAL.....................................................................................................................................1 1.3 CONFIGURATION .......................................................................
2.3.5 2.3.6 2.3.7 2.3.8 GLOBAL DISABLE THE SUPPLY OUTPUT COMMAND GLOBAL RESET COMMAND GLOBAL SAVE POWER SUPPLY SETTINGS COMMAND GLOBAL RECALL POWER SUPPLY SETTINGS COMMAND 11 11 12 12 2.4 OUTPUT PROTECTION COMMANDS ...................................................................................................12 2.4.1 OVER VOLTAGE PROTECTION 12 2.4.2 CURRENT FOLD BACK PROTECTION 14 2.5 OPERATING CONDITION COMMANDS ........................................................................................
2.9.6 2.9.7 2.9.8 THE OPERATIONAL REGISTERS THE QUESTIONABLE CONDITION REGISTERS THE SUMMARY REGISTERS 26 27 28 3. SYSTEM:ERROR MESSAGES...............................................................................29 List of Figures FIGURE 1. FIGURE 2. FIGURE 3. FIGURE 4. FIGURE 5. FIGURE 6. MULTI DROP POWER SUPPLIES CONFIGURATION ..................................................................2 IEEE CONNECTOR AND IEEE SELECT SWITCH LOCATION ...................................................
1. THE DIGITAL (IEEE 488.2 SCPI) PROGRAMMING OPTION 1.1 INTRODUCTION The internal factory installed GPIB interface allows to operate the GenesysTM Power Supply from a computer via IEEE-488 communication bus. The GPIB interface allows the user complete remote control of the power supply, including output voltage and current limit programming, setting the Over Voltage Protection, Under Voltage Limit and Foldback protection.
2.9.8.1) indicating the address of a supply that sent an SRQ. 1.5 1.5.1 USING DIGITAL PROGRAMMING THE IEEE-488.2 INTERFACE The IEEE-488 digital programming interface (also called the GPIB interface) is a popular way to connect instruments to a computer. It uses a specialized 24-pin cable with connectors that allow cables to be ‘stacked’ together. There are eight data wires; eight control wires and eight ground wires.
1.7 1.7.1 CONFIGURING THE IEEE INTERFACE SETTING THE POWER SUPPLY AND IEEE SELECT SWITCH Power supply setting – set rear panel DIP switch (SW1) all contact to Down position. The interface contains a two position DIP switch that is accessible from the rear of the Power Supply and located next to the IEEE cable connector. Switch 2, located to the right of Switch1, is not used. Refer to Figure 2 for location of the IEEE connector and the IEEE select switch at the rear panel of the supply.
1.8 CONFIGURING THE SUPPLIES 1R FRQ¿JXUDWLRQ LV UHTXLUHG IRU WKH 0DVWHU 6XSSO\ 7KH ,((( ,QWHUIDFH ZLOO DGDSW WKH DGdress of the Master Supply as its IEEE address. Slave supplies must be given a unique address that is different than the address of the Master supply. No two supplies may be given the same address. All Slave supplies must be set for RS485 operation at 19,200 Baud transmission rate. 1.
HQWHU µ(2, RQ ODVW E\WH¶ ÀDJ enter end-of-string mode/byte: 10 Program supply to 100 volts output ud0: ibwrt “sour:volt 100” [0100] count: ( cmpl ) 12 Program supply to 5 amps output ud0: ibwrt “sour:curr 5” [0100] count: ( cmpl ) 11 Query: “What is output voltage?” ud0: ibwrt “meas:volt?” [0100] count: ( cmpl ) Read response 10 ud0: ibrd 50 [2100] count: 11 31 30 30 Supply reported output voltage ( end cmpl ) 2e 30 38 0a 1 0 0 . 0 8 . 1.10.
‘assume power supply address is set to “6” on DIP switch Call ibdev(0, 6, 0, T3s, 1, 10, intSupplyUD) Call ibwrt(SupplyUD, “:volt 100”) ‘program output to 100 volts Call ibwrt(SupplyUD, “:curr 2”) ‘program output to 2 amps Wait 500 ‘wait 0.5 sec to settle Call ibwrt(SupplyUD, “meas:volt?”) ‘ask “What is output voltage?” Call ibrd(SupplyUD, strMeasVolt) ‘read back output voltage txtOutVolt.
2. PROGRAMMING COMMANDS 2.1 COMMAND NOTES Expressions enclosed in square brackets, [ ], are optional and entered without the [ or ]. Expressions enclosed in greater than/less than, < >, are programming values and entered without the < or >. The expression represents a one character ASCII Space. In all commands upper case characters can be interchanged with lower case characters. 2.2 2.2.
Alternate Format: SOURCE:VOLTAGE :VOLTAGE:AMPLITUDE :VOLTAGE Examples: SOURCE:VOLTAGE:AMPLITUDE 15.77 :VOLTAGE 3.25 2.2.2 READ PROGRAMMED VOLTAGE COMMAND To read what voltage the supply was programmed to, regardless of the actual voltage, send the following command and read the response message. [SOURce]:VOLTage[:AMPLitude]? Alternate Format: SOURCE:VOLTAGE? :VOLTAGE:AMPLITUDE? :VOLTAGE? Examples: SOURCE:VOLTAGE:AMPLITUDE? :VOLTAGE? 2.2.
2.2.6 MEASURE CURRENT COMMAND The output current can be measured by sending the SCPI command: MEASure:CURRent? When the controller does the next IEEE Read, the supply will return the amperes of current being produced Example: MEASURE:CURRENT? 2.2.7 ENABLE THE SUPPLY OUTPUT COMMAND The power supply output can be turned on by sending this command: OUTPut:STATe1 The output will immediately jump to the last programmed voltage and current. Example: OUTPUT:STATE 1 Notes: 1 can be replaced with ON 2.2.
2.2.11 GO TO REMOTE MODE COMMAND Places the supply under control of the IEEE Interface. Syntax: SYSTem:SET<1> Example: SYSTEM:SET 1 Notes: 1 can be replaced with REM 2.2.12 GO TO REMOTE WITH LOCAL LOCK OUT COMMAND Places the supply under control of the IEEE Interface and disables the Front Panel Go To Local Button. Syntax: SYSTem:SET<2> Example: SYSTEM:SET 2 Notes: 2 can be replaced with LLO 2.2.13 READ PROGRAMMING MODE COMMAND Reads the mode of the Power Supply.
2.3.2 GLOBAL PROGRAM OUTPUT VOLTAGE The output voltage of all supplies can be programmed by sending the command: GLOBal:VOLTage[:LEVel][:IMMediate][:AMPLitude] where is any valid voltage with or without a decimal place. Alternate Format: none Example: GLOBAL:VOLTAGE:AMPLITUDE 15.77 2.3.
2.3.7 GLOBAL SAVE POWER SUPPLY SETTINGS COMMAND Sends a command to all Power Supplies causing them to save their operating settings: Programmed voltage, Current, Over Voltage, Under Voltage, Remote/Local Mode, Auto/Safe Restart, Current Fold Back, etc. can be stored in Memory. To change one or more settings, enter the one or more commands with new settings and then enter this command. Syntax: GLOBal:*SAV<0> Example: GLOBAL:*SAV 0 2.3.8 2.
2.4.1.2 READ THE OVER VOLTAGE PROTECTION LEVEL COMMAND Read the over voltage protection level of the Power Supply. Syntax: [SOURce]:VOLTage:PROTection:LEVel? Alternate Format :VOLTAGE:PROTECTION:LEVEL? Example: SOURCE:VOLTAGE:PROTECTION:LEVEL? 2.4.1.3 READ OVER VOLTAGE TRIPPED STATE COMMAND Read if the Power Supply over voltage has tripped. Syntax: [SOURce]:VOLTage:PROTection:TRIPped? Alternate Format: :VOLTAGE:PROTECTION:TRIPPED? Example: SOURCE:VOLTAGE:PROTECTION:TRIPPED? Read the response number.
2.4.2 CURRENT FOLD BACK PROTECTION 2.4.2.1 SET CURRENT FOLD BACK PROTECTION COMMAND Turn on the current fold back protection of the Power Supply. Syntax: [SOURce]:CURRent:PROTection:STATe<1> Alternate Format: :CURRENT:PROTECTION:STATE1 Example: SOURCE:CURRENT:PROTECTION:STATE 1 2.4.2.2 CLEAR CURRENT FOLD BACK PROTECTION COMMAND Turn off the current fold back protection of the Power Supply.
2.5 OPERATING CONDITION COMMANDS 2.5.1 SYSTEM ERROR ENABLE COMMAND Clears the Error Queue and enables all error messages to be placed in the System Error Queue. Refer to Section 3 : SYSTEM:ERROR MESSAGES for details Syntax: SYSTem:ERRor:ENABle Action: Direct the interface to save error messages. Example: SYSTEM:ERROR:ENABLE 2.5.2 READ SYSTEM ERROR COMMAND The oldest error message is removed from the Error Queue and placed in the Output Queue.
OUTPUT:PON 1 Notes: This command is in addition to the SCPI compliance requirements. 2.5.5 REPORT POWER SUPPLY POWER-UP MODE COMMAND Report the Power Supply Auto-Restart or Safe-Start operation upon power up mode. The interface will return an ON if the supply is Auto-restart operation or an OFF if the supply is in SafeStart operation Syntax: OUTPut:PON? Example: OUTPUT:PON? Notes: This command is in addition to the SCPI compliance requirements. 2.5.
2.6.3 READ SERVICE REQUEST ENABLE COMMAND Read the value of the Service Request Enable Register. Syntax: *SRE? Example: *SRE? Notes: The returned is a decimal number representing the sum of all the enabled bits. The range of is 0 to 255. 2.6.4 READ STATUS BYTE COMMAND Read the value of the Status Register. The Status Byte Register contains eight bits which are set to show that some other register has recorded an event or an error. See Table 1.
2.6.7 READ STANDARD EVENT STATUS ‘EVENT’ REGISTER COMMAND Read the value of the Event Status Register. See Table 2 Figure 4 Figure 5 and Figure 6. Syntax: *ESR? Example: *ESR? Notes: The returned is a decimal number representing the sum of all the enabled bits. The range of is 0 to 16,767. 2.6.8 READ IDENTITY COMMAND Read Company Logo, Power Supply range, Serial Number and Revision of the Power Supply and Version of this IEEE Interface.
2.6.11 OPERATION COMPLETE COMMAND Set the Operation Complete Bit in the Standard Event Status Register when all RSHUDWLRQV KDYH ¿QLVKHG Syntax: *OPC Example: *OPC 2.6.12 READ OPERATION COMPLETE COMMAND 3ODFH D LQ WKH 2XWSXW 4XHXH ZKHQ DOO RSHUDWLRQV KDYH ¿QLVKHG Syntax: *OPC? Example: *OPC? 2.6.
2.7 INSTRUMENT SELECT COMMANDS 2.7.1 SELECT SUPPLY Commands Interface to conduct communications with a designated supply when in Multi Drop Mode. Syntax: INSTrument:NSELect where nn is the address of the selected supply Example: INSTRUMENT:SELECT 17 Notes: Upon power up the Master Supply will be automatically selected. :NSELect may be replaced with :SELect 2.7.2 READ SELECTED SUPPLY NUMBER Syntax: INSTrument:NSELect? Notes: Returns the selected .Supply number ’xx’ 2.8 STATUS COMMANDS 2.8.
The returned is a decimal number representing the sum of all the condition bits. The range of is 0 to 255. 2.8.3 SET OPERATIONAL CONDITION ‘ENABLE’ REGISTER COMMAND Sets the Operational Condition Enable Register. Syntax: STATus:OPERation:ENABle Example: STATUS:OPERATION:ENABLE 53 Notes: The is a decimal number representing the sum of all the enabled bits. The range of is 0 to 255. 2.8.
The returned is a decimal number representing the sum of all the event bits. The range of is 0 to 4,095. 2.8.7 SET QUESTIONABLE CONDITION ‘ENABLE’ REGISTER COMMAND Sets the Questionable Condition Enable Register. Syntax: STATus:QUEStionable:ENABle Example: STATUS:QUESTIONABLE:ENABLE 53 Notes: The is a decimal number representing the sum of all the enabled bits. The range of is 0 to 4,095. 2.8.
2.8.11 READ QUESTIONABLE INSTRUMENT SUMMARY ‘EVENT’ REGISTER COMMAND See Figure 6 and Section 2.9.8, THE SUMMARY REGISTERS. Read which supplies sent an SRQ. These bits are set regardless of the value of the enable bit. When set they remain set until read. Syntax: STATus:QUEStionable:INSTrument:ISUMmary1? or STATus:QUEStionable:INSTrument:ISUMmary2? or STATus:QUEStionable:INSTrument:ISUMmary3? Example: STAT:QUES:INST:ISUM1? 2.8.
EVENT REGISTERS: These contain bits that are set when an event or error occurs. The bits are cleared when the contents of the register are queried. 2.9.3 CLEAR ALL STATUS REGISTERS *CLS This command clears all event registers and stored error messages. It will not affect the Conditional, Instrument Summary or the Enable registers. 2.9.
be enabled to cause the request, add up the decimal value for those events and supply that value to the *SRE command. The power up value of the Service Request Enable Register is zero, which means no Service Requests are Enabled. 2.9.5 STANDARD EVENT STATUS ‘EVENT’ REGISTER See the READ STANDARD EVENT STATUS ‘EVENT’ REGISTER COMMAND (*ESR?). The Standard Event Status Register has seven bits that indicate status and errors for the power supply and the interface.
2.9.
2.9.
2.9.8 THE SUMMARY REGISTERS 2.9.8.1 INSTRUMENT SUMMARY 1/2/3 The INSTRUMENT SUMMARY EVENT REGISTER, ISUM1 through ISUM3 (see Figure 6), will record the address of the supply causing an SRQ. These are ‘EVENT’ registers and the bits will remain set until read by the STAT:QUES:INST:ISUMn command. They are always enabled.
3. SYSTEM:ERROR MESSAGES The Status and Error Registers described in the previous section is only one of the status methods in the IEEE board. There is also a SCPI requirement for error messages that are in the form of: The user sends the “SYST:ERR?” query to read the error message.
+321 “AC fault shutdown” Brown-out or phase-loss shutdown occurred +322 “Over-Temperature shutdown” Over-temperature shutdown occurred +323 “Fold-Back shutdown” Fold-Back shutdown occurred +324 “Over-Voltage shutdown” Over-Voltage shutdown occurred +325 “Analog shut-off shutdown” Shut-Off occurred from rear panel J1 +326 “Output-Off shutdown” Output-Off occurred from front panel button +327 “Enable Open shutdown” Enable Open occurred from rear panel J1 +340 “Internal message fault” *H
Questionable Condition Condition LSB 0 1 Spare AC Fail Over Temperature Fold Back Prot Over Voltage Prot Shut Off Output Off Output Enable Internal Input Overflow Internal Overflow Internal Internal 2 3 4 5 6 7 8 9 10 11 MSB 15 STAT:QUES:COND? Enable Event 0 AC OTP FLD OVP SO OFF ENA INPO INTO ITMO ICOM 0 0 0 0 AC OTP FLD OVP SO OFF ENA INPO INTO ITMO ICOM 0 0 0 0 STAT:QUES:ENAB STAT:QUES:ENAB? Syst:Err Queue 2 3 4 5 6 7 MSB 15 0 STAT:OPER:COND? Figure 4.
Questionable Condition Condition LSB 0 1 Instrument Summary AC Fail Over Temperature Fold Back Prot Over Voltage Prot Shut Off Output Off Output Enable Internal Input Overflow Internal Overflow Internal Timeout Internal Comm Error 2 3 4 5 6 7 8 9 10 11 MSB 15 STAT:QUES:COND? Enable Event ISUM AC OTP FLD OVP SO OFF ENA INPO INTO ITMO ICOM 0 0 ISUM AC OTP FLD OVP SO OFF ENA INPO INTO ITMO ICOM 0 0 0 0 STAT:QUES:ENAB nn STAT:QUES:ENAB? Syst:Err Queue OR E S S A OPC 0 QYE DDE EXE CME 0 PON
Instrument Summary Registers LSB 0 1 2 3 4 5 6 ISUM 3 7 8 9 10 11 12 13 14 MSB 15 Event Enable 0 SRQ28 SRQ29 SRQ30 0 0 0 0 0 0 0 0 0 0 0 0 0 STAT:QUES:INST:ISUM3? Event LSB 0 1 2 3 4 5 6 ISUM 2 7 8 9 10 11 12 13 14 MSB 15 Event 2 3 4 5 6 ISUM 1 7 8 9 10 11 12 13 14 MSB 15 ISUM2 SRQ0 SRQ1 SRQ2 SRQ3 SRQ4 SRQ5 SRQ6 SRQ7 SRQ8 SRQ9 SRQ10 SRQ11 SRQ12 SRQ13 0 STAT:QUES:INST:ISUM1? Figure 6.
NOTES
NOTES
8. 7'. /DPEGD 8. /WG .LQJVOH\ $YHQXH ,OIUDFRPEH 'HYRQ (; (6 8QLWHG .LQJGRP 7HO )D[ ( PDLO SRZHUVROXWLRQV#HPHD WGN ODPEGD FRP ZZZ XN WGN ODPEGD FRP )5$1&( 7'. /DPEGD )UDQFH 6$6 =$& GHV 'HODFKHV %3 *RPHW] OH &KDWHO /(6 8/,6 7HO )D[ ( PDLO IUDQFH#IU WGN ODPEGD FRP ZZZ IU WGN ODPEGD FRP *(50$1< 7'. /DPEGD *HUPDQ\ *PE+ .