
5790A
Operators Manual
5-18
7
6
5
4
3
2
1
0
RID
RQS
MSS
ESB
MAV
EAV
ISCB
0
0
RID
Remote idle. Set to 1 when the remote interface is waiting for input.
RQS Requesting service. The RQS bit is set to 1 whenever bits ESB, MAV, EAV, or ISCB change from 0
to 1 and are enabled (1) in the SRE. When RQS is 1, the 5790A asserts the SRQ control line on
the IEEE-488 interface. You can do a serial poll to read this bit to see if the 5790A is the source of
an SRQ.
MSS Master summary status. Set to 1 whenever bits ESB, MAV, EAV, or ISCB are 1 and enabled (1) in
the SRE. Thi s bit can be read using the *STB? command in serial remote control in place of doing
a serial poll.
ESB Set to 1 when one or more enabled ESR bits are 1.
MAV Message available. The MAV bit is set to 1 whenever data is available in the 5790A's IEEE-488
interface output buffer.
EAV Error available. An error has occurred and an error is available to be read from the error queue by
using the ERR? query.
ISCB One or more enabled ISCR bits are 1.
add48f.eps
Figure 5-2. Status Byte and SRE Bit Definitions
Convert the contents of variables A and B into binary, and you can read the status of the
registers. For example if A is "32", its binary equivalent is: 00000000 00100000.
Therefore, bit 5 (CME) in the ESR is set (1) and the rest of the bits are reset (0). This
means that the 5790A tried to execute an incorrectly formed command.
By setting the bits in the ESE, you can mask (disable) the associated bits in the ESR. For
example, to prevent the occurrence of a command error from causing bit 5 (ESB) in the
serial poll status byte to go to 1, you can reset (to 0) bit 5 in the ESE register. The
following sample program accomplishes this by checking the status of the CME bit, then
toggling it if it is 1.
10 ! THIS PROGRAM RESETS BIT 5 (CME) IN THE ESE
20 PRINT @6,"*ESE 33" ! INITIAL ESE IS CME + OPC
30 GOSUB 100 ! GET AND PRINT INITIAL ESE
40 IF (A% AND 32%) THEN A% = A% - 32% ! CLEAR CME (BIT 5)
50 PRINT @6, "*ESE ";A% ! LOAD THE ESE WITH THE NEW VALUE
60 GOSUB 100 ! GET AND PRINT NEW ESE
70 END
100 PRINT @6, "*ESE?" ! ASK FOR THE ESE CONTENTS
110 INPUT @6, A% ! RETRIEVE THE REGISTER CONTENTS
120 PRINT "ESE = ";A%
130 RETURN
Содержание 5790A
Страница 4: ......
Страница 12: ...5790A Operators Manual vi...
Страница 14: ...5790A Operators Manual viii...
Страница 16: ...5790A Operators Manual 1 2...
Страница 34: ...5790A Operators Manual 2 2...
Страница 40: ...5790A Operators Manual 2 8...
Страница 41: ...3 1 Chapter 3 Features Title Page 3 1 Introduction 3 3 3 2 Front Panel Features 3 3 3 3 Rear Panel Features 3 3...
Страница 42: ...5790A Operators Manual 3 2...
Страница 48: ...5790A Operators Manual 3 8...
Страница 108: ...5790A Operators Manual 6 2...
Страница 146: ...5790A Operators Manual 7 2...
Страница 164: ...5790A Operators Manual 7 20...
Страница 166: ...5790A Operators Manual 8 2...
Страница 170: ...5790A Operators Manual 8 6...
Страница 172: ...5790A Operators Manual 9 2...
Страница 176: ...5790A Operators Manual...
Страница 185: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes...
Страница 186: ...5790A Operators Manual B 2...
Страница 187: ...Appendices ASCII and IEEE 488 Bus Codes B B 3...
Страница 188: ...5790A Operators Manual B 4...
Страница 204: ...5790A Operators Manual C 16...
Страница 210: ...5790A Operators Manual D 6...