Using Status Reporting Registers - Omega Engineering OMB-CHARTSCAN 1400 User Manual

Portable data recorder
Table of Contents

Advertisement

Appendix C
The ESB in the Serial Poll Status Register is also cleared by these operations. The Command Error, Execution
Error and Device Dependent Error are also cleared with an Error Query (E?) command.
Bit Location
Description
Alarm
DI01
Trigger
DI02
Detected
Ready
DI03
DI04
Scan
Available
Message
DI05
Available
(MAV)
Event Status
DI06
Register Bit
(ESB)
Service
DI07
Request Bit
(SRQ)
Buffer
DI08
Overrun

Using Status Reporting Registers

As mentioned earlier the status reporting registers are organized in a hierarchical structure with the lower level
registers containing more general information and the higher level registers containing more detailed
information about particular events. In general, the lowest level register, the Status Byte Register (STB)
contains information that may require more immediate action from the controller in that events contained in this
register tend to be more time critical.
However, as mentioned earlier, other registers may access the STB via the ESB bit. This allows any condition
within the status reporting register hierarchy to have access to the STB and therefore Serial Poll and Service
Request functionality. The following is an example to show, in brief, how the status reporting register hierarchy
works. Notice that the clearing of the higher level registers cleared the bits in the lower level registers that were
associated with the root cause of the condition.
PRINT#1,"OUTPUT07; N0 X N16 X"
PRINT#1,"OUTPUT07; M0 X M32 X"
A Device Dependent Error will now cause ChartScan to 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.
PRINT#1,"OUTPUT07;E?X"
PRINT#1,"ENTER07;
INPUT A$
PRINT A$
PRINT#1,"OUTPUT07;U2X"
PRINT#1,"ENTER07;
INPUT A$
PRINT#1,"OUTPUT07;U0X"
PRINT#1,"ENTER07;
INPUT A$
PRINT A$
PRINT#1,"SPOLL07
ChartScan User's Manual
Set, Clear and Descriptive Information
Set when the acquisition system has sensed a valid alarm condition. The alarm is cleared when
the alarm condition no longer exists.
Set when the acquisition system has detected the trigger condition and will be cleared when the
acquisition is complete or the trigger has been reconfigured.
Set when the acquisition system is ready to process another command. It is cleared when the
system is processing a command line. This bit should be examined with a serial poll prior to
issuing a new command line. This allows any detected errors to be traced to the specific
command line containing the error. If all the setup information for the operation of a specific
acquisition system is included in one line, this bit also indicates when all processing is done and
the X command is completed. This ensures that the acquisition system is done processing all
state changes before initiating any further activity.
Set when at least 1 acquisition scan is available in the acquisition buffer to be read. Cleared
when there are no scans available in the buffer to be read.
Set when the output queue is not empty. It is cleared when the output queue is empty. This bit
reflects whether any command responses are still in the output queue.
Reflects the logical OR of all the bits in the Event Status Register (ESR) ANDed with their
equivalent enable bits in the Event Status Enable (ESE) register. If this bit is set, at least one bit
in the ESR is set and has its corresponding enable bit in the ESE set. The status command U0
can be issued to read the ESR. See the following for more information on ESR and ESE.
Set when the acquisition system is requesting service. It is cleared when an SPOLL is performed.
Set if a buffer overrun occurs. It is cleared when the buffer becomes empty by either reading out
the contents of the buffer or performing a Reset (*B) of the buffer.
' Configure ESB in the STB to be set when a Device
Dependent Error occurs.
' Configure SRQ when the ESB in the STB occurs.
' Query the ESC to determine the cause of the error
' Get the response
' Screen shows E016.This is a calibration error
' Query the CSR to determine the cause of the ' calibration error
' Get the response
' Screen shows E002. This is a calibration Gain error
' Now query the ESR (reading ESC should have cleared it)
' Get the response
' Screen shows 000 — Device Dependent Error no longer there
' Screen shows 4 — ESB bit no longer set (only Ready is set).
Registers, Data Formats, & Queries
C-17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-chartscan-1400

Table of Contents