EasyManuals Logo

HP 34970A User Manual

HP 34970A
429 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #131 background imageLoading...
Page #131 background image
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):
Bit 7 Bit 0
10010010 Data read from port (decimal 146)
10000000 CALC:COMP:DATA command (decimal 128)
00010010 “X-OR” result
11110000 CALC:COMP:MASK command (decimal 240)
00010000 “AND” result (no alarm generated)
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>)]
ABX-OR
0
0
1
1
0
1
0
1
0
1
1
0
ABAND
0
0
1
1
0
1
0
1
0
0
0
1
Chapter 4 Features and Functions
Alarm Limits
132

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 34970A and is the answer not in the manual?

HP 34970A Specifications

General IconGeneral
BrandHP
Model34970A
CategorySwitch
LanguageEnglish

Related product manuals