background image

SCPI Commands 

Elgar CW-P Series 

3.5  STATUS Commands  

:STATus 

The status commands tree. 

   :OPERation? 

SCPI commands returns ‘1’. 

   :OPERation 

The SCPI Operation sub-tree. 

      :[EVENt?] 

Returns ‘1’. 

      :CONDition? 

Returns ‘1’. 

      :ENABle <value> 

Sets the value in the Operations Enable register. 

      :ENABle? 

Returns the value in the Operations Enable register. 

   :PRESet 

Set the value of the Operations Enable register. 

   :QUEStionable? 

Returns ‘1’. 

   :QUEStionable 

 

      :CONDition? 

Returns ‘1’. 

      [:EVENt?] 

Returns ‘1’. 

      :ENABle <value> 

Set the value of the Operations Enable register. 

      :ENABle? 

Returns the value of the Operations Enable register. 

3.6 SYSTEM 

Commands 

:SYSTem 

The system command tree. 

   :KLOCK? 

Returns ‘1’ if the front panel programmable 
keys are locked out. 

   :KLOCK <boolean> 

‘1’ locks the front panel programmable keys. 

   :CHECKSUM? 

Returns the results of the checksum test.  
1 = the checksum passed, 0 = failed. 

   :CHECKSUM 

Specify that the CW shall re-check its flash 
checksum. 

   :COMMunicate 

The communications sub-tree. 

      :GPIB 

The GPIB communications channel. 

         [:SELF] 

SCPI sub-command. 

            :ADDRess <value> [<value>] 

Set the GPIB address to a value of 1..31. 

            :ADDRess? 

Returns the GPIB address presently set. 

   :AUTORUN <value> 

‘1’ (ON) specifies the CW will automatically 
close the output relay at power-up. ‘0’ (OFF) 
specifies the CW will power up in standby. 

   :AUTORUN? 

Returns the state of the autorun parameter, 
either ‘0’ or ‘1.’ 

   :STORe <value> 

Specify that the present system setpoint/ 
register set shall be saved to EEPROM at the 
<value> address. <value> shall be 0..98. 

3-4  

Programming 

Manual 

Summary of Contents for CW 1251P

Page 1: ...0 733 5427 Tel 858 450 0085 Fax 858 458 0267 Email sales elgar com www elgar com 2003 by Elgar Electronics Corporation This document contains information proprietary to Elgar Electronics Corporation The information contained herein is not to be duplicated or transferred in any manner without prior written permission from Elgar Electronics Corporation May 13 2004 Document No M161691 03 Rev D ...

Page 2: ......

Page 3: ... 2 2 Power On Conditions 2 1 2 3 Reset Conditions 2 2 2 4 Changing Voltage Ranges Via Command Interface 2 2 2 5 Changing Ranges During Recall Via Command Interface 2 2 SECTION 3 SCPI COMMANDS 3 1 3 1 Miscellaneous Commands 3 1 3 2 MEASURE Commands 3 1 3 3 OUTPUT Commands 3 2 3 4 SOURCE Commands 3 2 3 5 STATUS Commands 3 4 3 6 SYSTEM Commands 3 4 3 7 Master Slave Commands 3 5 3 8 Common Commands 3 ...

Page 4: ...A STATUS REGISTER DEFINITIONS A 1 A 1 Status Byte A 1 A 2 Standard Event Status Register A 2 A 3 Operation Status Questionable Status Registers A 3 A 4 Error Event Queue A 3 A 5 Serial Poll Operation A 3 APPENDIX B ERROR CODES B 1 B 1 Error Codes Returned by SYSTem ERRor Query B 1 B 2 SCPI Error Codes B 1 APPENDIX C SAMPLE PROGRAMS C 1 ii Programming Manual ...

Page 5: ...s power sources conform to all specifications for devices as defined in IEEE 488 2 and comply with SCPI command syntax version 1995 0 Parameter Definitions Type Valid Arguments boolean ON OFF 0 or 1 HIgh LOw value Integer or Floating point number name String enclosed by single or double quotes 1 3 Units The CW Series accepts the following units as suffixes to numeric values Type of Unit Valid Suff...

Page 6: ...ed For example to query the programmed voltage on phase A send the string SOURce VOLTage A subsequent device read will return a value such as 120 00 All queries are terminated with a carriage return and line feed 0x0D 0x0A for those GPIB controllers that require termination characters When the CW unit has nothing to report its output buffer will contain three ASCII characters space carriage return...

Page 7: ...On Conditions When the CW P unit is first powered up the system reads in the configuration that was last saved to memory position 0 The specific system items in Save and Recall are VoltsA VoltsB VoltsC B and C for multi unit configuration Voltage Range either High or Low Current Protection Type either Fold or Shut Current Shutdown Time Current LimitA Current LimitB Current LimitC B and C for multi...

Page 8: ...anged using the command interface SOUR VOLT RANGE 1 If moving from low range to high range and the output relay was initially in the closed state the CW will open the output relay In this case the programmer must re close the relay and set the new voltage Changing Ranges During Recall Via Command Interface Assume that the CW is in low range with the output relay closed and sourcing 100 volts If a ...

Page 9: ...cy measured PEAKCURRent Return the peak current measured POWer Return presently calculated power in Watts POWer TOTAL Return presently calculated power in Watts POWERFACtor Return the power factor measured POWERFACtor TOTAL Return the power factor measured CRESTFACtor Return the crest factor measured VA Return the Volt Amps measured calculated VA Return the Volt Amps measured calculated TOTAL Retu...

