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
Summary of Contents for 8920B
Page 10: ...10 ...
Page 16: ...Contents 16 9 Error Messages Index 673 ...
Page 17: ...17 1 Using HP IB ...
Page 48: ...48 Chapter 1 Using HP IB Remote Local Modes ...
Page 49: ...49 2 Methods For Reading Measurement Results ...
Page 61: ...61 3 HP IB Command Guidelines ...
Page 84: ...84 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Page 85: ...85 4 HP IB Commands ...
Page 90: ...90 Adjacent Channel Power ACP ...
Page 116: ...116 Configure I O Configure ...
Page 156: ...156 Call Processing ...
Page 185: ...185 System System SYSTem ERRor Returns integer value quoted string ...
Page 242: ...242 Common Command Descriptions ...
Page 251: ...251 5 Advanced Operations ...
Page 377: ...377 7 IBASIC Controller ...
Page 458: ...458 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Page 640: ...640 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Page 643: ...643 9 Error Messages ...
Page 672: ...672 ...
Page 682: ...Index 682 ...