HP (Hewlett-Packard) HP 53131A Water Dispenser User Manual


 
Chapter 3 Programming Your Universal Counter for Remote Operation
How to Program the Counter for Status Reporting
3-38 Programming Guide
How to Program the Counter for Status
Reporting
Determining the Condition of the Counter
The Counter has status registers that are used to indicate its condition. There are
four register groups that can be examined individually, or used to alert a
computer. These registers, shown in Figure 3-6, are:
Operation Status Register Group
Questionable Data/Signal Register Group
Standard Event Status Register Group
Status Byte Register Group
The first three groups all have event registers that can be fed into the Status Byte
Register. The Status Byte Register can be used to assert the SRQ line of the HP-
IB and thus alert the computer that the Counter needs attention. The following
examples show how each of the register groups can be used. (Figure 3-10 is a
flowchart diagram of how to program the Counter for Status Reporting.)
Resetting the Counter and Clearing the HP-IB Interface
Example 1
Before attempting any programming, it is a good idea to set the Counter to a
known state . The following command grouping shows how to reset the Counter.
Before issuing these commands, execute a device clear to reset the interface and
Counter. Consult your interface card s documentation for how to issue a device
clear since the device clear command will be specific to the interface you are
using. Perform the following:
1. Issue a Device Clear (See your computer or interface card documentation
for how to issue this command).
2. Issue the following commands:
*RST
*CLS
*SRE 0
*ESE 0
:STAT:PRES