Martel Electronics 3001 User Manual

Page 52

Advertising
background image

Many of the remote commands require parameters. Improper use of parameters
causes command errors to occur. When a command error occurs, bit CME (5) in the
Event Status Register (ESR) goes to 1 (if enabled in ESE register), and the error is
logged in the error queue.

6) Event Status Enable (ESE) Register

A mask register called the Event Status Enable register (ESE) allows the controller to
enable or mask (disable) each bit in the ESR. When a bit in the ESE is 1, the
corresponding bit in the ESR is enabled. When any enabled bit in the ESR is 1, the
ESB bit in the Serial Poll Status Byte also goes to 1. The ESR bit stays 1 until the
controller reads the ESR, does a device clear, a selected device clear, or sends the
reset or *CLS command to the 3001. The ESE is cleared (set to 0) when the power
is turned on.

7) Bit Assignments for the ESR and ESE

The bits in the Event Status Register (ESR) and Event Status Enable register (ESE)
are assigned as shown in Figure 35.

15

14

13

12

11

10

9

8

0

0

0

0

0

0

0

0

7

6

5

4

3

2

1

0

PON

0

CME

EXE

DDE

QYE

0

OPC

PON

Power on. This bit is set to 1 if line power has been turned off and on since the last
time the ESR was read.

CME

Command error. The IEEE-488 interface of the 3001 encountered an incorrectly
formed command and placed an error code in the error queue. The command
FAULT? can be used to fetch error codes from the error queue, which is described
in more detail below.

EXE

Execution error. An error occurred when the 3001 tried to execute the last com-
mand and an error code was placed into the error queue. This could be caused,
for example, by a parameter being out of range. The command FAULT? can be
used to fetch error codes from the error queue, which is described in more detail
below.

DDE

Device-dependent error. An error related to a device-dependent command has
occurred.

QYE

Query error. The 3001 was addressed to talk when no response data was available
or appropriate, or when the controller failed to retrieve data from the output queue.

OPC

Operation complete. All commands previous to reception of a *OPC command
have been executed, and the interface is ready to accept another message.

Figure 35 - Event Status Register (ESR) and Event Status Enable (ESE) Registers

8) Programming the ESR and ESE

To read the contents of the ESR, send the remote command, *ESR?. The ESR is
cleared (set to 0) every time it is read. To read the contents of the ESE, send the
remote command, *ESE?. The ESE is not cleared when it is read. When you read
either register, the 3001 responds by sending a decimal number that when converted

48

Advertising