Page 10: ...esent current limit setpoint PROTection Return the present current limit setpoint amps PROTection value Specifies the over current shutdown mode and optionally can specify the over current value CLEar Clears the over current protection circuit CURTimeout CURTimeout value Programs the current level in current foldback mode and optionally sets the timeout value in milliseconds STATe Return the prese...

Page 11: ...t AMPLitude Return the present voltage setpoint PROTection Return the overvolt protection of the CW Always returns 1 PROTection value Set the overvolt protection setpoint value LEVel value Set the overvolt protection setpoint value LEVel Return the overvolt protection value STATe boolean Specify the overvolt protection state 1 protection turned on 0 will be ignored STATe Return the present overvol...

Page 12: ...urns 1 if the front panel programmable keys are locked out KLOCK boolean 1 locks the front panel programmable keys CHECKSUM Returns the results of the checksum test 1 the checksum passed 0 failed CHECKSUM Specify that the CW shall re check its flash checksum COMMunicate The communications sub tree GPIB The GPIB communications channel SELF SCPI sub command ADDRess value value Set the GPIB address t...

Page 13: ...hase Lock Loop is in the acquired locked state ANAIN boolean 1 ON specifies that the CW amplifiers will slew 0 through programmed value in relation to a 0 5 volt control signal See Operation Manual for connector pinouts ANAIN Returns 1 if ANAIN is enabled SERIALNO Returns the serial number VER S ion Return the code version of the FLASH application presently active in the CW 3 7 Master Slave Comman...

Page 14: ...Operation Complete Query Causes an ASCII 1 to be placed in the output queue when all pending operations are complete RST Reset Command Resets the device to the state defined in section 2 3 Clears all status reporting data structures including the Status Byte Standard Event Status Register and Error Queue Enable Masks are not cleared SRE Service Request Enable Command Sets the Service Request Enabl...

Page 15: ...RxD line of the controller and the RxD line of the CW P connects to the TxD line of the controller See Section 4 3 The CW P implements the XON XOFF Transmit On Transmit Off software protocol to control the flow of data between it and the controller Under this protocol the receiver either the CW P or the controller controls when data is sent and requests that the transmitter controller or CW P stop...

Page 16: ...D line of the controller and that the TxD line of the CW P connects to the RxD line of the controller This could be accomplished using a null modem cable There are two versions of the null modem cable a 9 pin 9 pin and a 9 pin 25 pin The 9 pin 9 pin cable swaps Pin 2 and Pin 3 between the two ends of the cable so that the proper RxD and TxD connections are made while the 9 pin 25 pin cable connect...

Page 17: ...it pattern as the Status Byte The SRE register is modified using the SRE command and can be read with the SRE command For example if the SRE register is set to 0x10 MAV when the CW P unit has a message available the Status Byte register will contain 0x50 RQS and MAV and the SRQ line of the GPIB bus will be pulled low indicating a request for service Bit Hex Value Description 0 01 Not used 1 02 Not...

Page 18: ...ervice Although the device sends the MSS bit in response to a status query STB it is not sent in response to a serial poll It is not considered part of the IEEE 488 1 Status Byte The ESR can be read by the ESR command Reading this register or using the CLS command will clear the ESR Bits in the ESR will be set only when the corresponding bit in the Standard Events Status Enable register is set Use...

Page 19: ... Status Enable and Questionable Status Enable registers can be programmed and queried to allow SCPI compatibility but have no effect on the Operation Status and Questionable Status registers The CW Series maintains an Error Event Queue as defined by SCPI The queue holds up to 10 errors and events It is queried using the SYSTem ERRor command which reads in a first in first out manner The read opera...

Page 20: ...Status Register Definitions Elgar CW P Series A 4 Programming Manual This page intentionally left blank ...

Page 21: ... are device specific errors Additionally in multiphase system applications where multiple units are interconnected for generating polyphase outputs the error codes will also note which unit of the system experienced the fault condition An example is a response to the SYST ERR Command is Fault Code Number Fault Condition source x where x the unit in a multiple unit system 7 The error queue is empty...

Page 22: ...where x CW Unit that saw the overcurrent condition in a multiphase system application 03 9 1 Indicates that the CW shutdown because the programmed voltage limit levels were met or exceeded Source x where x CW Unit that saw the overvoltage condition in a multiphase system application 03 2 9 1 Indicates that the CW shutdown because of hardware protection circuits internal to the CW Unit or others in...

Page 23: ...mps current limit foldback mode SOUR VOLT 120 Specify 120 VAC setpoint SOUR FREQ 60 Specify 60 Hz frequency OUTP ON Source power to the output 2 Turn off Front Panel Programmability SYST KLOCK ON 1 Lock the program keys out 3 Turn on Front Panel Programmability SYST KLOCK OFF 0 Front panel program keys now function 4 Provide Zero Crossing pulses from Phase A SYST EXT CLOCK OUT 5 Phase Lock Loop cl...

Page 24: ...ll drop to zero 11 If the CW P supply is sourcing to the output terminals output relay closed voltage 0 and you send the command SYST RECALL 31 any number 0 99 When the recalled parameters are in the same range that the CW P is presently operating in the output relay will remain closed and the voltage phase current limit etc will go to the new values When the recalled parameters are in the opposit...

Reviews: