TempScan / MultiScan User's Manual Chapter 13: System Operation 221
Example 13g. Status-Reporting Register Hierarchy
(1)
PRINT#1, “OUTPUT07;N0 X N8 X”
(2)
PRINT#1, “OUTPUT07;M0 X M32 X”
(3)
PRINT#1, “OUTPUT07;E?X”
(4)
PRINT#1, “ENTER07”
(5)
INPUT A$
E008
(6)
PRINT#1, “OUTPUT07;U2X”
(7)
PRINT#1, “ENTER07”
(8)
INPUT A$
E002
(9)
PRINT#1, “OUTPUT07;U0X”
(10)
PRINT#1, “ENTER07”
(11)
INPUT A$
E000
(12)
PRINT#1, “SPOLL07”
4
The above example demonstrates how the status reporting register hierarchy works. Notice that
clearing of the higher-level registers clears the bits in the lower-level registers that were associated with
the root cause of the condition.
• Line 1: Configure the
ESR Bit 5 (or ESB) in the STB to be set when a Device Dependent Error
occurs.
• Line 2: Configure the Service Request (
SRQ) when the ESB in the STB occurs.
Now the TempScan/1100 or MultiScan/1200 unit is configured so that when any Device Dependent
Error occurs, the unit will issue a Service Request (SRQ) to the controller. When the SRQ occurs, the
controller may perform the following sequence to determine the exact cause of the Service Request.
• Line 3: Query the
ESC to determine the cause of the error.
• Line 4: Get the response.
• Line 5: The screen will show a Calibration Error (Bit 3 value = 2^3 =
008
).
• Line 6: Now, query the
CSR
to determine the specific cause of the Calibration Error.
• Line 7: Get the response.
• Line 8: The screen will show a Calibration Invalid Password Error (Bit 1 value = 2^1 =
002).
• Line 9: Now, query the
ESR. (Reading the ESC should have cleared it.)
• Line 10: Get the response.
• Line 11: The screen will show that the Device Dependent Error is no longer there.
• Line 12: Serial Poll the
STB. The screen will show that the ESB in the STB is no longer set. Only
Ready Bit 2 is set. (Ready Bit 2 value = 2^2 =
004).