Appendix A API Command Reference
NetScan Users Manual A-17
A# - Alarm Stamping
TYPE
System
EXECUTION
Immediate
SYNTAX
A#state
Specify whether or not alarm stamping will be enabled. Valid options for
state are: 0 - Disable alarm stamping (default), and 1 - Enable alarm
stamping.
DESCRIPTION
The Alarm Stamping (A#) command (when enabled) will append the alarm state to the end of each scan as it
occurs:
The alarm status consists of 32 bits: A31 through A00, each with a 1 signif ying al arm on, or a 0 signifying alarm
off.
In Binary Low-High mode, 4 bytes will be appended as follows:
Byte 1: A07 - A00
Byte 2: A15 - A08
Byte 3: A23 - A16
Byte 4: A31 - A24
In Binary High-Low mode, 4 bytes will be appended as follows:
Byte 1: A15 - A08
Byte 2: A07 - A00
Byte 3: A31 - A34
Byte 4: A23 - A16
In ASCII mode, 12 bytes will be appended as follows:
DwwwDxxxDyyyDzzz, where:
D = User Terminator
www = Decimal equivalent of A07 - A00
xxx = Decimal equivalent of A15 - A08
yyy = Decimal equivalent of A23 - A16
zzz = Decimal equivalent of A31 - A24
Note: This feature is not available in NetScans high-speed, single-channel mode (burst mode) since alarms are
not monitored.
Note: If Digital Input Stamp (I#) is also enabled, it will be appended after the Alarm Stamp (A#).
EXAMPLE
PRINT#1,"A#1X"
Enable alarm stamping
PRINT#1,"A#0X"
Disable alarm stamping