EasyManua.ls Logo

Fluke Calibration 5560A - Service Request Enable Register (SRE); Program the STB and SRE; Event Status Register (ESR); Event Status Enable (ESE) Register

Default Icon
120 pages
Print Icon
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...
5560A/5550A/5540A
Remote Programmers Manual
32
Service Request Enable Register (SRE)
The Service Request Enable Register (SRE) enables or masks the bits of the Status Byte Register.
The SRE is cleared at power up. See Table 17 for the bit functions.
Program the STB and SRE
If you reset (to 0) the bits in the SRE, you can mask (disable) associated bits in the Status Byte
Register. Bits set to 1 enable the associated bit in the Status Byte Register. The sample BASIC
program below enables the Error Available (EAV) bit.
10 ! THIS PROGRAM SETS EAV IN THE SRE
20 PRINT @4,”*SRE 8” ! LOAD THE REGISTER
30 PRINT @4, “*SRE?” ! ASK FOR THE SRE CONTENTS
40 INPUT @4, A% ! RETRIEVE THE REGISTER CONTENTS
50 PRINT “SRE = “;A%
60 RETURN
The BASIC program below generates an error and checks the Status Byte Register. Enable the
EAV bit with the example above.
10 ! THIS PROGRAM GENERATES AN ERROR AND CHECKS IT
20 PRINT @4, “OUT 1300V” ! 1300V IS OUT OF 5560A RANGE
30 A% = SPL(4) ! DO A SERIAL POLL
40 IF ((A% AND 72%)=0%)THEN PRINT “EAV and RQS should have been set”
50 PRINT @4, “*STB?” ! RETRIEVE BYTE
60 INPUT @4, A%
70 IF ((A% AND 8%)=0%) THEN PRINT “EAV should have been set”
Event Status Register (ESR)
The Event Status Register is a two-byte register in which the higher eight bits are always 0, and the
lower eight bits represent various conditions of the Calibrator. The ESR is cleared (set to 0) when the
power is turned on, and every time it is read.
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, and the error is logged in the error queue.
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 Status Byte Register also goes to 1. The ESR
bit stays 1 until the controller reads the ESR or does a device clear, a selected device clear, or sends
the reset or *CLS command to the Calibrator. The ESE is cleared (set to 0) when the power is turned
on.

Table of Contents

Related product manuals