background image

KEPCO

®

  

THE POWER SUPPLIER™

MODEL

 

DEVELOPER’S GUIDE

ORDER NO.

REV. NO.

KEPCO, INC.  

!

  131-38 SANFORD AVENUE  

!

  FLUSHING, NY. 11355 U.S.A.  

!

  TEL (718) 461-7000  

!

  FAX (718) 767-1102

email: [email protected]  

!

  World Wide Web: http://www.kepcopower.com

KEPCO INC.

An ISO 9001 Company.

KLR SERIES

POWER SUPPLY

2400 WATT PROGRAMMABLE POWER SUPPLY

 

 

KLR SERIES

DEVELOPER’S GUIDE

           

     

©2013, KEPCO, INC
P/N 243-1298

IMPORTANT NOTES:
1)

This manual is valid for the following Model and associated serial numbers:

       FIRMWARE VERSION

NOTE

       

            10.07 and higher

2)

A Change Page may be included at the end of the manual. All applicable changes and
revision number changes are documented with reference to the equipment serial num-
bers. Before using this Instruction Manual, check your equipment serial number to identify
your model. If in doubt, contact your nearest Kepco Representative, or the Kepco Docu-
mentation Office in New York, (718) 461-7000, requesting the correct revision for your
particular model and serial number.

 3)

The contents of this manual are protected by copyright. Reproduction of any part can be
made only with the specific written permission of Kepco, Inc. 

 
 

Data subject to change without notice.

Summary of Contents for KLR SERIES

Page 1: ...RSION NOTE 10 07 and higher 2 A Change Page may be included at the end of the manual All applicable changes and revision number changes are documented with reference to the equipment serial num bers Before using this Instruction Manual check your equipment serial number to identify your model If in doubt contact your nearest Kepco Representative or the Kepco Docu mentation Office in New York 718 4...

Page 2: ......

Page 3: ...VI COM DRIVER 3 1 1 Specification Compliance 3 1 3 1 2 Range Checking and Coercion 3 1 3 1 3 Multithreading Support 3 1 3 1 4 Context Sensitive Help 3 2 3 1 5 Installer 3 2 3 1 6 Rights 3 2 3 2 IVI COM Instrument Driver Functions 3 2 3 3 Examples Using C 3 4 3 3 1 Setting the output to a value and Making a Measurement 3 4 3 3 2 Using a list to Perform a Series of Operations 3 8 3 3 3 Setting Limit...

Page 4: ...ogram Using the VXI plug play Driver 5 9 5 5 1 Instrument Setup 5 9 5 5 2 Main Panel 5 10 5 5 3 Power Supply Events 5 14 SECTION 6 PROGRAMMING THE KLR USING SCPI COMMANDS 6 2 SCPI Messages 6 1 6 3 Common Commands Queries 6 1 6 4 SCPI Subsystem Command Query Structure 6 1 6 4 1 DISPlay Subsystem 6 1 6 4 2 TRIGger Subsystem 6 1 6 4 3 Abort Subsystem 6 2 6 4 4 LIST Subsystem 6 2 6 4 5 MEASure Subsyst...

Page 5: ...NITIONS A 2 CLS Clear Status Command A 1 A 3 ESE Standard Event Status Enable Command A 1 A 4 ESE Standard Event Status Enable Query A 2 A 5 ESR Event Status Register Query A 2 A 6 IDN Identification Query A 2 A 7 OPC Operation Complete Command A 3 A 8 OPC Operation Complete Query A 3 A 9 OPT Operation Complete Query A 4 A 10 RCL Recall Command A 4 A 11 RST Reset Command A 4 A 12 SAV Save Command ...

Page 6: ... 10 B 42 SOURce CURRent PROTection LEVel Command B 11 B 43 SOURce CURRent PROTection LEVel Query B 12 B 44 SOURce CURRent LEVel TRIGgered AMPLitude Command B 12 B 45 SOURce CURRent LEVel TRIGgered AMPlitude Query B 12 B 46 SOURce FUNCtion MODE Command B 12 B 47 SOURce FUNCtion MODE Query B 12 B 48 SOURce VOLTage LEVel IMMediate AMPLitude Command B 12 B 49 SOURce VOLTage LEVel IMMediate AMPLitude Q...

Page 7: ...O Query B 21 B 86 SYSTem COMMunication SERial ENABle Command B 21 B 87 SYSTem COMMunication SERial ENABle Query B 21 B 88 SYSTem COMMunication SERial PACE Command B 21 B 89 SYSTem COMMunication SERial PACE Query B 21 B 90 SYSTem COMMunication SERial PROMpt Command B 21 B 91 SYSTem COMMunication SERial PROMpt Query B 22 B 92 SYSTem ERRor NEXT Query B 22 B 93 SYSTem ERRor CODE NEXT Query B 22 B 94 S...

Page 8: ...mp Example 4 12 4 9 Ramp Function Panel Current Ramp 4 14 4 10 Function Generator Panel 4 16 4 11 Configure User Sequence vi Block Diagram 4 16 4 12 Ramp Function Block Diagram 5 17 4 13 Function Generator List Functionality Block Diagram 5 19 5 1 Example 1 Setting Voltage and Current 5 4 5 2 Example 2 Using the power supply to create a voltage ramp 5 5 5 3 Example 3 Using the power supply to Take...

Page 9: ...E 488 Port Connector J4 Pin Assignments 7 1 7 2 IEEE 488 GPIB Bus Interface Functions 7 2 7 3 IEEE 488 GPIB Bus Command Mode Messages 7 2 7 4 IEEE 488 GPIB Bus Data Mode Messages 7 3 9 1 Telnet Port 5024 and SCPI Raw Port 5025 Control Characters 9 1 A 1 IEEE 488 2 Command query Index A 1 A 2 Standard Event Status Enable Register and Standard Event Status Register Bits A 1 A 3 Service Request Enabl...

Page 10: ......

Page 11: ...th the unit This driver is written in native LabView code using the VISA write and read functions see Section 4 VXI plug play driver supplied with the unit This driver is written in C using VISA write and read functions It is compliant with the VXI plug play specification and can be used in an ANSI compatible C program such as LabWindows CVI It is also portable to Linux and Apple operating systems...

