STATus:ALARm[:EVENt]?
STATus:ALARm[:EVENt]?
Syntax
STATus:ALARm[:EVENt]?
Description
This command queries the event register for the Alarm Register group.
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 event register.
- Note that if any of bits 0 through 3 are set, bit 4 will also be set to indicate that the Alarm Queue is not empty.
- Once a bit is set, it remains set until cleared by reading the event register or the *CLS (clear status) command.
| Bit # | Bit Name | Decimal Value | Definition |
|---|---|---|---|
| 0 | Alarm 1 | 1 | An event has occurred on Alarm 1. |
| 1 | Alarm 2 | 2 | An event has occurred on Alarm 2. |
| 2 | Alarm 3 | 4 | An event has occurred on Alarm 3. |
| 3 | Alarm 4 | 8 | An event has occurred on Alarm 4. |
| 4 | Queue Not Empty | 16 | The alarm queue is not empty. |
| 5 | Queue Overflow | 32 |
An alarm queue overflow event has occurred. |
| 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. |
Return Format
The query reads the event 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 bit 1 (decimal value = 2) and bit 2 (decimal value = 4) are set, this command will return +6.
Examples
The following query indicates that alarm events have occurred on alarms 1 and 3.
STAT:ALAR:EVENt?
Typical Response: +5