![HP 8920B Скачать руководство пользователя страница 281](http://html.mh-extra.com/html/hp/8920b/8920b_programmers-manual_166189281.webp)
281
Chapter 5, Advanced Operations
Status Reporting
Writing the Enable Register
Syntax
*ESE <integer>
Example
OUTPUT 714;"*ESE 255"
The *ESE command sets the bit pattern (bits 0 through 7) of the Standard Event
Status Enable Register. The Standard Event Status Enable Register allows the
programmer to indicate the occurrence of one or more events (as defined by bits 0
through 7 of the Standard Event Status Register) in bit 5 of the Status Byte
Register.
The bit pattern set by the *ESE command is determined by selecting the desired
event(s) from the Standard Event Status Register, setting the value of the bit
position(s) to a logical one, setting the value of all non-selected bit positions to a
logical zero, and sending the binary-weighted decimal equivalent of bits 0 through
7 after the *ESE command. For example, if the programmer wished to have the
occurrence of a Command Error (bit position 5 in the Standard Event Status
Register) and the occurrence of a Query Error (bit position 2 in the Standard Event
Status Register) to be reflected in bit 5 of the Status Byte Register, the binary-
weighted decimal value of the bit pattern for the Standard Event Status Enable
Register would be determined as follows:
Example
OUTPUT 714;"*ESE 36"
The decimal value of the bit pattern must be a positive integer in the range of 0 to
255. Sending a negative number or a number greater than 255 causes an
HP-IB Error: -222 Data out of range
.
Clearing the Enable Register
The ENABLE register is cleared by writing to it with an integer value of zero.
Bit Position
7
6
5
4
3
2
1
0
Logical Value
0
0
1
0
0
1
0
0
Binary
Weighting
128
64
32
16
8
4
2
1
Decimal Value
0
+0
+32
+0
+0
+4
+0
+0
= 36
Содержание 8920B
Страница 10: ...10 ...
Страница 16: ...Contents 16 9 Error Messages Index 673 ...
Страница 17: ...17 1 Using HP IB ...
Страница 48: ...48 Chapter 1 Using HP IB Remote Local Modes ...
Страница 49: ...49 2 Methods For Reading Measurement Results ...
Страница 61: ...61 3 HP IB Command Guidelines ...
Страница 84: ...84 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Страница 85: ...85 4 HP IB Commands ...
Страница 90: ...90 Adjacent Channel Power ACP ...
Страница 116: ...116 Configure I O Configure ...
Страница 156: ...156 Call Processing ...
Страница 162: ...162 Display DISPlay space TDMA test TESTs TFReq THLP TIBasic TMAKe TPARm TPRint TSEQn TSPec Returns current screen TX ...
Страница 185: ...185 System System SYSTem ERRor Returns integer value quoted string ...
Страница 242: ...242 Common Command Descriptions ...
Страница 251: ...251 5 Advanced Operations ...
Страница 377: ...377 7 IBASIC Controller ...
Страница 458: ...458 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Страница 640: ...640 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Страница 643: ...643 9 Error Messages ...
Страница 672: ...672 ...
Страница 682: ...Index 682 ...