Page 12: ...endix A Listing of SCPI commands supported see Appendix B 1 2 DRIVER OVERVIEW The three drivers for KLR all have common functional groups Each group contains similar func tions which work together The four different environments IVI COM LabView G VXI Plug Play and Programming all have common functionality The KLR power supply like most instrument power supplies has four subsystems output trig ger ...

Page 13: ... Values are stored in the nonvolatile memory and are retained when the unit is turned off The stored settings can then be recalled and applied as desired See PAR A 13 for SAV Save and A 13 for RCL Recall The unit has the ability to read or set the storage locations without affecting the output of the power supply These setting are cleared when a calibration is per formed Recalling a location which...

Page 14: ...ail ability The successful decoding of a command string generates no error and is indicated by the bit 3 of the serial poll response being a zero The setting of bit 4 in the status byte indicates data is available to the controller in response to a command query message 1 2 7 1 STATUS REPORTING STRUCTURE The status reporting of the KLR uses four status register sets illustrated in Figure 1 1 These...

Page 15: ... as a 1 in the corresponding Event reg ister If bit 0 of the Questionable Status Enable register has bit 0 set bit 3 of the Status Byte STB register is asserted If bit 3 of the Service Request Enable SRE register is also set to 1 then bit 6 of the STB is set to 1 true causing the power supply to assert the SRQ line to the host computer FIGURE 1 1 STATUS REPORTING STRUCTURE ...

Page 16: ...y Read error queue using SYST ERR 3 Questionable Status Summary 1 indicates a Questionable Status register bit has been set see Appendix B Table B 5 for details Read and clear Questionable Event register using STAT QUES 4 Message Available 1 indicates a message is waiting in the output buffer 5 Event Status Summary 1 indicates an Event Status register bit has been set Read and clear Questionable E...

Page 17: ...rmal operation The definition of each of these bits condition register is as follows 0 through 4 Not used always zero 5 Waiting for Trigger Summary 1 indicates the unit is waiting for trigger 6 and 7 Not used always zero 8 Constant Voltage 1 indicates the instrument is in constant voltage mode 9 Not used always zero 10 Constant Current 1 indicates the instrument is in constant current mode 11 thro...

Page 18: ...erflow When overflow occurs the oldest errors stay in the queue but the most recent errors are discarded The last error in the queue will be 350 Too many errors Error messages are defined in Appendix B Table B 5 1 2 8 TRIGGER The KLR unit has the ability to utilize both a software trigger and an external hardware trigger Model 1 2 K units have an additional software trigger capability accessed via...

Page 19: ...upon receipt of a remote command The front panel can be locked and unlocked in all environments as shown in Table 2 1 HOME PAGE UNIT DESCRIPTION LAN CONFIGURATION PAGE OPERATE INSTRUMENT PAGE WEB PORT 80 8 CONNECTIONS STATUS DISPLAY FRONT PANEL SUNRPC PORT 111 UDP BROADCAST SUNRPC PORT 111 TCP IP UDP LXI TRIGGER PORT 5044 TCP IP TRIGGER PORT 5044 TELNET PORT 5024 2 CONNECTIONS SCPI RAW PORT 5025 2...

Page 20: ...ng this port and a VXI 11 protocol as well as the XML pro tocol proposed by Version 1 2 of the LXI specification Port 1024 VXI 11 This port supports up to two connections VXI 11 uses one stan dard port 1024 and two assigned by the instrument when connections are opened The 1024 port is open at all times to accept connection requests The VXI 11 port requires the use of a lock which prevents other V...

Page 21: ... MODELS ONLY KLR standard models may be programmed over the RS 232 control bus using SCPI Standard Commands for Programmable Instruments see Section 6 All power supply functions avail able from the front panel can be programmed via remote commands as well as some that are not available from the front panel Save Recall see PAR 1 2 5 and List see PAR 1 2 6 Refer to Section 8 RS 232C INTERFACE STANDA...

Page 22: ...haracters either CR or LF are returned as XOFF CR if echo mode is on and as XOFF if echo mode is off XOFF stops data from the command originator and the KLR returns the nor mal sequence of CR LF if echo mode is enabled Prior to use the RS 232 port must be initialized be sending either CR LF or ESC The RS 232 port of the KLR must be configured properly to work with the three drivers see Table 2 2 T...

Page 23: ...ting of overvoltage and overcurrent con ditions 3 1 1 SPECIFICATION COMPLIANCE The IVI Foundation provides several specifications outlining the criteria for compliance with the IVI COM driver architecture The chief aim of these specifications is to ensure compatibility with specific IVI COM infrastructure components thereby increasing the degree of driver and instru ment interchangeability This IV...

Page 24: ...o not stop the driver from installing and regis tering the files 3 1 6 RIGHTS The IVI COM driver was written by Kepco for use on Kepco products It was written using Pacific Mindworks Nimbus system It is intended for use with Kepco power supplies Disassem bly and or modification of the IVI COM driver is expressly forbidden 3 2 IVI COM INSTRUMENT DRIVER FUNCTIONS Table 3 1 is a list of the KLR IVI C...

Page 25: ...evel KPDCPWR_ATTR_POSITIVE_CURRENT_LIMIT Sets the current limit level KpDCPwr_MeasureCurrent Measure current function KpDCPwr_MeasureVoltage Measure Voltage function KPDCPWR_ATTR_OUTPUT_MODE Indicates if unit is in voltage or current mode of operation read only on the KLR KPDCPWR_ATTR_POSITIVE_CURRENT_PROTECTION _LIMIT Sets the current protection level KPDCPWR_ATTR_POSITIVE_VOLTAGE_PROTECTION _LIM...

Page 26: ...ListDwellTimes Sends the new dwell point to the KLR KPDCPWR_ATTR_LIST_DWELL_POINTS Provides the location of the next point to be entered into dwell list KpDCPwr_SetListControl Sends the new relay point to the KLR KPDCPWR_ATTR_LIST_CONTROL_POINTS Provides the location of the next point to be entered into control relay list KPDCPWR_ATTR_LIST_SKIP Provides ability to skip a number of points when a li...

Page 27: ...unctions such as setting the limit model list and other advanced features of the KLR from being accessed open the instrument for communication hr driverPtr Initialize GPIB0 6 INSTR Visa address not applicable if simulation true VARIANT_TRUE ID query VARIANT_TRUE Reset LPCTSTR Cache true InterchangeCheck false QueryInstrStatus true Simulate false IVI options The driver is a linked list of pointers ...

