![Agilent Technologies 86120C Скачать руководство пользователя страница 99](http://html.mh-extra.com/html/agilent-technologies/86120c/86120c_user-manual_2867947099.webp)
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.
Содержание 86120C
Страница 12: ......
Страница 26: ...1 14 Getting Started Returning the Instrument for Service ...
Страница 27: ...1 15 Getting Started Returning the Instrument for Service ...
Страница 28: ......
Страница 96: ...3 18 Programming Monitoring the Instrument ...
Страница 128: ...3 50 Programming Lists of Commands ...
Страница 158: ...4 30 Programming Commands CALCulate1 Subsystem Query Response For normal update 15 047 For fast update 7 525 ...
Страница 236: ...4 108 Programming Commands UNIT Subsystem ...
Страница 248: ......
Страница 262: ...6 14 Specifications and Regulatory Information Declaration of Conformity Declaration of Conformity ...
Страница 264: ...6 16 Specifications and Regulatory Information Product Overview ...
Страница 269: ...7 5 Reference Menu Maps Appl s Menu ...
Страница 271: ...7 7 Reference Menu Maps Display List by WL Menu Delta On Menu ...
Страница 273: ...7 9 Reference Menu Maps System Print Menu ...
Страница 274: ...7 10 Reference Menu Maps System Setup Menu ...
Страница 284: ......
Страница 292: ......
Страница 293: ......