Martel Electronics M2000 User Manual

Page 21

Advertising
background image

*ESE

IEEE-488

RS-232

Sequential

Overlapped

(Event Status Enable command) Loads a byte into the Event Status Enable (ESE) register.
(See "Event Status Enable Register (ESE)" )

Parameter:

<value> (decimal equivalent of the ESE byte, 0 to 255)

Example: *ESE

140

Load decimal 140 (binary 10001100) to enable bits 7 (PON), 3 (DDE) and 2 (QYE).

*ESE?

IEEE-488

RS-232

Sequential

Overlapped

(Event Status Enable query) Returns the contents of the Event Status Enable (ESE) register.
(See "Event Status Enable Register (ESE)" )

Response:

<value> (decimal equivalent of the ESE byte, 0 to 255)

Example:

*ESE? returns 133

Returns decimal 133 (binary 10000101) when bits 7 (PON), 2 (QYE), 1 (OPC) are enabled.

*ESR?

IEEE-488

RS-232

Sequential

Overlapped

(Event Status Register query) Returns the contents of the Event Status Register (ESR) and
clears the register. (See Event Status Register (ESR)" )

Response:

<value> (decimal equivalent of the ESR byte, 0 to 255)

Example:

*ESR? returns 189

Returns decimal 189 (binary 00111101) when bits 5 (CME), 4 (EXE), 3 (DDE), 2 (QYE) and 0
(OPC) are enabled.

FAULT?

IEEE-488

RS-232

Sequential

Overlapped

Returns the most recent error code from the error queue. If the queue is empty (no errors
have occurred) it returns 0. The command can be used when the previous command did not
do what it was intended to do.

For example, if a value for current output above 100 mA is entered, the FAULT? command
would return error code 105, entry is above upper limit for the selected output range.

FUNC?

IEEE-488

RS-232

Sequential

Overlapped

(Function query) Returns the present output, measurement, or calibration function. See the
response below for output and measurement modes.Responses:

DCV

(dc volts function)

DCI

(dc current function)

Example:

FUNC? returns DCV

Returns DCV when the M2000 output function dc volts.

*IDN?

IEEE-488

RS-232

Sequential

Overlapped

(Identification query) Returns instrument model number, serial number, and firmware revision
levels for the main, encoder, and inguard CPUs.

Responses: (Indefinite ASCII) A message containing four fields separated by commas as fol-
lows:

1. Manufacturer

2. Model number

3. Serial number (always 0)

4. Firmware revision levels for the main, front panel, and inguard CPUs.

Example:

*IDN? returns MARTEL, M2000,0,1.2

Returns Martel manufacturer, model M2000, serial number 0, firmware version 1.2.

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

21

Advertising