EasyManua.ls Logo

Fluke Calibration 5560A - Instrument Status Register (ISR); Instrument Status Change Registers; Instrument Status Change Enable Registers

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
34
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 received an incorrectly
formed command.
If you set the bits in the ESE, you can mask (disable) the associated bits in the ESR. For example, to
prevent the occurrence of a command error from causing bit 5 (ESB) in the Status Byte Register to go
to 1, you can reset (to 0) bit 5 in the ESE register. The sample program below accomplishes this. This
program checks the status of the CME bit, then toggles it if it is 1.
10 ! THIS PROGRAM RESETS BIT 5 (CME) IN THE ESE
20 PRINT @4,”*ESE 33” ! INITIAL ESE IS CME + OPC
30 GOSUB 100 ! GET AND PRINT INITIAL ESE
40 IF (A% AND 32%) THEN A% = A% - 32% ! CLEAR CME (BIT 5)
50 PRINT @4, “*ESE “;A% ! LOAD ESE WITH NEW VALUE
60 GOSUB 100 ! GET AND PRINT NEW ESE
70 END
100 PRINT @4, “*ESE?” ! ASK FOR ESE CONTENTS
110 INPUT @4, A% ! RETRIEVE REGISTER CONTENTS
120 PRINT “ESE = “;A%
130 RETURN
Instrument Status Register (ISR)
The Instrument Status Register (ISR) gives the controller access to the state of the Calibrator, including
some of the information presented to the operator on the display and the annunciators shown during
local operation.
Instrument Status Change Registers
There are two registers dedicated to monitoring changes in the ISR. These are the ISCR0 (Instrument
Status 1-0 Change Register) and the ISCR1 (Instrument Status 0-1 Change Register). Each status
change register has an associated mask register. Each ISCR is cleared (set to 0) when the Calibrator
is turned on, every time it is read, and at each *CLS (Clear Status) command.
Instrument Status Change Enable Registers
The Instrument Status Change Enable registers (ISCE0 and ISCE1) are mask registers for the ISCR0
and ISCR1 registers. If a bit in the ISCE is enabled (set to 1) and the corresponding bit in the ISCR
makes the appropriate transition, the ISCB bit in the Status Byte is set to 1. If all bits in the ISCE are
disabled (set to 0), the ISCB bit in the Status Byte never goes to 1. The contents of the ISCE registers
are set to 0 at power-up.

Table of Contents