background image

User and Programming Manual - Rev H 

 

California Instruments

 

 

May 2000 

P Series 

78

15.  Programming Examples 

15.1  Introduction 

This chapter contains examples on how to program the AC source. Simple examples show 
you how to program: 

• 

output functions such as voltage and frequency 

• 

measurement functions  

 

The examples in this chapter use generic SCPI commands. See Chapter 12 for information 
about encoding the commands as language strings. Where appropriate, optional commands 
are shown for clarity in the examples. 

15.2  Programming the Output 

Power-on Initialization 

When the AC source is first turned on, it wakes up with the output state defined by the PON 
register number. If the register number or the register has no valid data, the AC source 
initializes to the following state. 

 

VOLT  0 

 

FREQ 60 

 

OUTP 0 

 

VOLT:RANG 136 

 

 

 

 The following commands are given implicitly at power-on: 

*RST 
*CLS 
*SRE 128 
*ESE 0 

 

*RST is a convenient way to program all parameters to a known state. Refer to Table 12 under 
the  *RST command in paragraph 14.4.5 to see how each programmable parameter is set by 
*RST. 

Enabling the Output 

To enable the output, use the command: 

OUTPut 1 

Voltage and Frequency 

The AC rms output voltage is controlled with the VOLTage command. For example, to set the 
AC output voltage to 125 volts rms, use: 

VOLTage 125 

Summary of Contents for 801P Series

Page 1: ...Revision H May 2000 Copyright 1996 1997 1998 1999 2000 By California Instruments All rights reserved P N 5002 966 801P 1001P 1251P Series AC Power Source User and Programming Manual...

Page 2: ......

Page 3: ...ramming Manual Rev H California Instruments P Series May 2000 i User s Manual AC Power Source California Instruments Models 801P 1001P 1251P Copyright 1996 1997 1998 1999 2000 California Instruments R...

Page 4: ...s a North American ferrule type fuse rated at 20A and 250Volts Fast Acting DO NOT OPERATE IN A VOLATILE ATMOSPHERE Do not operate the power source in the presence of flammable gases or fumes DO NOT TO...

Page 5: ...y including the model number and serial number On receipt of this information service information or a Return Material Authorization RMA number will be given Add RMA number to shipping label Pack inst...

Page 6: ...tor Correction Module PFC 21 5 4 DC DC Converter Module 21 5 5 Oscillator Control Board 22 5 6 DC to AC Power Module 22 5 7 RS232 Board 23 6 CALIBRATION 26 6 1 Calibration Equipment 26 6 2 Routine Cal...

Page 7: ...SIDERATIONS 63 13 1 RS232C Interface 63 14 SCPI COMMAND REFERENCE 66 14 1 Introduction 66 14 2 Subsystem Commands 66 14 3 System Commands 71 14 4 Common Commands 73 15 PROGRAMMING EXAMPLES 78 15 1 Int...

Page 8: ...RE 9 2 ADVANCED PORT SETTINGS DIALOG BOX 44 FIGURE 9 3 COM PORT PROPERTIES DIALOG BOX 44 FIGURE 12 1 PARTIAL COMMAND TREE 56 FIGURE 12 2 COMMAND MESSAGE STRUCTURE 58 FIGURE 13 1 RS232C INTERFACE CABLE...

Page 9: ...0V with a frequency range of 16 Hz to 500 Hz The maximum output current is 9 2 amps at 135 volts range and 4 6 amps at 270 volts range for the 1250VA model The maximum output current is 7 4 amps at 13...

Page 10: ...User and Programming Manual Rev H California Instruments May 2000 P Series 2 page intentionally left blank...

Page 11: ...k max at 260V input Hold Up Time 20 ms with no effect on output Isolation Voltage Input to output 2200 VAC input to chassis 1350 VAC 2 1 2 Output Voltage Range Low Range is 0 to 135 V rms High Range i...

Page 12: ...1P Current Limit 801P 1001P 1251P 135V range 0 0 to 6 0 7 4 9 2 270V range 0 0 to 3 0 3 7 4 6 Accuracy Programmed value 5 of maximum current Frequency Range Range Resolution 16 0 99 9 Hz 0 1 Hz 100 50...

