Technical data
24 Programmer’s Guide
3 Status Registers
— The transition registers are preset to register if the condition goes
from 0 to 1 (false to true, or a positive transition).
— This can be changed so the selected condition is detected if the bit
goes from 1 to 0 (true to false, or a negative transition).
— It can also be set for both types of transitions occurring.
— Or it can be set for neither transition. If both transition registers are
set to 0 for a particular bit position, that bit will not be set in the event
register for either type of change.
Status Register Examples
Each bit in a register is represented by a numerical value based on its
location. See figure below. This number is sent with the command to
enable a particular bit. If you want to enable more than one bit, you
would send the sum of all the bits that you want to monitor.
Example
1 To enable bit 0 and bit 6 of standard event status register, you would
send the command *ESE 65 because 1 + 64 = 65.
2 The results of a query are evaluated in a similar way. If the *STB?
command returns a decimal value of 140, (140 = 128 + 8 + 4) then bit 7
is true, bit 3 is true and bit 2 is true.