Page 28: ...urementVoltage FIGURE 3 1 EXAMPLE OF SETTING THE OUTPUT AND TAKING A MEASUREMENT WRITTEN IN C SHEET 1 OF 2 This program demonstrates how to set a voltage and current measure the output voltage using the IVI COM driver include stdafx h include stdio h include conio h include atlbase h import IviDriverTypeLib dll no_namespace import IviDCPwrTypeLib dll no_namespace import KepcDCPwr dll no_namespace ...

Page 29: ...sion s n bstrInstrFwRev get pointers to the needed interfaces IKLROutputPtr outputPtr outputPtr driverPtr Outputs GetItem OLESTR Output IKLlnMeasurementPtr measurementPtr measurementPtr driverPtr Measurements GetItem OLESTR Measurement set voltage hr outputPtr VoltageLevel 75 0 if FAILED hr exit 1 enable OV protection and set the limit hr protectionPtr ConfigureOVP 10 if FAILED hr exit 1 set the c...

Page 30: ... name is required using System using KepcoDCPwr Interop Create driver instance KepcoDCPwr KLRdriver KepcoDCPwr Interop Output outputPtr KepcoDCPwr Interop IList listPtr KLRdriver new KepcoDCPwrClass The connection between the host and the KLR is then established by the following code KLRdriver Initialize GPIB0 6 INSTR true true Cache true InterchangeCheck false QueryInstrStatus true Simu late fals...

Page 31: ...ollowing code The conditional statement allows the close to be added to the end of the program without getting any runtime errors Close driver if initialized if KLRdriver Initialized true KLRdriver Close FIGURE 3 2 EXAMPLE OF USING A LIST WRITTEN IN C SHEET 1 OF 2 This program executes a 6 point current and voltage list It also specifies 6 different dwell times using System using KepcoDCPwr Intero...

Page 32: ...urrList 1 2 currList 2 2 currList 3 2 currList 4 2 currList 5 2 dwellTime 0 1 dwellTime 1 2 dwellTime 2 3 dwellTime 3 4 dwellTime 4 5 dwellTime 5 0 01 call ListPoints to set the list values and set the voltage and current modes to LIST listPtr ListPoints ref voltList ref currList ref dwellTime enable the output outputPtr Enabled true Set the number of executions listPtr count 2 initiate the list i...

Page 33: ...d is established with the following code sprintf initOptions QueryInstrStatus 1 Simulate d simulate Initialize the driver checkErr KpDCPwr_InitWithOptions resourceName VI_TRUE VI_TRUE initOptions vi Enable the password state checkErr KpDCPwr_EnablePasswordState vi 7532 The user is then provided another form When the data is entered the standard CVI logic is invoked and the variables are read from ...

Page 34: ...filename for this example is VBOutputExample txt located in the ivi driv ers kepco examples folder see Figure 3 3 for complete code Note that Visual Basic has its own methods to support the IVI COM driver Public driver As KepcoDCPwr Public outputPtr As IKLROutput Public protectionPtr As IKLRProtection Public measurementPtr As IKLRMeasurement Set driver New KepcoDCPwr Once the driver is initialized...

Page 35: ...vel 75 enable OV protection and set OV level protectionPtr ConfigureOVP 15 set current level outputPtr CurrentLimit 10 enable the output outputPtr Enabled True Measuring the output is performed by accessing a function and not a parameter Measure the voltage Dim measVoltage As Double measVoltage measurementPtr Measure KepcoDCPwrMeasurementVoltage Closing the driver is the last step in any program d...

Page 36: ...ndler initialize the driver note ID device is true driver Initialize GPIB0 6 INSTR _ True _ True _ Cache true InterchangeCheck false QueryInstrStatus true Simu late false Dim result As Boolean result driver Initialized Set outputPtr driver Outputs Item driver Outputs Set protectionPtr driver Protections Item driver Protections Set measurementPtr driver Measurements Item driver Measurements set vol...

Page 37: ...esh Exit Sub ErrorHandler MsgBox Err Description driver Close Exit Sub End Sub Wait the specified number of seconds Private Sub Delay DelayTime As Single Dim Finish As Single Finish Timer DelayTime Do Loop Until Finish Timer End Sub This program executes a 6 point current and voltage list It also specifies 3 different dwell times Option Explicit Public driver As KepcoDCPwr Public outputPtr As IKep...

Page 38: ...ttributeViReal64 which sets the various attributes to a specific value KpDCPwr_EnablePasswordState which sends the string to the unit to enable the ability to set the limit model Delay 100 ReadInstrumentError driver driver Close Exit Sub errorHandler MsgBox Err Description driver Close Exit Sub End Sub Private Sub ReadInstrumentError agDrvr As IIviDriver Read instrument error queue until its empty...

Page 39: ...dStart_Click Set driver New KepcoDCPwr On Error GoTo ErrorHandler initialize the driver note ID device is true driver Initialize GPIB0 6 INSTR _ True _ True _ Cache true InterchangeCheck false QueryInstrStatus true Simu late false Dim result As Boolean result driver Initialized This will now set the limit model to a 36 32 unit driver KpDCPwr_SetAttributeViReal64 KPDCPWR_ATTR_POSITIVE_VOLTAGE_RATED...

Page 40: ...ltage current and output enable of the power supply These are the properties of the power supply which directly affect the power supply output In LabView each property must be set separately but multiple outputs of the property node are allowed The final two blocks are the close functions One block is the method to close disable the output The second block is the ActiveX close ref erence which per...

Page 41: ...he identical open and close functionality The middle three blocks set the password then cause the voltage limit and the current limit to be applied to the KLR This is done using the Max Positive Current Limit and Max Positive Voltage Limit properties As indicated in the earlier table these are the setting nodes that are required to change the KLR limit model FIGURE 3 8 SETTING THE LIMIT MODEL USIN...

Page 42: ......

Page 43: ... NOTE The LabView G driver is modifiable by the user Once any utility or function is modified it is the user s responsibility to verify there are no unintended errors introduced 4 2 LABVIEW G INSTRUMENT DRIVER The LabView G driver is a multipurpose driver It is capable of operating all Kepco Power sup plies using LabView Version 8 except for multiple output units such as MST The LabView G driver d...

Page 44: ...etting to a specific level KepcoDCPWR Query Voltage Level Queries unit and returns voltage level setting KepcoDCPWR Query Current Level Queries unit and returns Current level setting KepcoDCPWR Configure Voltage Limit Set virtual voltage setting to a specific value KepcoDCPWR Configure Current Limit Sets virtual current setting to a specific level KepcoDCPWR Query Voltage Limit Queries unit and re...

Page 45: ...4 1 KepcoDCPwr Configure Voltage Level vi CONNECTOR PANEL 4 4 1 2 CONTROLS AND INDICATORS See Table 4 2 KepcoDCPWR Clear All Lists Clears the list if not executing KepcoDCPWR Configure List Loads a specific list from an array of numbers KepcoDCPWR Configure List Count Initializes the list count variable Trigger Functions KepcoDCPWR Configure Triggered Current Level Establishes the current level up...

Page 46: ...l In is the type of Kepco power supply This defines the capabilities and requirements in other Kepco functions to insure proper operation of the command This function works on All Kepco power Supplies BOP HP BOP LP KLR STANDARD MULTI and MULTI_PLUS The MULTI type power supplies require a chan nel number to operate correctly The constant is created by the Recognize Kepco model utility error out The...

Page 47: ... vi This VI takes a measurement of the output signal and returns the measured value see Figure 4 4 FIGURE 4 4 KepcoDCPwr Measure MSR vi CONTROL PANEL This VI has the standard inputs of all of the functions of the LabView G Driver It also has three orange inputs at the top of the VI Virtual Resistance Virtual Current Virtual Voltage These inputs are used in simulation They do not need to be connect...

Page 48: ... example TABLE 4 4 KepcoDCPwr Measure MSR vi INPUT OUTPUT DESCRIPTIONS DESCRIPTION SYMBOL channel name 1 Passes the name of the channel on which to configure the voltage level It is not required for most supplies and is provided for compatibility Valid Channel Names 1 Default Value 1 error in no error The error in cluster can accept error information wired from VI s previously called Use this info...

Page 49: ...g the VISA dll supplied with LabView The KepcoDCPWR initialize function has two optional settings reset unit and identify unit The reset unit option sends RST to the unit which sets the output to 0 volts mini mum current turns the output off and stops list execution The identify unit option sends an IDN query to the power supply The recognize unit utility function parses the response to determine ...

Page 50: ...ck sets the mode to Fixed It is recommended that the mode be set to Fixed in order to stop a list if it is running however if the Reset Device input into the first block is true this block is not needed since RST also stops a list FIGURE 4 6 SETTING THE OUTPUT OVERALL BLOCK DIAGRAM ...

Page 51: ...om the error queue The internal logic of this subvi changes the 0 no error response to a null string so no error returns nothing but if an error is detected returns an error string is returned 4 5 4 CLOSE CONNECTION The last section is the close function KepcoDCPWR close This function is required to remove the connection to the instrument and clean up RAM usage in LabView It is very important to r...

Page 52: ...functions 4 6 1 KepcoDCPwr Interactive Example vi KepcoDCPwr Interactive Example vi is the main demonstration program The file is located in program files national Instruments labview drivers kepco Either double click on the file or open the file using File Open from within LabView When the program is opened the Front Panel Figure 4 7 is displayed FIGURE 4 7 FRONT PANEL WINDOW ...

Page 53: ...position If the instrument is found the demonstration program runs in normal mode If the instrument is not found the Instrument Error box at the lower right shows instrument not found the demonstration program runs in simulation mode In simulation mode the resistance value at the bottom of the front panel is a simulated load used to measure the DC output The simulated load can be set by the user t...

Page 54: ...o run this program by selecting either KepcoDCPwr Software Timed Ramp Example vi for a voltage ramp KepcoDCPwr Current Software Timed Ramp Example vi for a current ramp FIGURE 4 8 SOFTWARE RAMP PANEL CURRENT RAMP EXAMPLE These files are located in the kepco DcPWr folder created when the Kepco LabView G driver is installed and can be executed by selecting File Run from within LabView When invoking ...

Page 55: ...list is complete of Cycles Checked to enter how many ramps will be created setting of 0 causes ramps to continue indefinitely Unchecked to create one ramp Readback Voltage Readback Current Once Start Ramp is clicked checked causes the DC VOLTS and DC AMPERES indicators on the Ramp Function Panel see Figure 4 9 to show measured voltage and current unchecked causes the indicators to show the command...

Page 56: ...current ramp The computer sends the proper commands to the KLR that gen erate the ramp The checkboxes for Readback Voltage Readback Current can be altered while the ramp is being generated to allow the indicators to display either measured or commanded voltage or current The Disable End and Repeat checkboxes can also be altered while the ramp is being generated The actual function that creates the...

Page 57: ...dditional parameters required for the execution of the waveform are displayed The value of the non changing parameter current in Amperes for a voltage waveform shown in Figure 4 13 or voltage in Volts for a current waveform must be specified The of Cycles specifies how many waveforms to produce if set to 0 the waveform repeats continuously Once the Start button is clicked the commands are sequenti...

Page 58: ...4 16 KLR DEV 060713 FIGURE 4 10 FUNCTION GENERATOR PANEL FIGURE 4 11 CONFIGURE User Sequence vi BLOCK DIAGRAM ...

Page 59: ......

Page 60: ......

Page 61: ...FIGURE 4 13 FUNCTION GE ...

Page 62: ......

Page 63: ...validate it as a sup ported model and determines the voltage and current limits of the unit This driver validates the model to insure it is the proper driver for the unit The driver differs from the IVI and LabView G driver in that it will only operate on a Kepco KLR product and has not support for generic opera tion or operating other Kepco supplies Table 5 1 lists the functions that are availabl...

Page 64: ...on Returns the power supply answer to the Query SCPI Version com mand Checks the Standard Commands for Programmable Instru ments SCPI language version Self Test Kpklr_selfTest Runs the instrument s self test routine and returns the test result s Error Query Kpklr_errorQuery Reads an error code from the instrument s error queue Error Message Kpklr_errorMessage Takes the Status Code returned by the ...

