This manual provides programming information for Elgar’s ContinuousWave™ series programmable AC power sources. This manual is to be used in conjunction with the CW-P Series Programmable AC Power Source Operation Manual (Elgar Document No. M161691-01). The CW-P Series power sources conform to all specifications for devices as defined in IEEE 488.2, and comply with SCPI command syntax version 1995.0.
SCPI Conformance Information Elgar CW-P Series Conventions Commands enclosed by “[ ]” are optional. For example, SOURce:VOLTage:LEVel:IMMediate:AMPLitude 120.0 can be written as, SOURce:VOLTage 120.0. Queries The query syntax is identical to the command syntax, with a ”?” appended. 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”.
SECTION 2 POWER-ON AND RESET CONDITIONS The following sections define the factory and reset power-on conditions of the unit. Factory Defaults When the CW-P unit is first powered up, the following factory defaults will be in place: • GPIB Address: •...
Power-On and Reset Conditions Elgar CW-P Series In addition, unique system settings are read in from the non-volatile EEROM memory: • Output Relay State, either Auto Start or Standby • Keyboard Lock State, either Front Panel Program Enabled or Disabled •...
SCPI Commands Elgar CW-P Series OUTPUT Commands :OUTPut? Return the state of the output relay. :OUTPut <boolean> Set the output relay to open (OFF) or closed (ON). :OUTPut :STATe? Return the state of the output relay. :STATe <boolean> Set the output relay to open (OFF) or closed (ON).
Page 11
Elgar CW-P Series SCPI Commands :FREQuency <value> Set the frequency of the CW. :FREQuency? Returns the frequency setpoint of the CW. :PHASe <value> Adjust phase 1, 2, or 3 phase angle offset from external trigger. :PHASe? Return the present phase angle setpoint.
SCPI Commands Elgar CW-P Series 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.
Elgar CW-P Series SCPI Commands :STORe? Return the present EEPROM register address that was read to set the present setpoint/register values. CW shall read in EEPROM address 0 at power-up. :RECall <value> Specify that CW shall read in the EEPROM setpoint/registers from EEPROM location <value>.
*IDN? Identification Query. Returns the device identity as an ASCII string: <manufacturer>, <model>, <serial number>, <firmware version level>. Example: Elgar, CW801P, 1234FF345, 1.20 *OPC Operation Complete Command. Causes the Operation Complete bit to be set in the Standard Events Status Register when all pending operations are complete.
SECTION 4 RS-232 INTERFACE This section describes how to connect the CW-P for remote programming with a controller using the RS232 interface. The RS-232 interface provides a simpler 3-wire serial interface (compared to the GPIB parallel interface), while fully supporting the SCPI commands presented in Section 3.
RS-232 Interface Elgar CW-P Series RS-232 Connector The RS-232 connector is a 9-pin male Subminiature-D type; its pinout is presented below: Pin Number Function Input/Output RxD, Receive Data Input TxD, Transmit Data Output Connected to Pin-6 — Signal Ground —...
Page 17
The CW-P Series supports the IEEE 488.2 and SCPI 1993.0 status reporting data structures. These structures are comprised of status registers and status register enable mask pairs. These pairs are described below: The Status Byte status register can be read by the *STB? command or by issuing a GPIB serial poll.
Status Register Definitions Elgar CW-P Series " # $ %$ This bit is set when any error/event is entered in the System Error queue. It is read using the SYSTem:ERRor? query. & ' $ %$ Indicates a message is available in the GPIB output queue. This bit is cleared after the GPIB output buffer is read.
Elgar CW-P Series Status Register Definitions / # .$ Set whenever the last command is completed and the CW is ready to accept another command, or when query results are available. Set when a query is made for which no response is available.
Page 20
Status Register Definitions Elgar CW-P Series This page intentionally left blank. Programming Manual...
Page 21
The following error codes are defined in the SCPI 1993.0 specification, and are supported by the CW-P Series. Error codes are in the range of [-32768, 32767]. SCPI reserves the negative error codes and 0, while error codes greater than 0 are device-specific errors.
Error Codes Elgar CW-P Series 0 77 An error/event number in the range [-299, -200] indicates that an error has been detected by the instrument’s execution control block. The occurrence of any error in this class shall cause the execution error bit (bit 4) in the event status register to be set.
Page 23
The following examples will illustrate how to perform certain functions on the CW-P using SCPI via the GPIB interface or the RS-232 channel. 5 See the CW-P Series Operation Manual for examples of how to use Slave commands. Source AC from power up •...
Sample Programs Elgar CW-P Series Turn On RMS loop • SOUR:VOLT:RMSLOOP ON (1) Turn Off RMS loop • SOUR:VOLT:RMSLOOP OFF (0) Turn Off RMS loop • SOUR:VOLT:RANGE LO • SOUR:VOLT 120 • OUTPUT ON The CW-P will source 120V to the output terminals in low range.
Need help?
Do you have a question about the CW 801P and is the answer not in the manual?
Questions and answers