Page 13: ...Overvoltage Transients Surge protection to withstand EN50082 1 IEC 801 4 5 levels Output Overcurrent Shutdown after 0 1 second after overcurrent Output Overvoltage Shutdown recycle input power to rese...

Page 14: ...ry II Vibration Designed to meet NSTA 1A transportation levels Shock Designed to meet NSTA 1A transportation levels 2 4 Regulatory Electromagnetic Designed to meet EN50081 2 and EN50082 2 European Emi...

Page 15: ...User and Programming Manual Rev H California Instruments P Series May 2000 7...

Page 16: ...Displays Displays Two 4 digits 0 5 LCD display For viewing programmed voltage frequency and current limit For displaying measured current Status indicators 6 LEDs to indicate REMOTE FAULT OUTPUT ON O...

Page 17: ...User and Programming Manual Rev H California Instruments P Series May 2000 9 page intentionally left blank...

Page 18: ...C Power Source WARNING Do not connect the unit to a 400 480 service as the result will be a severely damaged unit 3 3 Mechanical Installation The AC Source is a completely self contained power unit It...

Page 19: ...ew 3 5 Output Connections 3 5 1 Output Wiring When the low voltage range is selected only the duplex US NEMA 5 15P output socket will be active If the high voltage range is selected only the European...

Page 20: ...he current function with the Frequency Current selector Set the current limit to the maximum value using the right shuttle Set the output voltage to 135V with the left shuttle 5 Enable the output by p...

Page 21: ...r call California Instrument s customer satisfaction department for further assistance High Range Load Low Range Load Load ON OFF Switch Oscilloscope AC Output or Distortion Analyzer 135 0 Unit DMV Un...

Page 22: ...ts May 2000 P Series 14 4 Front Panel Operation 4 1 Front Panel Guided Tour The front panel can be divided in a small number of functional areas Output Sockets Status Indicator lights Shuttle knobs LC...

Page 23: ...ST REM command Any time the REMOTE LED is lit the front panel of the 1001P 1251P unit is disabled There is no LOCAL button that allows the user to regain control of the front panel The SYST LOC comman...

Page 24: ...1 4 FUNCTION Buttons There are three function buttons for the Output Voltage Range Output State and Shuttle Mode The following is a description of these buttons KEY DESCRIPTION RANGE The RANGE button...

Page 25: ...uency Current select button will define the operating mode of the frequency current display 4 2 How to This chapter covers some common tasks that are often performed with an AC power source These exam...

Page 26: ...3 Moving the right shuttle will interrupt the current measurement The display will show the current limit value 4 After a short delay the display will revert back to show the measured current 4 2 4 V...

Page 27: ...e power on initialization values from the front panel proceed as follows 1 Set the unit up in the desired way from the front Range voltage frequency current limit output relay state Note The display m...

Page 28: ...factor correction boost type converter The converter steps the voltage to 385 VDC while drawing only sinusoidal current from the input power line The DC to DC converter provides isolation and changes...

Page 29: ...erter is a full bridge converter and the auxiliary converter is a two FET forward converter All the 8 LEDs on the DC DC board should be lit under normal operation The LED DS200 is lit when the DC outp...

Page 30: ...d above 5 0 volts the multicolor LEDs DS10 and DS9 on the oscillator board will illuminate Current Current DAC Curr Sense Fault Sense Frequency Generation Micro Voltage DAC Front Controller Panel Cont...

Page 31: ...ulse peak current limit and sinusoidal average current limiting to protect the power transistor and load 5 7 RS232 Board This board assembly has the RS232 transceivers It also has optocouplers for int...

Page 32: ...AUTION VOLTAGES UP TO 270 VAC AND 410 VDC ARE PRESENT IN CERTAIN SECTIONS OF THIS POWER SOURCE THIS EQUIPMENT GENERATES POTENTIALLY LETHAL VOLTAGES DEATH ON CONTACT MAY RESULT IF PERSONNEL FAIL TO OBS...

Page 33: ...User and Programming Manual Rev H California Instruments P Series May 2000 25 Page intentionally left blank...

Page 34: ...the Oscillator Assembly A4 Other adjustment are on the DC AC Board Assembly Refer to Figure 6 3 for the location of the adjustments 6 1 Calibration Equipment Digital Multimeter Fluke 8506A or HP 34401...

Page 35: ...up for Routine Output Calibration 6 2 1 Output Voltage Calibration 1 Select the low voltage range Set the output frequency to 60Hz Set the output voltage to 135 volts 2 Remove all load and enable the...

Page 36: ...load 3 Read the output voltage across the shunt with the external voltmeter 4 To calibrate the current measurement functions select the current function with the frequency current button The current...

Page 37: ...1P 1001P 1251P GUI and a PC communicating with the AC source via the RS232 interface 2 Refer to 801P 1001P 1251P software documentation for Installing and starting the GUI to monitor the voltage measu...

Page 38: ...User and Programming Manual Rev H California Instruments May 2000 P Series 30 Figure 6 3 Location of Internal Adjustments...

Page 39: ...User and Programming Manual Rev H California Instruments P Series May 2000 31 page intentionally left blank...

Page 40: ...troubleshooting 7 2 Basic Operation Table 3 Basic Symptoms PARAGRAPH PROBLEM 7 2 1 Poor Output Voltage Regulation 7 2 2 Overload Light On 7 2 3 Distorted Output 7 2 4 Unit Shuts Down After 3 5 Second...

Page 41: ...Output and No Lights on Front Panel Table 8 No output and no lights on front panel CAUSE SOLUTION Rear panel power switched off Switch the breaker on No input power to the input connector Ensure corr...

Page 42: ...CT MAY RESULT IF PERSONNEL FAIL TO OBSERVE SAFETY PRECAUTIONS DO NOT TOUCH ELECTRONIC CIRCUITS WHEN POWER IS APPLIED 7 3 1 Switch Off Unit Switch off the unit with the power on off switch on the rear...

Page 43: ...r The DC DC converter is on the left hand side when looking at the front Are LEDs lit on the DC to DC board YES NO If LEDs on the DC DC board are lit and front panel LEDs are not lit the problem is pr...

Page 44: ...e lit and the LED output indicator is lit but no output then suspect the relay on DC AC board If all 8 LEDs are lit on the DC DC converter then the problem is on the DC AC module Switch off then check...

Page 45: ...User and Programming Manual Rev H California Instruments P Series May 2000 37 page intentionally left blank...

Page 46: ...nly Complete information on how to use the PGUI PGUI32 can be found in the on line help supplied with the program Use the Help menu or press on any of the many Help keys located in all program windows...

Page 47: ...null modem cables obtained from a computer hardware store most likely will not work For this reason all California Instruments power sources that operate over RS232C are supplied with a RS232C 9 pin...

Page 48: ...Windows 3 1 The PGUI software is distributed on a 3 5 inch high density diskette The PGUI must be installed from this diskette as all required files are compressed You cannot copy the contents of this...

Page 49: ...ired files are compressed You cannot copy the contents of these diskettes to your PC hard drive and run the program To install the PGUI32 proceed as follows 1 Turn on the PC and boot up in Windows 2 I...

Page 50: ...older PC s com port interrupts are often shared between com 1 and com3 as well as com2 and com 4 If any of these other com ports is in use it may prevent you from using the com port that shares the sa...

Page 51: ...reduced or disabled altogether The procedure to disabled the FIFO mode is outlined in the next paragraph Note If turning off the UART FIFO conflicts with other applications that need to run on the sam...

Page 52: ...From the tabs at the bottom of the dialog box select the Port Settings tab 12 This should bring up the dialog shown in Figure 9 2 13 Next select the Advanced button to bring up the advanced port setti...

Page 53: ...GUI INI file Type Configuration Settings 4 Open the PGUI INI file using a text editor such as Notepad 5 Locate the Interface section and find the entry called CmdDelay If no such entry is present add...

Page 54: ...9 4 1 PGUI Distribution Files Application directory files The following files are copied to the application directory The application directory name is chosen by the user at the time of installation...

Page 55: ...Common dialog active control Comctl32 ocx Microsoft Common controls Msvbvm50 dll Microsoft Visual Basic 5 0 virtual machine library Note The location of these files as well as the files themselves may...

Page 56: ...User and Programming Manual Rev H California Instruments May 2000 P Series 48...

Page 57: ...lstop __________ City _________________________ State ______ Zip ______ Phone ____ ____________________ Fax ____ ______________ Software revision PGUI PGUI32 Program CI P Series AC Source Graphical Us...

Page 58: ...User and Programming Manual Rev H California Instruments May 2000 P Series 50 page left intentionally blank...

Page 59: ...C AC 1 A3 5002 421 3 HEATSINK ASSEMBLY DC AC 1 A4 5002 708 1 PC ASSEMBLY OSCILLATOR 1 A5 5002 709 1 PC ASSEMBLY RS232 1 B1 241184 FAN 4 24 VDC 1 F1 270167 FUSE 15A 250V ABC 15 1 F1 270176 FUSE 20A 250...

Page 60: ...User and Programming Manual Rev H California Instruments May 2000 P Series 52 page left intentionally blank...

Page 61: ...1251P AC Power Sources You will find the following information in the rest of this guide Chapter 11 Introduction Chapter 12 Introduction to SCPI Chapter 13 System Considerations Chapter 14 SCPI Comma...

Page 62: ...User and Programming Manual Rev H California Instruments May 2000 P Series 54 page left intentionally blank...

Page 63: ...ommand definition Upper case font Upper case font is used to show program lines in text OUTP 1 shows a program line 12 2 The SCPI Commands and Messages This paragraph explains the syntax difference be...

Page 64: ...12 1 Partial Command Tree The Root Level Note the location of the ROOT node at the top of the tree Commands at the root level are at the top level of the command tree The SCPI interface is at this loc...

Page 65: ...they oftern exceed this message length limit Moving Among Subsystems In order to combine commands from different subsystems you need to be able to restore the active path to the root You do this with...

Page 66: ...ine such as a newline or end of line character 12 4 1 The Message Unit The simplest SCPI command is a single message unit consisting of a command header or keyword followed by a message terminator FRE...

Page 67: ...y be either in the long form or the short form Long Form The header is completely spelled out such as VOLTAGE SYSTEM and OUTPUT Short Form The header has only the first three or four letters such as V...

Page 68: ...n front of every root level command 12 4 7 Message Terminator A terminator informs SCPI that it has reached the end of a message The only permitted message terminators is newline NL which is ASCII dec...

Page 69: ...e either of the following forms depending on the length of the returned string CRD Character Response Data Permits the return of character strings AARD Arbitrary ASCII Response Data Permits the return...

Page 70: ...User and Programming Manual Rev H California Instruments May 2000 P Series 62 page left intentionally blank...

Page 71: ...s Reserved This program is for demonstration purposes only and is not to be used for any commercial application Function and Subroutine Declarations DECLARE FUNCTION retstring MAIN PROGRAM CODE OPEN C...

Page 72: ...QBasic state LINE INPUT cannot be used as the P Series does not return a CR 13 after a response message The LINE INPUT functions waits for a CR before returning a string The P Series returns a LF 10 i...

Page 73: ...es AC power source and a PC communications port connector Figure 13 1 RS232C Interface cable wiring diagram DB 9 PC DB 9AC Source Pin 1 2 3 4 5 6 7 8 9 Pin 1 2 3 4 5 6 7 8 9 Direction output input out...

Page 74: ...he groups are comprised of commands that extend one or more levels below the root The description of common commands follows the description of the subsystem commands The subsystem command groups are...

Page 75: ...ge value in volts RANGe Set the output voltage range FREQuency Set the output frequency value in Hz CURRent This command sets the rms current limit of the output If the output current exceeds this lim...

Page 76: ...Series 68 Command Syntax SOURce FREQuency NRf Parameters range specified by the LIM FREQ LOW and LIM FREQ HIGH commands Unit Hz Hertz RST Value defined by PON Examples FREQ 50 Query Syntax FREQuency...

Page 77: ...To determine the actual range values use the query format of the RANGE command The returned values for high and low range e g 136 and 272 should be used to change range In any case the high voltage r...

Page 78: ...ystem controls the voltage frequency and current limit of the power source These limits are set at the factory and depend on the power source rating It is not accessable by the user The query format i...

Page 79: ...x LIMit CURRent Returned Parameters NR2 LIMit VOLTage This command queries the maximum voltage the power source will operate at in the high voltage range Command Syntax LIMit VOLTage NRf Parameters ma...

Page 80: ...cur As it is read each error is removed from the queue When all errors have been read the query returns 0 No Error If more errors are accumulated than the queue can hold the last error in the queue is...

Page 81: ...rations P Series units also respond to optional common commands that control stored operating parameters Common commands and queries are listed alphabetically If a command has a corresponding query th...

Page 82: ...ables the corresponding event All of the enabled events of the Standard Event Status Enable Register are logically ORed to cause the Event Summary Bit ESB of the Status Byte Register to be set See Cha...

Page 83: ...on of Standard Event Status Register Bit Position 7 6 5 4 3 2 1 0 Bit Name PON not used CME EXE DDE QYE not used not used Bit Weight 128 32 16 8 4 CME Command error DDE Device dependent error EXE Exec...

Page 84: ...eter values Item Value Item Value VOLT 0V FREQ 60 HZ CURR Note VOLT RANGe 136V OUTP 0 OFF DISP MODE 0 FREQ Note For 1251P 9 2A For 1001P 7 4A Command Syntax RST Parameters None Related Commands SAV Ta...

Page 85: ...gramming it with 0 the source cannot generate an MSS bit Command Syntax SRE NRf Parameters 0 to 255 Default Value 128 Example SRE 255 Query Syntax SRE Returned Paramters NR1 Register binary value Rela...

Page 86: ...lization When the AC source is first turned on it wakes up with the output state defined by the PON register number If the register number or the register has no valid data the AC source initializes t...

Page 87: ...e voltage range setting in which the unit is presently operating Frequency The output frequency is controlled with the FREQuency command To set the output frequency to 50 Hz use FREQuency 50 Current L...

Page 88: ...ws the status register structure of the AC source The Standard Event Status Byte and Service Request Enable registers and the Output Queue perform standard IEEE 488 functions as defined in the IEEE 48...

Page 89: ...he MSS in bit position 6 of the response but does not clear any of the bits in the Status Byte register The MAV bit and Output Queue The Output Queue is a first in first out FIFO data register that st...

Page 90: ...struments May 2000 P Series 82 Appendix A SCPI Command tree Command Syntax Tree Root SOURce CURRent FREQuency VOLTage LEVel RANGe OUTPut MEASurement CURRent VOLTage DISPlay MODE SYSTem PON REMote LOCa...

Page 91: ...User and Programming Manual Rev H California Instruments P Series May 2000 83 Appendix B SCPI Conformance Information SCPI Version The P Series AC power sources conform to SCPI version 1990 0...

Page 92: ...Generally the result of sending a value that is out of range i e a VOLT 200 command when the unit is in the 136V Low range 300 Device specific error Generally the result of an overcurrent current lim...

Page 93: ...User and Programming Manual Rev H California Instruments P Series May 2000 85 page left intentionally blank...

Page 94: ...mats data 60 forms bug report 38 FREQuency 67 Frequency Range 4 front panel 14 38 lock 15 Functional Test 12 H hard disk space required to install 40 header optional 59 separator 59 Header 56 Hold Up...

Page 95: ...root 60 Root 56 RST 76 S Safety 6 SAV 76 SCPI 55 message 55 program message 55 response message 56 Separator 59 Setup program 40 Shock 6 Short Circuit current 5 shuttle 16 simulation mode 39 software...

Reviews: