Set scan alarm stamping – Measurement Computing TempScan/1100 User Manual
Page 220

A-24 API Command Reference
889897
TempScan / MultiScan User’s Manual
A#
- Set Scan Alarm Stamping
TYPE
System
EXECUTION
Deferred
SYNTAX
A#state
Specify whether or not scan alarm stamping will be enabled. Valid options for
state
are:
0
- Disable scan alarm stamping (default), and
1
- Enable scan
alarm stamping.
DESCRIPTION
The Set Scan Alarm Stamping (
A#
) command, when enabled, is used to stamp the alarm states of the 32 digital
alarm outputs to the end of each scan as the scans occur in real time. The alarm status consists of 32 bits,
grouped into four 8-bit bytes: Bits 07-00, 15-08, 23-16, and 31-24. Each of these 32 bits is identified with a
1
signifying alarm on, or a
0
signifying alarm off.
In the following data formats, the alarm status will be stamped to each scan in the corresponding patterns:
•
Binary Low-High-Byte format: Four 8-bit Bytes 1 through 4, where:
Byte 1: Bits 07 through 00.
Byte 2: Bits 15 through 08.
Byte 3: Bits 23 through 16.
Byte 4: Bits 31 through 24.
•
Binary High-Low-Byte format: Four 8-bit Bytes 1 through 4, where:
Byte 1: Bits 15 through 08.
Byte 2: Bits 07 through 00.
Byte 3: Bits 31 through 24.
Byte 4: Bits 23 through 16.
•
ASCII format: Four 8-bit bytes in Binary format converted to twelve bytes in printable ASCII format:
TwwwTxxxTyyyTzzz
, where:
T
= User terminator.
www
= Three-digit decimal value of Bits 07 through 00.
xxx
= Three-digit decimal value of Bits 15 through 08.
yyy
= Three-digit decimal value of Bits 23 through 16.
zzz
= Three-digit decimal value of Bits 31 through 24.
For more information on alarm stamping, see section Stamping Configuration in the section System
Configuration.
Note: In an 8-bit byte, Bits 00 through 07 correspond to digital input/output (DIO) lines 1 through 8. Also, Bit n
corresponds to the decimal value 2^n (where n is an integer from 00 to 07).
Note: With MultiScan/1200 only, alarm stamping is not valid in single-channel high-speed burst mode, since
alarms are not monitored.
Note: If digital input stamping has also been enabled via the Set Digital Input Stamping (
I#
) command, then the
digital input states will be stamped after the scan alarm output states have been stamped.
Note: Data in Binary format is not printable. The Binary data must be converted to ASCII format for printability.
EXAMPLE
PRINT#1,"OUTPUT07;A#1X"
‘ Enable scan alarm stamping
PRINT#1,"OUTPUT07;A#0X"
‘ Disable scan alarm stamping