3-21
Programming
Monitoring the Instrument
Enabling register bits with masks
Several masks are available which you can use to enable or disable
individual bits in each register. For example, you can disable the Hard-
copy bit in the OPERation Status Register so that even though it goes
high, it can never set the summary bit in the status byte high.
Use the *SRE common command to set or query the mask for the Sta-
tus Byte Register.
The masks for the OPERation Status and QUEStionable Status registers
are set and queried using the STATus subsystem’s ENABle commands.
Use the *ESE common command to set or query the mask for the
Standard Event Status Register.
The *CLS common command clears all event registers and all queues
excep t the outp ut queue. If *CLS is sent immediately following a p ro-
gram message terminator, the outp ut queue is also cleared. In addition,
the request for the *OPC bit is also cleared.
For example, suppose your application requires an interrupt whenever
any type of error occurs. The error related bits in the Standard Event
Status Register are bits 2 through 5. The sum of the decimal weights of
these bits is 60. Therefore, you can enable any of these bits to generate
the summary bit by sending the
*ESE 60
command.
Whenever an error occurs, it sets one of these bits in the Standard
Event Status Register. Because the bits are all enabled, a summary bit
is generated to set bit 5 in the Status Byte Register.
If bit 5 (ESB) in the Status Byte Register is enabled (via the *SRE
command), an SRQ service request interrup t is sent to the external
computer.
Standard Event Status Register bits that are not enabled still resp ond
to their corresp onding conditions (that is, they are set if the corre-
sp onding event occurs). However, because they are not enabled, they
do not generate a summary bit to the Status Byte Register.
Summary of Contents for 86120C
Page 12: ......
Page 26: ...1 14 Getting Started Returning the Instrument for Service ...
Page 27: ...1 15 Getting Started Returning the Instrument for Service ...
Page 28: ......
Page 96: ...3 18 Programming Monitoring the Instrument ...
Page 128: ...3 50 Programming Lists of Commands ...
Page 236: ...4 108 Programming Commands UNIT Subsystem ...
Page 248: ......
Page 264: ...6 16 Specifications and Regulatory Information Product Overview ...
Page 269: ...7 5 Reference Menu Maps Appl s Menu ...
Page 271: ...7 7 Reference Menu Maps Display List by WL Menu Delta On Menu ...
Page 273: ...7 9 Reference Menu Maps System Print Menu ...
Page 274: ...7 10 Reference Menu Maps System Setup Menu ...
Page 284: ......
Page 292: ......
Page 293: ......