Page 65: ...list Add Current Step Value Kpklr_ListCurrent Add a single current entry to the end of a list Add Step Time Kpklr_ListDwell Add a single time entry to the end of a list Add relay control step value Kpklr_ListControl Add a single relay control entry to the end of a list Query How Many Points Kpklr_Points Determines the maximum number of points on the list Add waveform to a list Kpbop_ListData Add w...

Page 66: ...t ViChar id_str GPIB 06 INSTR change 06 to the GPIB address of unit For LAN ports change 192 168 0 100 to IP address found via front panel interface ViChar id_str TCIP 192 168 0 100 INSTR VXI 11 instrument via LAN port 1024 ViChar id_str TCIP i92 168 0 100 5025 SOCKET SCPI RAW port 5025 LAN instrument For RS 232 change 0 to actual communications port in use ViChar id_str ASRL0 INSTR serial port if...

Page 67: ...h uses some of the formation functions kp KLR h needs definitions from visa h to compile correctly end of required h files ViByte ps_type ViSession KLR_Session void main these three variables determine the ramp start voltage end voltage and rate of change ViReal64 voltage_start 0 ViReal64 voltage_end 10 ViReal64 voltage_change 5 ViReal64 voltage 0 used during the ramp startup ViReal64 current 16 c...

Page 68: ...for voltage voltage_start voltage voltage_end voltage voltage_change Kpklr_SetValue KLR_Session voltage 0 set the voltage level only Delay 500 delay for 500 milliseconds Kpklr_SetValue KLR_Session voltage_start 0 set the voltage level only delay 1000 wait for unit to return to zero no load end of all ramps Kpklr_OutputOnOff KLR_Session 0 output off Kpklr_close KLR_Session free up memory and close ...

Page 69: ...s found via front panel interface ViChar id_str TCIP 192 168 0 100 INSTR VXI 11 instrument via LAN port 1024 ViChar id_str TCIP i92 168 0 100 5025 SOCKET SCPI RAW port 5025 LAN instrument change 0 to actual communications port in use ViChar id_str ASRL0 INSTR serial port ViByte ps_type ViSession KLR_Session Void main ViReal64 meas_volt meas_curr variables for the measurement results call function ...

Page 70: ...es output being placed on ViStatus Set_powersupply ViReal64 voltage ViReal64 current ViStatus power_supply_status VI_SUCCESS Kpklr_Set_Volt_Curr KLR_Session voltage current voltage and current The above function sets both the voltage and current setpoint of the power supply Kpklr_OutputOnOff KLR_Session 1 output on return power_supply_status end of main if not created as a project include the driv...

Page 71: ...rify the GPIB address and adjust if necessary For RS 232 communications the power supply must be set to 38400 baud Ethernet programming is not supported After the program is installed double clicking KLRCTRL exe starts the program and opens the Instrument Setup window see Figure 5 4 Select the appropriate communications method TYPE from the Instrument Resource list provided If GPIB is selected ent...

Page 72: ...r voltage and current setpoints The Front Panel box shows a digital read out of the voltage and current displayed on the analog meters this is identical to the readouts on the KLR front panel DC VOLTS and DC AMPERES displays as well as showing messages appearing on the front panel Status Display The operating mode CV or CC Mode indicators light to indicate whether the power supply is operating in ...

Page 73: ... current power supply settings for Voltage Setpoint Current Setpoint and Output State On or Off at the selected location Whenever the same location is selected the Recall button restores the saved settings FIGURE 5 7 STORE RECALL WINDOW The Trigger button opens the Trigger window Figure 5 8 which allows setting of trigger voltage and current values Clicking the Trigger button within the Trigger wi...

Page 74: ...umber Click OK to close the window The Limit Model button opens the Limit Model window Figure 5 10 which displays the present limit model settings these limits may be changed by the user To change these limits the Cali bration Password see KLR User Manual must be entered Once either limit is altered the out put is automatically disabled and the previous settings for voltage and current are lost FI...

Page 75: ...m will open a dialog box permitting the user to select from previ ously saved calibration data sets Highlight the desired replacement calibration data and click Select to replace the Working calibration click Cancel to exit without changing the Working cal ibration The Hardware Test button tests the validity of system parameters e g CRC The Output Test button verifies basic performance by first te...

Page 76: ...pportunity to correct the error condition and continue or quit the VXI plug play application If this window opens when operating a master slave configuration power to both units must be turned off then reapplied before pressing either of the two buttons other wise the VXI plug play application will terminate incorrectly FIGURE 5 13 POWER SUPPLY EVENT WINDOW ...

Page 77: ...sponse messages consist of formatted data the data can contain information regarding operating parameters power supply state status or error conditions 6 3 COMMON COMMANDS QUERIES Common commands and queries are defined by the IEEE 488 2 standard to perform overall power supply functions such as identification status or synchronization unrelated to specific power supply operation such as setting v...

Page 78: ...consists of three registers Condition Enable and Event 6 4 8 STORAGE SUBSYSTEM The KLR has 40 memory locations where the current state of the power supply can be stored and then recalled The storage system saves five settings Voltage Current Voltage protection level Current protection level and output on off state The advantage to using these 40 locations instead of sending five commands is proces...

Page 79: ...is a keyword consisting of a sin gle command or query word followed by a message terminator e g CURR newline or TRIG end of line The message unit may include a data parameter after the keyword sepa rated by a space the parameter is usually numeric e g CURR 5 newline but may also be a string e g OUTP ON newline Figure 6 1 illustrates the message structure showing how message units are combined The ...

Page 80: ...s the keyword separator e g CURR LEV TRIG The colon can also act as a root specifier paragraph 6 5 7 TABLE 6 1 RULES GOVERNING SHORTFORM KEYWORDS IF NUMBER OF LETTERS IN LONGFORM KEYWORD IS AND FOURTH LETTER IS A VOWEL THEN SHORT FORM CONSISTS OF EXAMPLES 4 OR FEWER DOES NOT MATTER ALL LONG FORM LETTERS MODE 5 OR MORE NO THE FIRST FOUR LONG FORM LETTERS MEASure OUTPut EVENt YES THE FIRST THREE LON...

Page 81: ...olon that precedes the first keyword of a program message This places the parser at the root top left Figure 6 2 of the command tree Note the difference between using the colon as a keyword separator and a root specifier in the following examples VOLT LEV IMM 16 Both colons are keyword separators CURR LEV IMM 4 The first colon is the root specifier the other two are keyword separators VOLT LEV 6 C...

Page 82: ...D BAUD ECHO ECHO ENAB ENAB PACE PACE PROM PROM ERRor NEXT CODE NEXT ALL KLOC KLOC LANG LANG PASS CEN CEN STAT CDIS NEW SEC IMM SET SET VERS MEASure subsystem MEAS SCAL CURR DC SCAL VOLT DC STORage subsystem MEM LOC LOC SAV RCL SOURce subsystem SOUR VOLT LEV IMM AMPL AMPL TRIG AMPL AMPL PROT LEV PROT LEV LIM HIGH HIGH MODE MODE FIXED MODE LIST MODE TRANS MODE CURR LEV IMM AMPL AMPL TRIG AMPL AMPL P...

Page 83: ...ot level branch that has three sub branches OPERation PRESet and QUEStionable The following illustrates how SCPI code is interpreted by the parser STAT PRES NL The parser returns to the root due to the message terminator STAT OPER PRES NL The parser moves one level in from STAT The next command is expected at the level defined by the colon in front of OPER Thus you can combine the following messag...

Page 84: ... Always send the entire string to insure the commands execute correctly For example VOLT LIM HIGH MIN volt lim high max and VOLT LIM HIGH MIN lim high max will correctly return the min and max voltage limit levels of the power supply Sending VOLT LIM HIGH MIN high max will not work and will result in an error 6 8 PROGRAMMING EXAMPLES Figure 6 3 is a programming example that can be used over any in...

Page 85: ...TCIP i92 168 0 100 5025 SOCKET SCPI RAW port 5025 LAN instrument change 0 to actual communications port in use ViChar id_str ASRL0 INSTR serial port ViOpen uses the resource string to find the device and returns a session id to the user ViSession Kepco_Session main if viOpen Kepco_Session id_str VI_NULL VI_NULL VI_NULL 0 strcpy dat_str VOLT 5 CURR 1 Define a set command strcat dat_str r n Append d...

Page 86: ......

Page 87: ...o the IEEE 488 GPIB bus reference document ANSI IEEE Std 488 IEEE Standard Digital Interface for Programmable Instrumentation communicating with a Host Computer Controller Talker Lis tener Tables 7 3 and 7 4 define the messages sent to the KLR or received by the KLR via the IEEE 488 bus in IEEE 488 command mode and IEEE 488 data mode respectively These mes sages are enabled during the handshake cy...

Page 88: ...te mode all front panel keys are disabled except LOCAL LOCAL key can be disabled using keypad lockout command see Appendix B PAR B 95 so that only the controller or a power on condition can restore Local mode Parallel Poll PP0 No Capability Device Clear DC1 Complete Capability KLR accepts DCL Device Clear and SDC Selected Device Clear Device Trigger DT1 Respond to TRG and GET trigger functions Con...

Page 89: ...read the current GPIB address Use the SYST COMM GPIB ADDR command to change it TABLE 7 4 IEEE 488 GPIB BUS DATA MODE MESSAGES MNEMONIC MESSAGE DESCRIPTION COMMENTS DAB Data Byte Received or Sent END End Received or Sent EOS End of String Received or Sent RQS Request Service Sent STB Status Byte Sent ...

Page 90: ......

Page 91: ...For baud rate refer to PAR s B 82 and B 83 For prompt refer to PAR s B 90 and B 91 For echo refer to PAR s B 84 and B 85 For XON XOFF refer to PAR s B 88 and B 89 8 2 1 RS 232 IMPLEMENTATION STANDARD MODELS ONLY The following paragraphs are provided to help the user understand how the RS 232 serial inter face is implemented in the KLR Power Supply The serial interface behaves like the GPIB interfa...

Page 92: ...nual command data entry i e computer keyboard commands or electronic control e g Labview or LabWindows programming The KLR Power Supply offers data transfer protocols tailored for each method Since the RS 232 protocol does not use a parity bit Echo mode is the default method used to ensure reliable communications between the command originator computer and the KLR Power Supply When the KLR Power S...

Page 93: ...ANDARD MODELS ONLY The command originator sends a message line command to the KLR Power Supply and waits until the prompt sequence CR LF is received The KLR sends the prompt sequence CR LF to the command originator indicating the power supply is ready to receive the next command so that data will not be lost The prompt method is similar to the echo method described above except that the command or...

Page 94: ... on the rear panel of the power supply If the loop back test connector is not available install a jumper from pin 2 to pin 3 of the RS 232 port connector Press the DC OUTPUT switch once to rerun the test The VOLTS display should now read PASS if it reads FAIL the power supply is defective and requires repair 5 To test the integrity of the cable assembly connecting the power supply RS 232 port to t...

Page 95: ...he data sent is not echoed back to the user and there is no prompt string The SCPI TELNET port transfers ASCII SCPI data using the Control M or Control J characters as line terminators Table 9 1 lists the Control characters applicable to this port On receipt of Lock Port unit verifies other ports 5025 and 1024 are unused and grants the requesting port exclusive access to control KLR If port lock i...

Page 96: ...ections is two The VXI 11 port requires the use of a lock which prevents other VXI 11 connections from gaining access to the instrument This port is accessed using the VISA resource string ending in INST e g TCIP0 192 168 1 100 INST On receipt of Lock Port unit verifies other ports 5024 and 5025 are unused and grants the requesting port exclusive access to control KLR If port lock is unsuccessful ...

Page 97: ...255 per Table A 2 Default Value 0 Description This command programs the standard Event Status Enable register bits The contents function as a mask to determine which events of the Event Status Register ESR are allowed to set the ESB Event Summary Bit of the Status Byte Register Enables the Standard events to be summarized in the Status Byte register 1 set enable function 0 reset disable function A...

Page 98: ...Any 3xx type error sets the Device error bit 3 The Device error bit will be set when Current Error or Voltage Error is detected and the corresponding Status Questionable Enable bit is set Any 4xx type error sets the Query error bit 2 Related Commands CLS ESE OPC See example Figure A 1 A 6 IDN IDENTIFICATION QUERY IDN Syntax IDN Return value Character string Description Identifies the instrument Th...

Page 99: ...ndard Event Status Register bit 0 see Table A 2 to 1 when all previous commands have been executed and changes in output level have been completed This command does not prevent processing of subsequent commands but bit 0 will not be set until all pending operations are completed 1 set enable function 0 reset disable function See example Figure A 1 As an example the controller sends command s then ...

Page 100: ...otection output state on or off and relay state Executing RCL recalls the settings previously saved by SAV from one of 40 memory locations changing the voltage current overvoltage protection overcurrent protection and output on off state accordingly If RELAY mode was set to MANUAL when SAV was executed relay state is also restored relay state is not saved upon power off The following parameters ar...

Page 101: ... command error ESR Returns 32 bit 5 set indicating command error has occurred since the last time the register was read IDN Returns KEPCO KLR 75 32 mm dd yyyy Axxxxxx Vx xx where mm dd yyyy indicates date of last calibration Axxxxxx indicates unit serial number and Vx xx indicates firmware revision OPC Directs status bit 0 to be set once pending operations are completed OUTP ON Enables output NOTE...

Page 102: ...lear the WTG bit in the Status Operation Condition register If INIT CONT ON has been issued the trigger subsystem is immediately rearmed for subse quent triggers and the WTG bit is again set to 1 TRG or GET are both addressed com mands only devices selected as listeners will execute the command Related Commands ABOR INIT TRIG CURR TRIG VOLT TRIG See example Figure B 1 A 17 TST SELF TEST QUERY TST ...

Page 103: ...CURR B 17 B 18 SYST COMM LAN DNS B 73 B 74 SOUR LIST CURR POIN B 19 SYST COMM LAN GATE B 75 B 76 SOUR LIST DIR B 20 B 21 SYST COMM LAN IP B 77 B 78 SOUR LIST DWEL B 22 B 23 SYST COMM LAN MAC B 79 SOUR LIST DWEL POIN B 24 SYST COMM LAN MASK B 80 B 81 SOUR LIST QUER B 25 B 26 SYST COMM SER BAUD B 82 B 83 SOUR LIST VOLT B 27 B 28 SYST COMM SER ECHO B 84 B 85 SOUR LIST VOLT POIN B 29 SYST COMM SER ENA...

Page 104: ...s and download the LabWindows CVI Version 5 driver for KLR This file provides remote calibration capability and uses the following supported commands and queries CAL CEXT command CAL CGA command CAL CURR LEV command CAL CURR DATA command CAL DATA command CAL DPOT command CAL SAVE command CAL STAT command and query CAL VEXT command CAL VGA command CAL VOLT LEV command CAL VOLT DATA command CAL ZERO...

Page 105: ...S Returns 32 again indicating WTG bit was set again continuous triggering VOLT 32 1 CURR 5 Programs output voltage to 32 1V current limit to 5A MEAS VOLT Returns actual output voltage if output voltage is 32 15V power supply returns 3 215E1 MEAS CURR Returns actual output current FUNC MODE Returns operating mode of power supply followed by programmed operating mode e g VOLT VOLT CURR TRIG Returns ...

Page 106: ...turns 0 no control points were provided the list will not execute and error 226 Lists not same length will be returned B 13 SOURce LIST COUNt COMMAND LIST COUN Syntax Short Form LIST COUN int_value 0 to 65535 Long Form LIST COUNt int_value 0 to 65535 Description Establishes how many times the list is executed Allows user to establish how many times the list is executed The order beginning to end o...

Page 107: ...e B 2 B 19 SOURce LIST CURRent POINts QUERY LIST CURR POIN Syntax Short Form LIST CURR POIN Long Form LIST CURRent POINts Return Value value 0 to 250 Description Identifies the total number of points in a list and the next location to be filled by LIST CURR command The LIST CURR pointer is initially at 0 via LIST CLE For each data point entered by a LIST CURR command the list pointer is incremente...

Page 108: ...ong Form LIST QUERy Return Value int_value Description Identifies first location to be queried by LIST VOLT LIST CURR LIST DWEL LIST CONT queries Related Commands LIST QUER See example Figure B 2 B 27 SOURce LIST VOLTage COMMAND LIST VOLT Syntax Short Form LIST VOLT LEV exp_value exp_value to max of 250 data points Long Form LIST VOLTage LEVel exp_value exp_value to max of 250 data points exp_valu...

Page 109: ...Form MEASure SCALar VOLTage DC Return Value num_value digits with decimal point and Exponent Description Measures actual voltage This query returns the actual value of output voltage measured at the out put terminals as determined by the programmed value of voltage and current and load conditions See example Figure B 1 B 32 MEMory LOCation COMMAND MEM LOC Syntax Short Form MEM LOC int_value Long F...

Page 110: ...n 0 fills the first three locations with the voltages shown LIST VOLT POIN Returns 3 indicating that 3 data points have been entered also indi cates that the next data location to be filled is Location 3 LIST QUER Returns 0 indicating list starting point default location set by LIST CLE LIST VOLT Returns 2 8E1 3 2E1 1 8E1 the contents of the filled locations LIST VOLT 20 22 24 26 28 Adds five poin...

Page 111: ...n load con ditions The CURR MAX query returns the maximum current allowed for a particular model CURR Returns programmed current value CURR MAX returns maximum current allowed for power supply the lower of CURR LIM HIGH and 80 of CURR PROT CURR MIN returns minimum current allowed for the power supply model Related Commands CURR See example Figure B 1 B 38 SOURce CURRent LIMit HIGH COMMAND CURR LIM...

Page 112: ...y Two milliseconds after issu ing this command the KLR output current changes to the specified current level A for the period of time n specified At the end of time n the current is returned to the previously established value The status display shows dLST during the execution of the transient If any of the variables are incor rect the transient is not generated and an appropriate error message is...

Page 113: ...CURRENT STABILIZER NOTE The following example assumes KLR 75 32 with limit model set for 36V 32A and output operating in current stabilization mode See Figure B 3 for directions on programming limit model settings VOLT 32 1 CURR 4 Programs output voltage for 32 1V output current for 4A OUTP ON Enables output NOTE Load determines output operating mode if load resistance is less than 32 1V 4A 8 025 ...

