
150
Chapter 4 Features and Functions
Alarm Limits
Example: Configuring an Alarm on a Digital Input
Assume that you want to generate an alarm when a binary pattern of
“1000” is read on the upper four bits of port 1. Send the following
commands to configure the port for an alarm.
CALC:COMP:TYPE EQUAL,(@301)
CALC:COMP:DATA 128,(@301)
CALC:COMP:MASK 240,(@301)
OUTPUT:ALARM2:SOURCE (@301)
CALC:COMP:STATE ON,(@301)
Here are the calculations used to evaluate the alarm (assume that a
decimal 146 was read from the port):
Since the calculations produce a non-zero result (decimal 16), an
alarm is not generated in this example.
•
Remote Interface Operation
(Totalizer Channel): To assign the alarm
number to report any alarm conditions on the specified totalizer
channels, use the following command.
OUTPut:ALARm[1|2|3|4]:SOURce (@
<ch_list
>)
To configure an alarm on a totalizer channel, specify the desired
count as the upper limit using the following command.
CALCulate:LIMit:UPPer <count>[,(@
<ch_list
>)]
To enable the upper limit on the specified totalizer channel, use the
following command.
CALCulate:LIMit:UPPer:STATe ON [,(@
<ch_list
>)]
A
B
X-OR
0
0
1
1
0
1
0
1
0
1
1
0
A
B
AND
0
0
1
1
0
1
0
1
0
0
0
1
1 0 0 1 0 0 1 0
1 0 0 0 0 0 0 0
0 0 0 1 0 0 1 0
1 1 1 1 0 0 0 0
0 0 0 1 0 0 0 0
Bit 7
Bit 0
Data read from port (decimal 146)
CALC:COMP:DATA
command (decimal 128)
“X-OR” result
CALC:COMP:MASK
command (decimal 240)
“AND” result (no alarm generated)
34970A Refresh UG.book Page 150 Wednesday, February 17, 2010 12:34 PM
Содержание 34970A
Страница 16: ...16 34970A Refresh UG book Page 16 Wednesday February 17 2010 12 34 PM ...
Страница 20: ...34970A Refresh UG book Page 20 Wednesday February 17 2010 12 34 PM ...
Страница 21: ...1 1 Quick Start 34970A Refresh UG book Page 21 Wednesday February 17 2010 12 34 PM ...
Страница 39: ...2 2 Front Panel Overview 34970A Refresh UG book Page 39 Wednesday February 17 2010 12 34 PM ...
Страница 59: ...3 3 System Overview 34970A Refresh UG book Page 59 Wednesday February 17 2010 12 34 PM ...
Страница 87: ...4 4 Features and Functions 34970A Refresh UG book Page 87 Wednesday February 17 2010 12 34 PM ...
Страница 217: ...5 5 Error Messages 34970A Refresh UG book Page 217 Wednesday February 17 2010 12 34 PM ...
Страница 240: ...240 Chapter 5 Error Messages Plug In Module Errors 34970A Refresh UG book Page 240 Wednesday February 17 2010 12 34 PM ...
Страница 241: ...6 6 Application Programs 34970A Refresh UG book Page 241 Wednesday February 17 2010 12 34 PM ...
Страница 254: ...254 34970A Refresh UG book Page 254 Wednesday February 17 2010 12 34 PM ...
Страница 255: ...7 7 Tutorial 34970A Refresh UG book Page 255 Wednesday February 17 2010 12 34 PM ...
Страница 324: ...324 34970A Refresh UG book Page 324 Wednesday February 17 2010 12 34 PM ...