TempScan / MultiScan User's Manual
Chapter 15: Program Examples 255
The following program is
ALARM2.BAS
in the
\EXAMPLES\
subdirectory. It will set up the alarm
system of the MultiScan/1200.
•
Lines 1-3:
Although not necessary, it is good practice to reset the MultiScan/1200 at the start of
your application by sending the
Reset
Power-On
(
*R
) command. Wait a few seconds.
•
Lines 4-8:
To be certain that the reset was successful and the device is ready, Serial Poll the device
until the proper status is returned.
•
Lines 9-10:
The first thing necessary to start scanning is to setup the measuring mode. In this case,
the MultiScan/1200 will be setup for line-cycle integration / high-speed multi-channel mode.
•
Line 11:
The
Configure Channels
(
C
) command will be used once to configure a range of channels
from 1 to 24 as Type T thermocouples, where levels above 18 or below 1 will cause a system
alarm.
•
Line 12:
In addition to causing an internal system alarm state, the alarm conditions can also be
attached to any one of the 32 digital output lines. The
Assign Digital Alarm Output
(
A
) command
will be used to assign input Channels 1 and 2 to digital alarm Output 1 in an
OR
ed fashion.
•
Lines 13-14:
Program for one
Pre-Trigger
scan via the
Set Counts
(
Y
) command. Then program
the
Trigger
(trigger start event) and
Stop
(trigger stop event) via the
Set Trigger Configuration
(
T
)
command to arm the acquisition.
•
Lines 15-36:
The
Set Digital Outputs
(
O
) command
O?
will be used to query the status of the
digital output lines. The alarm state can be detected since digital alarm Output 1 was mapped into
input Channels 1 and 2. This example shows alarm detection handling when two or more channels
have to be muxed into one single digital output bit.
The
User Status
(
U
) command
U11
will be used to show each individual channel alarm status.
Summary of Contents for MultiScan 1200
Page 2: ...TempScan MultiScan User s Manual...
Page 4: ...TempScan MultiScan User s Manual...
Page 10: ...vi TempScan MultiScan User s Manual Notes...
Page 20: ...10 Chapter 1 System Overview TempScan MultiScan User s Manual Notes...
Page 106: ...96 Chapter 8 ChartView ChartView Plus TempScan MultiScan User s Manual Notes...
Page 130: ...120 Chapter 9 TempView TempScan MultiScan User s Manual...
Page 150: ...140 Chapter 9 TempView TempScan MultiScan User s Manual Notes...
Page 166: ...156 Chapter 10 PostView TempScan MultiScan User s Manual Notes...
Page 234: ...224 Chapter 13 System Operation TempScan MultiScan User s Manual Notes...
Page 248: ...238 Chapter 14 System Calibration TempScan MultiScan User s Manual Notes...
Page 284: ...274 Chapter 15 Program Examples TempScan MultiScan User s Manual Notes...
Page 330: ...320 Chapter 16 API Command Reference TempScan MultiScan User s Manual...
Page 342: ...332 Chapter 16 API Command Reference TempScan MultiScan User s Manual...
Page 358: ...348 Appendix TempScan MultiScan User s Manual Notes...
Page 364: ...354 Index TempScan MultiScan User s Manual Notes...