Page 114: ... Exponent e g 2 71E 1 for 27 1 Description Returns value representing current value to be programmed by TRG command established by CURR TRIG command CURR TRIG MAX returns maximum permissible value that can be pro grammed by CURR TRIG the lower of CURR LIM HIGH and 80 of CURR PROT See example Figure B 1 B 46 SOURce FUNCtion MODE COMMAND FUNC MODE Syntax Short Form FUNC MODE VOLT CURR Long Form FUNC...

Page 115: ...the VOLT LIM HIGH setting Previously stored trigger levels are reset to zero volts and minimum current Stored settings PAR A 13 or programmed sequences using the LIST commands may be outside the range established by the new limit model In this case prior to execution the value is cleared to the default minimum zero volts and 222 Data out of range error message is generated If the value is out of t...

Page 116: ...is not supported at this time contact Kepco for more information Returns FIXED while in fixed default mode of operation Related Commands LIST commands See example Figure B 2 B 54 SOURce VOLTage PROTection LEVel COMMAND VOLT PROT Syntax Short Form SOUR VOLT PROT LEV exp_value Long Form SOURce VOLTage PROTection LEVel exp_value exp_value digits with decimal point and Exponent e g 2 71E 1 for 27 1 De...

Page 117: ...command VOLT TRIG MAX returns maximum permissible value that can be pro grammed by VOLT TRIG the lower of VOLT LIM HIGH and 80 of VOLT PROT See example Fig ure B 1 FIGURE B 5 PROGRAMMING AS VOLTAGE STABILIZER NOTE The following example assumes KLR 75 32 with limit model set for 36V 32A and output operat ing in voltage stabilization mode See Figure B 3 for directions on programming limit model set ...

Page 118: ...t_value 0 to 1313 1 32 256 1024 Description Reads Operation Enable Register see Table B 2 Returns value of Operation Enable Register bits Bit set to 1 function enabled active true bit reset to 0 function disabled inactive false See example Figure B 6 B 61 STATus OPERation EVENt QUERY STAT OPER Syntax Short Form STAT OPER EVEN Long Form STATus OPERation EVENt Return Value int_value 0 to 1313 1 32 2...

Page 119: ...24 256 32 indicating CV CC and WTG bits are set init cont on Continuous triggers enabled stat oper cond Power supply returns 288 256 32 indicating power supply is in constant voltage mode and Wait For Trigger is set stat oper Returns 32 CV mode bit cleared by prior query but continuous triggering results in WTG bit always being set volt 30 Output voltage programmed to 30V current remains at 1A stb...

Page 120: ...turn Value int_value actual register value Description Reads Questionable Condition Enable Register see Table B 3 Power supply returns value of Questionable Condition Enable Register indicating which conditions are being monitored Bit set to 1 function enabled active true bit reset to 0 function disabled inactive false Related Com mands STAT QUES See example Figure B 6 B 67 SYSTem COMMunication GP...

Page 121: ... SYSTem COMMunication LAN DNS w x y z where w x y and z are numbers from 0 to 255 Description Specifies the DNS address when DHCP MODE see PAR B 69 is set to OFF Note that DNS address must be comma separated B 74 SYSTem COMMunication LAN DNS QUERY SYST COMM LAN DNS E SERIES MODELS ONLY Syntax Short Form SYST COMM LAN DNS Long Form SYSTem COMMunication LAN DNS Return Value int_value w x y z where w...

Page 122: ... SYST COMM LAN MASK E SERIES MODELS ONLY Syntax Short Form SYST COMM LAN MASK w x y z Long Form SYSTem COMMunication LAN MASK w x y z where w x y and z are numbers from 0 to 255 Description Specifies the MASK address when DHCP see PAR B 69 is set to OFF Note that MASK address must be comma separated B 81 SYSTem COMMunication LAN MASK QUERY SYST COMM LAN MASK E SERIES MODELS ONLY Syntax Short Form ...

Page 123: ...ng the unit off then on or by sending SYST COMM SER ENAB 1 via the GPIB port B 87 SYSTem COMMunication SERial ENABle QUERY SYST COMM SER ENAB STANDARD MODELS ONLY Syntax Short Form SYST COMM SER ENAB Long Form SYSTem COMMunication SERial ENAB Return Value int_value 01H on enabled or 00H off disabled Description Indicates whether RS 232 transmission mode is enabled 01H ON or disabled 00H OFF See PA...

Page 124: ...ng Form SYSTem ERRor CODE NEXT Return Value nnn nnn 3 character error code Description Returns the three character error code without the ASCII definition string The error codes are defined in table B 5 See example Figure B 1 B 94 SYSTem ERRor CODE ALL QUERY SYST ERR CODE ALL Syntax Short Form SYST ERR CODE ALL Long Form SYSTem ERRor CODE ALL Return Value comma separated list of all error codes De...

Page 125: ...s such as LIST TIME for compatible operation with software written for KLR power supplies up to Revision 1 NOTE The following examples are generic to all models assuming factory default settings SYST VERS Returns xxxx v SCPI version number i e 2003 0 SYST SET Returns DC0 STR KL0 LF0 L250 M40 SCP SYST KLOC ON Locks out local front panel controls only remote control is possible SYST KLOC Returns 1 i...

Page 126: ...locations returning all relay functions to factory default settings and setting Quick Boot feature to OFF This command does not affect limit model and corresponding protection limits last setting recall register or present operating conditions NOTE System password must be enabled prior to issuing this com mand see PAR B 99 B 104 SYSTem SET COMMAND SYST SET Syntax Short Form SYSTem SET CM0 DC0 DC1 ...

Page 127: ...sly stored values of VOLT TRIG and CURR TRIG actual output voltage current is dependent upon the load Sending TRIG SOUR IMM causes the next VOLT TRIG or CURR TRIG to immediately program the output regardless of trigger arming RST sets TRIG SOUR to IMMediate Related Commands GET TRG INIT IMM INIT CONT B 108 TRIGger SEQuence SOURce QUERY TRIG SOUR Syntax Short Form TRIG SEQ SOUR Long Form TRIGger SE...

Page 128: ...hanged to Voltage 302 Mode changed to Current Device Error bit 3 Power supply operating in current mode changed to voltage mode Power supply operating in voltage mode changed to current mode 303 Output Lead Fault Device Error bit 3 Excessive voltage drop detected between power and sense lead 304 Current Protection Fault Device Error bit 3 Current exceeded programmed protection value 305 Voltage Pr...

Reviews: