EasyManua.ls Logo

Fluke 5500A - Programming the ESR and ESE

Fluke 5500A
410 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Remote Operation
Checking 5500A Status
5
5-39
15 14 13 12 11 10 9 8
00000000
76543210
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 5500A’s IEEE-488 interface encountered an incorrectly formed command.
(The command ERR? fetches the earliest error code in the error queue, which contains error
codes for the first 15 errors that have occurred.)
EXE Execution error. An error occurred while the 5500A tried to execute the last command. This could
be caused, for example, by a parameter being out of range. (The command ERR? fetches the
earliest error in the error queue, which contains error codes for the first 15 errors that have
occurred.)
DDE Device-dependent error. An error related to a device-dependent command has occurred.
QYE Query error. The 5500A was addressed to talk when no response data was available or
appropriate, or when the controller failed to retrieve data on 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.
F5-06.eps
Figure 5-10. Event Status Register (ESR) and Event Status Enable (ESE)
5-50. 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 5500A Calibrator responds by sending a decimal number that when
converted to binary represents bits 0 through 15. The following sample BASIC program
retrieves the contents of both registers:
10 ! THIS PROGRAM READS THE ESR AND THE ESE REGISTERS
20 PRINT @6, "*ESR?" ! ASK FOR THE ESR CONTENTS
30 INPUT @6, A% ! RETRIEVE THE REGISTER CONTENTS
40 PRINT @6, "*ESE?" ! ASK FOR THE ESE CONTENTS
50 INPUT @6, B% ! RETRIEVE THE REGISTER CONTENTS
60 PRINT "ESR = ";A% ! DISPLAY THE ESR REGISTER CONTENTS VALUE
70 PRINT "ESE = ";B% ! DISPLAY THE ESE REGISTER CONTENTS VALUE
80 END
Convert the contents of variables A and B into binary, and you can read the status of the
registers. For example if A is 32, its binary equivalent is: 00000000 00100000.
Therefore, bit 5 (CME) in the ESR is set (1) and the rest of the bits are reset (0). This
means that the calibrator tried to execute an incorrectly formed command.

Table of Contents

Other manuals for Fluke 5500A

Related product manuals