![Fluke 522A/6 Operator'S Manual Download Page 180](http://html1.mh-extra.com/html/fluke/522a-6/522a-6_operators-manual_2310337180.webp)
5522A
Operators Manual
5-38
40 INPUT @6, A% ! RETRIEVE THE REGISTER CONTENTS
50 PRINT “SRE = “;A%
60 RETURN
The following BASIC program generates an error and checks the Serial Poll Status Byte.
Enable the EAV bit with the example above.
10 ! THIS PROGRAM GENERATES AN ERROR AND CHECKS IT
20 PRINT @6, “OUT 1300V” ! 1300V IS OUT OF 5522A RANGE
30 A% = SPL(6) ! DO A SERIAL POLL
40 IF ((A% AND 72%)=0%)THEN PRINT “EAV and RQS should have been set”
50 PRINT @6, “*STB?” ! RETRIEVE BYTE
60 INPUT @6, A%
70 IF ((A% AND 8%)=0%) THEN PRINT “EAV should have been set”
Event Status Register (ESR)
The Event Status Register is a two-byte register in which the higher eight bits are always
0, and the lower eight bits represent various conditions of the Calibrator. The ESR is
cleared (set to 0) when the power is turned on, and every time it is read.
Many of the remote commands require parameters. Improper use of parameters causes
command errors to occur. When a command error occurs, bit CME (5) in the Event
Status Register (ESR) goes to 1 (if enabled in ESE register), and the error is logged in the
error queue.
Event Status Enable (ESE) Register
A mask register called the Event Status Enable register (ESE) allows the controller to
enable or mask (disable) each bit in the ESR. When a bit in the ESE is 1, the
corresponding bit in the ESR is enabled. When any enabled bit in the ESR is 1, the ESB
bit in the Serial Poll Status Byte also goes to 1. The ESR bit stays 1 until the controller
reads the ESR or does a device clear, a selected device clear, or sends the reset or
*CLS
command to the Calibrator. The ESE is cleared (set to 0) when the power is turned on.
Bit Assignments for the ESR and ESE
The bits in the Event Status Register (ESR) and Event Status Enable register (ESE) are
assigned as shown in Figure 5-10.
Summary of Contents for 522A/6
Page 4: ......
Page 14: ...5522A Operators Manual x...
Page 18: ...5522A Operators Manual xiv...
Page 22: ...5522A Operators Manual 1 2...
Page 46: ...5522A Operators Manual 1 26...
Page 48: ...5522A Operators Manual 2 2...
Page 54: ...5522A Operators Manual 2 8...
Page 56: ...5522A Operators Manual 3 2...
Page 190: ...5522A Operators Manual 6 2...
Page 240: ...5522A Operators Manual 7 2...
Page 260: ...5522A Operators Manual 8 2...
Page 314: ...5522A Operators Manual 9 52...
Page 370: ...5522A Operators Manual 10 56...
Page 413: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes...
Page 414: ...5522A Operators Manual B 2...
Page 416: ...5522A Operators Manual B 4...