STATus:ALARm:CONDition?
STATus:ALARm:CONDition?
Syntax
STATus:ALARm:CONDition?
Description
This command queries the condition register for the Alarm Register group (note that this condition register uses only bit 4). This is a read-only register and the bits are not cleared when you read the register.
Used With:
- 34901A 20 Channel Multiplexer (2/4-wire) Module
- 34902A 16 Channel Multiplexer (2/4-wire) Module
- 34907A Multifunction Module (digital input and totalizer channels only)
- 34908A 40 Channel Single-Ended Multiplexer Module
Remarks
- The following table lists the bit definitions for the alarm enable register.
| Bit # | Bit Name | Decimal Value | Definition |
|---|---|---|---|
| 0-3 | Not Used | 1-8 | 0 is returned. |
| 4 | Queue Not Empty | 16 | The alarm queue is not empty. |
| 5 | Not Used | 32 | 0 is returned. |
| 6 | Alarm 1 | 64 | Alarm 1 is triggered. |
| 7 | Alarm 2 | 128 | Alarm 2 is triggered. |
| 8 | Alarm 3 | 256 | Alarm 3 is triggered. |
| 9 | Alarm 4 | 512 | Alarm 4 is triggered. |
| 10-11 | Not Used | 1024-2048 | 0 is returned. |
| 12 | Lower Limit | 4096 |
A lower limit alarm has occurred. |
| 13 | Upper Limit | 8192 | An upper limit alarm has occurred. |
| 14-15 | Not Used | 16384-32768 | 0 is returned. |
- A Factory Reset (*RST command) will clear the "Queue Empty" bit (bit 4) in the condition register.
Return Format
The query reads the condition register and returns a decimal value which corresponds to the binary-weighted sum of all bits set in the register (see table above). For example, if bits 6 - 8 are set, this command will return +448.
Examples
The following query reads the condition register (bits 6 and 9 are set).
STAT:ALAR:COND?
Typical Response: +576