It Alarms and Events
It Alarms and Events
It Alarms and Events
10/3/13
All rights reserved. No part of this documentation shall be reproduced, stored in a retrieval system, or
transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without the
prior written permission of Invensys Systems, Inc. No copyright or patent liability is assumed with respect
to the use of the information contained herein. Although every precaution has been taken in the
preparation of this documentation, the publisher and the author assume no responsibility for errors or
omissions. Neither is any liability assumed for damages resulting from the use of the information
contained herein.
The information in this documentation is subject to change without notice and does not represent a
commitment on the part of Invensys Systems, Inc. The software described in this documentation is
furnished under a license or nondisclosure agreement. This software may be used or copied only in
accordance with the terms of these agreements.
Contents
Welcome .................................................. 15
Documentation Conventions ......................................................... 15
Technical Support .......................................................................... 16
Chapter 1
18
19
20
20
20
21
22
22
23
24
26
27
28
29
30
31
Contents
Chapter 2
Configuring Alarms..................................... 33
Defining Alarm Hierarchies ..........................................................
Creating an Alarm Group ...........................................................
Modifying an Alarm Group .........................................................
Deleting an Alarm Group ...........................................................
Configuring Tags with Alarm Conditions .....................................
Configuring Discrete Alarms ......................................................
Configuring Value Alarms ..........................................................
Configuring Deviation Alarms ...................................................
Configuring Rate of Change Alarms ..........................................
Disabling Alarms .........................................................................
Inhibiting Alarms ........................................................................
Setting Event Properties for Individual Tags ..............................
Configuring Global Settings for Alarms and Events ...................
Configuring the Alarm Buffer Size ............................................
Enabling Events ..........................................................................
Making Alarm Enabling Retentive ............................................
Creating an Alarm Group List File ...............................................
Chapter 3
33
33
35
36
37
37
38
40
41
42
43
44
45
45
46
47
48
Chapter 4
56
56
60
60
63
66
67
68
69
71
72
74
74
77
82
83
84
Contents5
Chapter 5
Chapter 6
106
106
106
107
108
109
109
111
113
114
115
116
116
117
118
119
127
127
128
129
130
130
131
Contents
132
133
134
135
136
137
138
139
140
141
141
142
143
143
144
145
146
147
147
149
151
153
155
157
159
161
163
165
165
166
167
167
168
169
170
171
172
172
173
174
174
Contents7
Chapter 7
175
175
176
178
178
179
180
181
182
183
184
185
186
187
187
188
189
190
191
192
193
193
194
198
198
201
201
203
204
206
206
207
208
208
209
210
211
211
216
Contents
Chapter 8
219
Chapter 9
217
218
219
222
222
227
228
233
234
235
236
237
237
238
242
248
252
254
258
260
260
261
261
262
263
265
266
266
267
269
270
273
274
274
Contents9
Chapter 10
278
278
279
280
281
281
284
286
288
290
295
297
297
298
298
298
299
299
300
300
301
301
302
302
303
303
304
304
304
305
305
306
306
306
307
307
308
10 Contents
308
308
309
309
310
310
311
311
312
312
312
313
313
314
314
314
315
315
316
316
317
317
317
318
318
318
319
319
320
320
320
321
321
322
322
323
323
323
324
324
325
325
326
Contents11
Chapter 11
326
327
327
328
328
329
329
329
330
331
332
333
335
335
335
336
336
339
340
341
344
344
345
348
352
352
353
353
356
356
356
357
360
360
360
12 Contents
Chapter 12
Chapter 13
Chapter 14
364
364
365
366
368
369
371
372
373
374
376
380
381
382
382
382
383
385
387
392
393
397
398
Appendix A
407
408
408
409
409
411
Contents13
Appendix B
412
413
415
416
417
418
420
421
421
422
422
422
422
423
424
427
427
427
434
439
453
455
460
462
471
474
479
Index..................................................... 485
14 Contents
15
Welcome
Documentation Conventions
This documentation uses the following conventions:
Convention
Used for
Initial Capitals
Bold
Monospace
16
Welcome
Technical Support
Wonderware Technical Support offers a variety of support options to
answer any questions on Wonderware products and their
implementation.
Before you contact Technical Support, refer to the relevant section(s)
in this documentation for a possible solution to the problem. If you
need to contact technical support for help, have the following
information ready:
The type and version of the operating system you are using.
Details of how to recreate the problem.
The exact wording of the error messages you saw.
Any relevant output listing from the Log Viewer or any other
diagnostic applications.
Details of what you did to try to solve the problem(s) and your
results.
17
Chapter 1
Overview of Alarms and
Events
You can create InTouch applications that generate alarms and events
to notify operators about the status of process activity.
The following figure shows how the InTouch HMI handles alarms and
events while an application is running. Alarm and event data is saved
to the alarm database.
Running Physical Process
HiHi Alarm
InTouch
Client
90
Alarm
Provider
HiHi Alarm
Alarm
Ack
Running InTouch
Application
Alarm Records
Log On Event
Event
Records
Alarm Database
You can configure any tag for event monitoring. An event message is
logged to the alarm system each time the tag value changes. The event
message includes how the value changed and whether the operator,
I/O, scripts, or the system initiated the change.
Condition
ACK
ALM
RTN
Alarm Priorities
You assign a level of priority, or severity, to an alarm. A boiler
temperature limit, for example, would require a high-priority alarm,
requiring immediate attention. An end of a shift alarm is a much less
severe. The alarm priority usually depends upon the
circumstancesthe factory application, the nature of the equipment,
safety, availability of backup systems, potential costs of damage, or
downtime.
You assign an alarm priority when you define a tag. The priority can
range from 1 to 999, with 1 being the most severe.
You can designate a range of alarm priorities to represent a
classification of alarms. For example, if a process requires four levels
of severity, you can create four priority ranges.
Alarm Severity
Priority Range
Critical
1 249
Major
250 499
Minor
500 749
Informational
750 999
Ranges are useful for alarm filtering. For example, you can configure
an alarm display to filter out all but the critical alarms. You can create
animation links, acknowledgment scripts, and filtered viewing and
printing, all based on the alarm priority range.
Alarm Sub-States
A multi-state alarm includes a range of alarm sub-conditions.
For example, an analog alarm typically has several limits.
A High and Low threshold set the boundaries for the normal
operating range.
HiHi and LoLo limits mark the extreme deviations from the
normal range of values.
A boiler temperature level can be in the alarmed condition for any one
of these sub-states. The boiler temperature can also transition
between any two sub-states while continuing to remain in the overall
alarmed condition.
Alarm Acknowledgement
When an alarm occurs, the run time operator (or system) must
acknowledge the alarm. Acknowledgement merely indicates that
someone is aware of the alarm. This is separate from taking corrective
action, which might not happen right away. It is also separate from
whether the alarm condition returns to normalwhich it might do on
its own, even without any external intervention.
A high or medium priority alarm usually requires immediate
acknowledgment, while a very low-priority alarm might not. Although
the condition that generated the alarm may go away (for example, a
temperature rises too high and then becomes lower again), the alarm
itself is not considered resolved until it is acknowledged.
Alarm Groups
You can group alarms to make tracking and management easier.
Alarm groups are logical representations of different areas of a factory,
pieces of equipment, operator responsibility, or a manufacturing
process.
For example, the following figure shows a three-tier alarm group
hierarchy for a tank farm application.
$System
TnkFrm1
F1Tk1Lvl
TnkFrm2
F2Tk1Lvl
F2Tk2Lvl
TnkFrm3
F3Tk1Lvl
F3Tk2Lvl
Alarm groups are useful for filtering in alarm displays, alarm printers,
and acknowledgment scripts.
Every tag is associated with an alarm group. By default, tags are
assigned to main $System group. You can create a hierarchy of
additional alarm groups under the $System group, up to a maximum
of 32 levels.
You create alarm groups and associate tags with them while you are
defining your tags in the Tagname Dictionary.
Alarm groups and group variables are not compatible with
SmartSymbols. You can't use references to alarm groups or group
variables in a SmartSymbol.
Condition
OPR
LGC
DDE
PROT
Event
Condition
SYS
USER
$Operator changed.
The SYS and USER events are generated by the system regardless of
whether event logging is enabled for any tags. DDE, OPR, and LGC
events relate to tag values and are only generated for tags that have
event logging enabled.
Distributed
Class
Distributed
Type
Discrete
DSC
DSC
Value - LoLo
VALUE
LOLO
Value - Low
VALUE
LO
Value - High
VALUE
HI
Value - HiHi
VALUE
HIHI
Deviation - Major
DEV
MAJDEV
Deviation - Minor
DEV
MINDEV
Rate-of-Change
ROC
ROC
SPC
SPC
SPC
You associate each InTouch tag with an alarm condition when you
define the tag. Depending upon a tags type, you can define one or
more of the alarm classes or types for it.
Discrete Alarms
A discrete alarm corresponds to a discrete tag with two possible states.
When you create a discrete tag, you configure whether the alarmed
state corresponds to the true or false state of the tag.
Analog Alarms
An analog alarm corresponds to an analog tag, which is associated
with an integer or real number. Within the analog alarm type, there
are several sub-types: value, deviation, and rate-of-change.
Value Alarms
The current tag value is compared to one or more predetermined
limits. If the value exceeds the limit, the alarmed state is declared.
You can individually configure values and priorities for the LoLo
limit, Lo limit, Hi limit, and HiHi limit, and indicate whether or
not each limit is to be used.
Lo Alarm Level
Hi Alarm Level
10
20
Deviation Alarms
The current tag value is compared to a target value, and then the
absolute value of the difference is compared to one or more limits,
expressed as a percent of the range of the tag value.
10% Minor
Deviation
Target 50%
No Alarm
20% Major
Deviation
60
70
50
You can individually configure values and priorities for the minor
deviation limit and the major deviation limit, and indicate whether or
not each limit is to be used. You can also configure a value for a
deviation deadband, also expressed as a percent of the tag's range.
This controls the percentage (of the total range) that the tag value
must change before it is evaluated to be in alarm.
For example, you configure limits as follows:
Range of 0 to 100
Target of 50
InTouch HMI Alarms and Events Guide
Deadband of 10 percent
If the tag value is 39, a minor deviation alarm occurs. However, the
value must change at least to 50 (40 plus the deadband of 10) before
the alarm is evaluated and cleared.
If the tag value is 72, a major deviation alarm occurs. The value drop
to at least 61 before the alarm is cleared.
15:06:25
40
You can configure the value and priority for the ROC limit, and
whether or not the limit is to be used. The limit is expressed as a
percentage of the tags value range over a time interval - which can be
per second, per minute, or per hour.
Alarm DB View
control
Alarm Pareto
control
Alarm Viewer
control
Alarm Manager
Current Alarms
(Summary)
Alarm DB Logger
alarm database
historical
alarms
Alarms and Events
(Historical)
Smart Cache
(buffer)
alarm memory
Alarm Printer
.txt
.txt
.txt
Run time operators can use the Distributed Alarm system to:
Time stamps the alarm at the time the alarm occurs, not when the
consumer receives the alarm. The time stamp includes
milliseconds.
Alarm Provider
An alarm provider:
Alarm Consumer
An alarm consumer:
The following figure shows an alarm group list that combines alarm
groups from three nodes. The alarm group list is defined locally on
NodeC. The remaining alarm groups are from remote nodes.
Alarm Group List
\\NodeA\InTouch!TnkFrm1
Remote
Remote
\\NodeB\InTouch!TnkFrm2
\InTouch!TnkFrm3
Local
NodeA
NodeB
NodeC
TnkFrm1
TnkFrm2
TnkFrm3
F1Tk1Lvl
Alarm
Storage
F2Tk1Lvl
F2Tk2Lvl
Alarm
Storage
F3Tk1Lvl
F3Tk2Lvl
Alarm
Storage
Alarm database
33
Chapter 2
Configuring Alarms
TnkFrm1
F1Tk1Lvl
TnkFrm2
F2Tk1Lvl
F2Tk2Lvl
TnkFrm3
F3Tk1Lvl
F3Tk2Lvl
In the Group Name box, type a name for the new alarm group.
Select a new parent group from the list and click Close.
Click Close.
Rename it.
Change the associated comment.
Reassign it to another group.
Select a new parent group from the list and click Close.
Click OK.
Select the alarm group and click Delete. When a message appears,
click Yes.
Click Close.
Click either Alarms or Details & Alarms at the top of the Tagname
Dictionary dialog box to show the discrete alarm details dialog box.
Note: The Alarm Comment box should not contain the double-quote
character ("). A process that uses the double-quote as a delimiter will
fail if it is fetching an alarm comment that includes a double-quote.
6
In the Alarm State area, select the active alarm state to be the
discrete tags On or Off value.
In the Alarm Inhibitor box, click the button to show the Select
Tag dialog box containing a list of defined tags.
Select a tag from the list and click OK. The name of the tag you
selected as the inhibitor tag appears in the Alarm Inhibitor
box.
Click Save.
Click either Alarms or Details & Alarms at the top of the Tagname
Dictionary dialog box to show the alarm details dialog box.
Note: The Alarm Comment box should not contain the double-quote
character ("). A process that uses the double-quote as a delimiter will
fail if it is fetching an alarm comment that includes a double-quote.
6
Select the alarm types (LoLo, Low, High, HiHi) to detect when the
value of the tag is beyond an absolute limit.
In the Alarm Value boxes, type the limit values for the alarm
types.
For example, in the case of LoLo and Low alarms, an alarm
condition exists whenever the value of the tag is less than the
Alarm Value. In the case of High and HiHi alarms, an alarm occurs
whenever the value of the tag exceeds the Alarm Value. You can
use real numbers for the limits.
Optionally assign an alarm inhibitor tag for the tags alarm types
(LoLo, Low, High, HiHi).
a
In the Alarm Inhibitor area, click the button to show the Select
Tag dialog box containing a list of defined tags.
Select a tag from the list and click OK. The name of the tag you
selected as the inhibitor tag appears in the Alarm Inhibitor
box.
Multiply the total value range of the tag by minor and major
deviation percentages.
2000 x 0.10 = 200 = minor deviation limit
2000 x 0.15 = 300 = major deviation limit
Add and subtract the minor and major deviation limits from the
target value.
500 - 200 = 300 = minor deviation lower limit
500 + 200 = 700 = minor deviation upper limit
500 - 300 = 200 = Major deviation lower limit
500 + 300 = 800 = Major deviation upper limit
Click either Alarms or Details & Alarms at the top of the Tagname
Dictionary dialog box to show the alarm details dialog box.
Select the deviation (Minor and Major Deviation) alarm types you
want to use to detect when the value of an analog type tag is in a
major or minor deviation from the specified target value.
In the %Deviation box, type the percentage that the analog tag
can deviate from the target value to trigger a minor or major
deviation alarm condition. It is expressed as a percentage of the
range of the tag. For an I/O tag, the Min EU and Max EU values
entered in the tag's details dialog box define the range. For
memory tags, the range is defined by the minimum value and
maximum value.
In the Target box, type the tag reference value that minor and
major deviation percentages are based.
Click Save.
Click either Alarms or Details & Alarms at the top of the Tagname
Dictionary dialog box to show the alarm details dialog box. The
following figure shows only those options that apply to
rate-of-change alarms.
In the Priority box, type a number between 1 and 999 to set the
alarm priority.
In the Alarm Inhibitor area, click the button to show the Select
Tag dialog box containing a list of defined tags.
Select a tag from the list and click OK. The name of the tag you
selected as the inhibitor tag appears in the Alarm Inhibitor
box.
Click Save.
Disabling Alarms
You can disable or enable all alarms of a tag at once using the
.AlarmEnabled or AlarmDisabled dotfields. For an alarm that has
sub-states, each sub-state can be individually disabled. For example,
an analog value alarm can have Hi enabled and HiHi disabled.
During run time, the Alarm Provider does not generate alarms for an
alarm or sub-state that is disabled. Changes to whether an alarm is
disabled or enabled can be made at run time.
Whenever an alarm transitions from disabled to enabled, the checking
logic determines whether the item should be put in the alarmed state
by the Alarm Provider.
If an alarm becomes disabled or actively inhibited while the item is in
an alarmed state, the item will be forced to a different (valid) state.
What that state should be depends upon which states are available
and whether they have also been disabled. This activity is handled by
the Alarm Provider according to the type of alarm and limit values.
Inhibiting Alarms
You can optionally assign to each alarm or alarm sub-state an
inhibitor alarm tag that prevents the alarm from transitioning into an
active state.
Use the following read-only tag dotfields to get the name of the alarm
inhibitor tag:
AlarmDscInhibitor
AlarmLoLoInhibitor
AlarmLoInhibitor
AlarmHiHiInhibitor
AlarmHiInhibitor
AlarmMajDevInhibitor
AlarmMinDevInhibitor
AlarmRocInhibitor
These fields return the name of a tag. Therefore, you can use the name
in an indirect tag reference in an InTouch QuickScript to find out the
current value of the alarm inhibitor tag, or to change the value of the
alarm inhibitor tag. By doing this, you can force groups of alarms to be
enabled or actively inhibited during run time.
Select an existing tag or create a new tag associated with data that
will be recorded as an event.
Select Log Events. The Priority box becomes available. The value
you enter for the Priority determines the event priority level for the
tag.
Click Save.
Event logging.
Whether alarm enabling is retentive when WindowViewer is
restarted.
In the Alarm Buffer Size box, type the maximum number of alarm
entries that can be stored in the memory alarm buffer for summary
or historical queries.
Click OK.
Enabling Events
You can enable events to be logged within the application. An event
represents a recognized change in application data resulting from an
operator action, QuickScript, or I/O.
A tags Log Events property must be set from the Tagname Dictionary
before the tags associated events are stored in the internal alarm
memory or logged to the alarm database. For more information about
specifying event logging for a tag, see "Setting Event Properties for
Individual Tags" on page 44.
To enable events
1
Select the Events Enabled check box to log all events that occur
while an InTouch application is running.
Click OK.
Select the Alarm Enable Retentive check box to retain the current
state of the .AlarmEnabled dotfield as the initial value when the
InTouch application re-started.
Click OK.
Local
\InTouch!Group_Name
or
.Group_Name
Remote
\\Node_Name\InTouch!Group_Name
or
Node_Name.Group_Name
In the Group Properties area, type the name of the alarm query in
the Name box.
In the Members box, type the list of InTouch nodes and alarm
groups to be included in the query.
You can enter the node names and alarm group names using
Standard Group Entry syntax or as short cut entries using periods.
Short cut entries are converted to Standard Group Entries when
you save the alarm group list.
Note: The Node.Group and .Group syntax can be used only in this
configuration dialog box. It is not valid in the alarm display
configuration or any alarm QuickScript function.
4
Click OK.
51
Chapter 3
Alarm Queries
In this example, you create an alarm display that shows alarm data
selected by the following criteria:
You build your queries by selecting alarm or event attributes from the
list shown in the left pane of the dialog box. Then, you assign a value
to the selected attributes. Finally, you can combine attributes using
Boolean operators to set your query filter conditions.
You can write QuickScripts that include query functions or dotfields to
select alarm and event records from alarm memory. The following
Alarm Viewer control statement uses the ApplyQuery() method to
query the alarm memory.
#AlarmViewerCtrl1.ApplyQuery ("\InTouch!$System",500,600,"All",
"Historical");
See
Alarm DB Logger
Manager
Distributed Alarm
Display Object
55
Chapter 4
Viewing Current Alarms
Use the InTouch Alarm Viewer ActiveX control to view alarms. The
Alarm Viewer control has scroll bars, sizable columns, multiple alarm
selections, an update status bar, dynamic display types, and show
colors based on the type of alarm.
We recommend that you use the Alarm Viewer control to view InTouch
alarms. However, you can continue to use the Distributed Alarm object
to view alarms from applications created with versions of InTouch
earlier than 7.1.
Include a run-time option that allows the user to adjust the width
of columns.
The following figure shows how the Alarm Viewer control appears
when all visual properties are active.
Heading
Status Bar
Grid Lines
Description
Perform Query
on Startup
Show Context
Sensitive Menu
Option
Description
Retain
Suppression
Show Status
Bar
Row Selection
Silent Mode
Show Message
Show Heading
Use Extended
Selection
Flash Unack
Alarms
Option
Description
Resize Columns
Show Grid
Click Apply.
Click OK.
Click OK.
In the Name column, select the check boxes next to the names of
the columns that you want to appear. You must select at least one
column from the list.
Column
Shows
Time
State
Class
Type
Priority
Name
The tagname.
Group
Provider
Value
Limit
Operator
Operator Full
Name
Column
Shows
Operator
Node
Operator
Domain
Tag Comment
Alarm
Comment
User1
User2
User3
To change the name of a column or its width, select the column and
click Edit. The Edit dialog box appears.
In the New Width box, type the column width. The column
width can range from 1 to 999 pixels.
Click OK.
Click Apply.
You can control which menu commands are shown in the shortcut
menu.
To configure the shortcut menu
1
Configure the shortcut menu options. You must select at least one
shortcut menu command.
This command
Ack Selected
Ack Others
Ack All
Ack Visible
Ack Selected
Groups
Ack Selected
Tags
Ack Selected
Priorities
Suppress
Selected
Suppress
Others
Suppress All
Suppress
Visible
Suppress
Selected Groups
Suppress
Selected Tags
Suppress
Selected
Priorities
This command
Unsuppress All
Query Favorites
Stats
Suppression
Freeze
Requery
Sort
Click OK.
Click Row Selection to allow users to select a row from the Alarm
Viewer control during run time.
Click Apply.
Click Apply.
In the From Priority box, type the minimum alarm priority value (1
to 999).
In the Alarm Query box, type a valid alarm query. For example,
type \InTouch!$System to query for all alarms that belong to the
default $System alarm group.
Click OK.
In the Query Favorites File box, type the network path and file
name or click the ellipse button to browse for the file.
Click OK.
Right-click the Alarm Viewer control and then click Properties. The
AlarmViewerCtrl Properties dialog box appears.
Click each color box to open the color palette. Click the color that
you want to use in the palette for each of the following:
Property
Description
Window
Alarm Return
Property
Description
Grid
Event
In the Alarm Priority boxes, type alarm priority numbers that serve
as breakpoints for the different colors used to identify
unacknowledged alarms, acknowledged alarms, and flashing
unacknowledged alarms.
Click the UnAck Alarm and Ack Alarm color boxes to open the color
palette. Click the color in the palette that you want to use.
Note: The Alarm Viewer control cannot show changes that occur in
less than a second. If an alarm changes state twice within a second, the
Alarm Viewer control does not recognize the change.
7
Click Apply.
Right-click the Alarm Viewer control and then click Properties. The
AlarmViewerCtrl Properties dialog box appears.
In the Time Format list, click the desired time format. The Time
Format box shows a set of strings consisting of characters
separated by the % symbol for the format you selected.
String character
Description
Four-digit year.
Two-digit month.
Two-digit year.
#x
Minute.
Seconds.
Fractions of a second.
LCT
Local Time
Origin Time
Click Apply.
Select the primary sort column from the Sort Column list. Only
visible columns appear in the Sort Column list. If you do not
see the column you want, go to the General tab and select the
column from Column Details.
Click Apply.
Select the named query that you want to show in the list of
currently defined queries.
Click OK. The Alarm Viewer control now shows alarm information
retrieved by the query.
In the Name box, type the name that you want to use to identify
the query.
In the Query box, type the sets of InTouch alarm queries that
you want to perform. You can specify one or more Alarm
Providers and groups.
Click the Alarm State arrow and select the alarm state that
(All, Ack, Unack) you want to use in the alarm query.
Click OK in the Alarm Query dialog box to add the query to your
favorites.
Select the named query that you want to modify in the list of
currently defined queries.
Select the named query that you want to delete in the list of
currently defined queries.
Type
Purpose
AckAllMenu
Discrete
AckAlmColorRange1
Integer
AckAlmColorRange2
Integer
AckAlmColorRange3
Integer
AckAlmColorRange4
Integer
AckOthersMenu
Discrete
AckSelectedGroupsMenu
Discrete
AckSelectedMenu
Discrete
AckSelectedPrioritiesMenu
Discrete
AckSelectedTagsMenu
Discrete
AckVisibleMenu
Discrete
Property
Type
Purpose
AlarmQuery
Message
AlarmState
Message
AlmRtnColor
Integer
AutoScroll
Discrete
ColorPriorityRange1
Integer
ColorPriorityRange2
Integer
ColorPriorityRange3
Integer
ColumnResize
Discrete
Property
Type
Purpose
CustomMessage
Message
DefaultAckComment
Message
DisplayedTime
Message
DisplayedTimeZone
Message
EventColor
Integer
ExtendedSelection
Discrete
FlashUnAckAlarms
Discrete
FlashUnackAlmColorRange1
Integer
FlashUnackAlmColorRange2
Integer
FlashUnackAlmColorRange3
Integer
FlashUnackAlmColorRange4
Integer
Property
Type
Purpose
Font
None
FreezeMenu
Discrete
FromPriority
Integer
GridColor
Integer
NewAlarmEventMode
Integer
QueryFavoritesFile
Message
QueryFavoritesMenu
Discrete
QueryName
String
QueryStartup
Discrete
QueryType
Message
RequeryMenu
Discrete
RetainSuppression
Discrete
RowSelection
Discrete
SecondarySortColumn
Message
SelectedCount
Integer
ShowContextMenu
Discrete
Property
Type
Purpose
ShowGrid
Discrete
ShowHeading
Discrete
ShowMessage
Discrete
ShowStatusBar
Discrete
SilentMode
Discrete
SortColumn
Message
SortMenu
Discrete
SortOrder
Discrete
StatsMenu
Discrete
SuppressAllMenu
Discrete
SuppressedAlarms
Integer
SuppressionMenu
Discrete
SuppressOthersMenu
Discrete
SuppressSelectedGroupsMenu
Discrete
SuppressSelectedMenu
Discrete
SuppressSelectedPrioritiesMenu
Discrete
SuppressSelectedTagsMenu
Discrete
SuppressVisibleMenu
Discrete
TimeFormat
Message
Property
Type
Purpose
TitleBackColor
Integer
TitleForeColor
Integer
ToPriority
Integer
TotalAlarms
Integer
UnackAlarms
Integer
UnAckAlmColorRange1
Integer
UnAckAlmColorRange2
Integer
UnAckAlmColorRange3
Integer
UnAckAlmColorRange4
Integer
UnsuppressAllMenu
Discrete
UseDefaultAckComment
Discrete
WindowColor
Integer
Hexidecimal
Value
Decimal Value
White
0x00FFFFFF
16777215
Black
0x00000000
Blue
0x00FF0000
16711680
Red
0x000000FF
225
Green
0x0000FF00
652880
Acknowledge alarms.
Suppress alarms.
Get information about an alarm.
Run alarm queries.
Move and freeze the display.
Sort alarm records.
Select specific alarms.
Show the shortcut menu, About dialog box, and Alarm Statistics
dialog box.
For more information about calling methods, see Scripting ActiveX
Controls in the InTouch HMI Scripting and Logic Guide.
Acknowledging Alarms
Use the following methods to acknowledge alarms during run time.
AckSelected() Method
AckAll() Method
AckVisible() Method
AckSelectedGroup() Method
AckSelectedTag() Method
AckSelectedPriority() Method
AckGroup() Method
AckPriority() Method
AckTag() Method
AckSelected() Method
Acknowledges alarms that are selected in the Alarm Viewer control at
run time.
Syntax
Object.AckSelected (Comment)
Parameter
Comment
Alarm acknowledgment comment.
Example
AckAll() Method
Acknowledges all the alarms in the current alarm query. Because the
Alarm Viewer control has a limited display area, the AckAll() method
can also acknowledge alarms not shown in the display.
Syntax
Object.AckAll (Comment)
Parameter
Comment
Alarm acknowledgment comment.
Example
AckVisible() Method
Acknowledges only those alarms that are currently visible in the
Alarm Viewer control.
Syntax
Object.AckVisible (Comment)
Parameter
Comment
Alarm acknowledgment comment.
Example
AckSelectedGroup() Method
Acknowledges all alarms that have the same group name as one or
more selected alarms.
Syntax
Object.AckSelectedGroup (Comment)
Parameter
Comment
Alarm acknowledgment comment.
Example
AckSelectedTag() Method
Acknowledges all alarms that have the same tag, group name and
priority as one or more of the selected alarms.
Syntax
Object.AckSelectedTag (Comment)
Parameter
Comment
Alarm acknowledgment comment.
Example
AckSelectedPriority() Method
Acknowledges all alarms that have the same priority range as one or
more of the selected alarms.
Syntax
Object.AckSelectedPriority (Comment)
Parameter
Comment
Alarm acknowledgment comment.
Example
AckGroup() Method
Acknowledges all alarms for a given group name and provider.
Syntax
Object.AckGroup(ApplicationName, GroupName, Comment)
Parameter
ApplicationName
The name of the Application for example, \\node1\Intouch
GroupName
The name of the group. For example, Turbine.
Comment
Alarm acknowledgment comment.
Example
AckPriority() Method
Acknowledges all of the alarms specified priority range having same
provider name and group name.
Syntax
Object.AckPriority(ApplicationName, GroupName, FromPriority,
ToPriority, Comment)
Parameter
ApplicationName
The name of the application. For example, \\node1\Intouch
GroupName
The name of the group. For example, Turbine.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
Ending priority of alarms. For example, 900.
Comment
Alarm acknowledgment comment.
Example
AckTag() Method
Acknowledges the alarms of the given tag name having the same
provider name and group name within the given priority range.
Syntax
Object.AckTag(ApplicationName, GroupName, tag, FromPriority,
ToPriority, Comment)
Parameter
ApplicationName
The name of the Application for example, \\node1\Intouch
GroupName
The name of the group. For example, Turbine.
tag
The name of the alarm tag. For example, Valve1.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
Ending priority of alarms. For example, 900.
Comment
Alarm acknowledgment comment.
Example
Suppressing Alarms
Use the following methods to suppress alarms during run time:
ShowSuppression() Method
SuppressSelected() Method
SuppressAll() Method
SuppressVisible() Method
SuppressSelectedGroup() Method
SuppressSelectedTag() Method
SuppressSelectedPriority() Method
UnSuppressAll() Method
SuppressGroup() Method
SuppressPriority() Method
SuppressTag() Method
ShowSuppression() Method
Shows the suppression dialog box, which contains all suppressed
alarms.
Syntax
Object.ShowSuppression()
Example
SuppressSelected() Method
Suppresses showing current and future occurrences of the selected
alarm(s).
Syntax
Object.SuppressSelected()
Example
SuppressAll() Method
Suppresses showing current and future occurrences of all active
alarms.
Syntax
Object.SuppressAll()
Example
SuppressVisible() Method
Suppress showing current and future occurrences of any visible alarm.
Syntax
Object.SuppressVisible()
Example
SuppressSelectedGroup() Method
Suppresses showing current and future occurrences of any alarm that
belongs to the same Group and Provider of one or more selected
alarms.
Syntax
Object.SuppressSelectedGroup()
Example
SuppressSelectedTag() Method
Suppresses showing current and future occurrences of any alarm that
belongs to the same tag name of one or more selected alarms having
the same Group name, Provider name, and Priority range.
Syntax
Object.SuppressSelectedTag()
Example
SuppressSelectedPriority() Method
Suppresses showing current and future occurrences of any alarm that
belongs to the same priority range of one or more selected alarms.
Syntax
Object.SuppressSelectedPriority()
Example
UnSuppressAll() Method
Clears alarm suppression.
Syntax
Object.UnSuppressAll()
Example
SuppressGroup() Method
Suppresses showing current and future occurrences of any alarm that
belongs to a given Group name.
Syntax
Object.SuppressGroup(ApplicationName, GroupName)
Parameter
ApplicationName
The name of the Application for example, \\node1\Intouch
GroupName
The name of the group. For example, Turbine.
Example
SuppressPriority() Method
Suppresses showing current and future occurrences of any alarm of
the specified priority range, having the same Provider name and
Group name.
Syntax
Object.SuppressPriority(ApplicationName, GroupName,
FromPriority, ToPriority)
Parameter
ApplicationName
The name of the Application for example, \\node1\Intouch
GroupName
The name of the group. For example, Turbine.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
Ending priority of alarms. For example, 900.
Example
SuppressTag() Method
Suppresses showing current and future occurrences of any alarm
emitted by a given tag name or group name and in the specified
priority range.
Syntax
Object.SuppressTag(ApplicationName, GroupName, tag,
FromPriority, ToPriority)
Parameter
ApplicationName
The name of the Application for example, \\node1\Intouch.
GroupName
The name of the group. For example, Turbine.
tag
The name of the alarm tag. For example, valve 1.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
Ending priority of alarms. For example, 900.
Example
GetItem() Method
Returns a string corresponding to the alarm at the specified row and
column.
Syntax
Object.GetItem(Row Number, Column Name)
Parameter
RowNumber
An integer expression that evaluates to a specific row in the
control.
ColumnName
A string expression that evaluates to the column name in the
control.
Example
Running Queries
Use the following methods to run queries.
ShowQueryFavorites() Method
Requery() Method
ApplyQuery() Method
ApplyDefaultQuery() Method
SetQueryByName() Method
ShowQueryFavorites() Method
Shows the Query Favorites dialog box if the QueryFavoritesFile
property contains a valid query favorite file name in .xml format.
Syntax
Object.ShowQueryFavorites()
Example
Requery() Method
Queries the alarm provider again.
Syntax
Object.Requery()
Example
ApplyQuery() Method
Performs the query as specified by its parameters Alarm Query, From
and To Priorities, State of alarms to query for. and the type of alarms
to retrieve.
Syntax
Object.ApplyQuery(AlarmQuery, FromPriority, ToPriority, State,
Type)
Parameter
AlarmQuery
The alarm query. For example: \InTouch!$System
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
Ending priority of alarms. For example, 900.
State
Specifies type of alarms to show. For example, "UnAck" or message
tag. Valid states are All, UnAck, or Ack.
Type
Specifies type of query for example, Historical (Historical alarms)
or Summary (Summary alarms).
Example
ApplyDefaultQuery() Method
Performs a query using the FromPriority, ToPriority, AlarmState,
QueryType, and AlarmQuery properties as specified at design time.
The default properties can only be changed at development time and
are not overwritten by other alarm queries.
Syntax
Object.ApplyDefaultQuery()
Example
SetQueryByName() Method
Sets the current query specified by a query name. The query name is
defined in the query favorites file.
Syntax
Object.SetQueryByName(QueryName)
Parameter
QueryName
The name of the query as created by using "Query Favorites," for
example, Turbine Queries.
Example
MoveWindow() Method
FreezeDisplay() Method
MoveWindow() Method
Scrolls the alarms in the control in a specified way.
Syntax
Object.MoveWindow(Option, Repeat)
Parameter
Option
The type of action to perform.
Type
Description
LineDn
LineUp
PageDn
PageUp
Top
Bottom
PageRt
PageLf
Right
Left
Home
Scrolls to the top row and left most column of the control.
Repeat
The number of times this operation should be repeated.
Example
FreezeDisplay() Method
Freezes the display.
Syntax
Object.FreezeDisplay(Freeze)
Parameter
Freeze
True = Freezes the display.
False = Unfreezes the display.
Example
Tag1 is defined as Memory discrete tag and the name of the control is
AlarmViewerCtrl1.
Tag1 = 1;
#AlarmViewerCtrl1.FreezeDisplay(Tag1);
ShowSort() Method
SetSort() Method
ShowSort() Method
Shows the Secondary Sort dialog box if the SortMenu property is
enabled.
Syntax
Object.ShowSort()
Example
SetSort() Method
Sets the sort criteria as specified by the SortColumn and SortOrder
properties.
Syntax
Object.SetSort()
Example
AboutBox() Method
ShowStatistics() Method
AboutBox() Method
Shows the About dialog box.
Syntax
Object.AboutBox
Example
ShowStatistics() Method
Shows the Alarm Statistics dialog box.
Syntax
Object.ShowStatistics()
Example
SelectGroup() Method
SelectPriority() Method
SelectTag() Method
SelectAll() Method
SelectItem() Method
UnSelectAll() Method
SelectGroup() Method
Selects all of the alarms that contain the same alarm group name and
provider name.
Syntax
Object.SelectGroup(ApplicationName, GroupName)
Parameter
ApplicationName
The name of the Application for example, \\node1\Intouch
GroupName
The name of the group. For example, Turbine.
Example
SelectPriority() Method
Selects all of the alarms that are of the specified priority range, having
the same provider name and group name.
Syntax
Object.SelectPriority(ApplicationName, GroupName, FromPriority,
ToPriority)
Parameter
ApplicationName
The name of the Application for example, \\node1\Intouch
GroupName
The name of the group. For example, Turbine.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
Ending priority of alarms. For example, 900.
Example
SelectTag() Method
Selects all of the alarms from a specific Provider/Group/Tag. You can
also specify a Priority range, or use 1-999.
Syntax
Object.SelectTag(ApplicationName, GroupName, tag, FromPriority,
ToPriority)
Parameter
ApplicationName
The name of the Application for example, \\node1\Intouch
GroupName
The name of the group. For example, Turbine.
tag
The name of the alarm tag. For example, valve 1.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
Ending priority of alarms. For example, 900.
Example
SelectAll() Method
Toggles the selection of all the alarms in a display. Because the alarm
display has only a limited display area, the SelectAll() function may
select alarms that are not visible in the display.
Syntax
Object.SelectAll()
Example
#AlarmViewerCtrl1.SelectAll();
SelectItem() Method
Toggles the selection of an alarm record at a given row.
Syntax
Object.SelectItem(RowNumber)
Parameter
RowNumber
An integer value that is the row number for the alarm record to
select. The first row in the control is 0.
Example
UnSelectAll() Method
Unselects all the selected records.
Syntax
Object.UnSelectAll()
Example
ShowContext() Method
Shows the shortcut menu if any one of the shortcut menus are enabled.
Syntax
Object.ShowContext()
Example
Click
DoubleClick
NewAlarm
ShutDown
StartUp
The Click event has one parameter called ClicknRow, which identifies
the row that is clicked at run time.
The DoubleClick event has one parameter called DoubleClicknRow,
which identifies the row that is double-clicked at run time.
Click and DoubleClick events are zero-based. When Click and/or
DoubleClick events are published for the user, the row count in the
display starts with 0.
Note: The Alarm Viewer control ignores the user interface methods
when they are called from StartUp event, because the control is not
visible yet. These include: ShowSort(), ShowContext(),
GetSelectedItem(), GetNext(), GetPrevious() and AboutBox().
An event is triggered.
The ActiveX event script associated with the NewAlarm event
runs.
105
Chapter 5
Acknowledging Alarms in
Real Time
.AlarmAckModel Dotfield
Monitors the acknowledgment model associated with a tag as follows:
0 = condition (default)
1 = event oriented
2 = expanded summary
Category
Alarms
Usage
Tagname.AlarmAckModel
Parameter
Tagname
Any discrete, integer, real, indirect discrete and analog tag.
Remarks
Analog (read-only)
Valid Values
0, 1 or 2
Example
.Ack Dotfield
.UnAck Dotfield
You cannot acknowledge alarms that originate from the Wonderware
Application Server using these dotfields.
To acknowledge all local alarms of the running InTouch application,
use the $System alarm group in combination with the appropriate
.Ack dotfield.
.Ack Dotfield
Monitors or controls the alarm acknowledgment status of all types of
local alarms.
Category
Alarms
Usage
TagName.Ack=1;
Parameter
TagName
Any discrete, integer, real, indirect discrete and analog tag, or
alarm group.
Remarks
Discrete (read/write)
Valid Values
1
Example
.UnAck Dotfield
Monitors or controls the alarm acknowledgment status of local alarms.
Category
Alarms
Usage
TagName.UnAck=0;
Parameter
TagName
Any discrete, integer, real, indirect discrete and analog tag, or
alarm group.
InTouch HMI Alarms and Events Guide
Remarks
0
Example
.UnAck has an inverse dotfield called .Ack. When an alarm has been
acknowledged, the value of the .Ack dotfield is set to 1.
See Also
.AckValue Dotfield
Monitors and controls the acknowledgment of local value alarms.
Usage
TagName.AckValue=1;
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
1
Examples
.AckDsc Dotfield
Acknowledges the discrete alarm of a specified tag or all discrete
alarms of a specified alarm group.
Usage
TagName.AckDsc=1;
Parameter
TagName
Name assigned to the discrete tag or the name of an alarm group.
Remarks
Discrete (read/write)
Valid Values
0 or 1
Examples
.AckDev Dotfield
Acknowledges the minor or major deviation alarms of a specified local
tag or all deviation alarms of a specified alarm group.
Category
Alarm
Usage
TagName.AckDev=1;
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
1
Example
See Also
.Alarm, .AlarmDev, .Ack, .UnAck, .AckDSC, .AckROC, .AckValue,
.AlarmAckModel
.AckROC Dotfield
Acknowledges the rate-of-change alarm of a specified local tag or all
rate-of-change alarms of a specified alarm group.
Usage
TagName.AckROC=1;
Parameter
TagName
Name assigned to the integer, real, or indirect analog tag or the
name of an alarm group.
Remarks
Discrete (read/write)
Valid Values
Examples
Ack() Function
Acknowledges any unacknowledged InTouch alarm.
Category
Alarm
Syntax
Ack TagName;
Arguments
TagName
Any InTouch tag, alarm group, or group variable.
Remarks
Examples
Select the RTN implies ACK check box to have the InTouch HMI
automatically acknowledge alarms whose values return to the
normal state (RTN).
Click OK.
Right-click in the display, point to Ack Others, and then click the
appropriate command:
Right-click and then click Ack Selected. The Ack Comment dialog
box appears.
Right-click in the display, point to Ack Others, and then click the
appropriate command:
The alarm comment is set when the new alarm instance occurs.
The .AlarmComment dotfield is used for alarm comments and can
be set or read in an InTouch script. You specify the default value
for this comment in the tag's definition in the Tagname Dictionary.
Alarm comments can be up to 131 characters.
On the Special menu, point to Configure, and then click Alarms. The
Alarm Properties dialog box appears.
Click OK.
121
Chapter 6
Controlling Alarm Properties
of Tags and Groups at Run
Time
122 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Description
.Ack
.AckDev
.AckDsc
.AckROC
.AckValue
.Alarm
.AlarmAckModel
.AlarmDev
.AlarmDevCount
Tracks the total number of active deviation alarms for a given tag
or alarm group.
.AlarmDevDeadband
.AlarmDevUnAckCount
.AlarmDisabled
.AlarmDsc
.AlarmDscCount
123
Dotfield
Description
.AlarmDscDisabled
.AlarmDscEnabled
.AlarmDscInhibitor
.AlarmDscUnAckCount
.AlarmEnabled
.AlarmHiDisabled
.AlarmHiEnabled
.AlarmHiHiDisabled
.AlarmHiHiEnabled
.AlarmHiHiInhibitor
Returns the inhibitor tag reference for the HiHi limit. Applies to
analog tags with alarms. Read only but can be configured in
WindowMaker.
.AlarmHiInhibitor
.AlarmLoDisabled
.AlarmLoEnabled
.AlarmLoInhibitor
.AlarmLoLoDisabled
.AlarmLoLoEnabled
.AlarmLoLoInhibitor
124 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Dotfield
Description
.AlarmMajDevDisabled
.AlarmMajDevEnabled
.AlarmMajDevInhibitor
Returns the inhibitor tag reference for the Major Deviation limit.
Applies to analog tags with alarms.
Read only but can be configured in WindowMaker.
.AlarmMinDevDisabled
.AlarmMinDevEnabled
.AlarmMinDevInhibitor
Returns the inhibitor tag reference for the Minor Deviation limit.
Applies to analog tags with alarms.
Read only but can be configured in WindowMaker.
.AlarmROC
.AlarmROCCount
.AlarmROCDisabled
.AlarmROCEnabled
.AlarmROCInhibitor
Returns the inhibitor tag reference for the rate of change limit.
Applies to analog tags with alarms.
Read only but can be configured in WindowMaker.
.AlarmROCUnAckCount
.AlarmTotalCount
Tracks the total number of alarms active for a given tag or alarm
group.
.AlarmUnAckCount
125
Dotfield
Description
.AlarmUserDefNum1
.AlarmUserDefNum1Set
.AlarmUserDefNum2
.AlarmUserDefNum2Set
.AlarmUserDefStr
.AlarmUserDefStrSet
.AlarmValDeadband
.AlarmValueCount
.AlarmValueUnAckCount
.DevTarget
126 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Dotfield
Description
.HiLimit, .HiHiLimit,
.LoLimit, .LoLoLimit
.HiStatus, .HiHiStatus,
.LoStatus, .LoLoStatus
.MajorDevPct
.MajorDevStatus
.MinorDevPct
.MinorDevStatus
.Name
.Normal
.ROCPct
.ROCStatus
Data Type
Discrete (read/write)
Valid Values
0 or 1
128 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Remarks
When the operator clicks on the button, all alarms are acknowledged,
the $NewAlarm system tag is reset to 0, and the alarm
acknowledgement window is hidden from view.
alarms
Usage
$System
Remarks
By default, tags are assigned to this root alarm group. All defined
alarm groups are descendants of $System.
Data Type
.Alarm Dotfield
Returns 0 when a specified tag or alarm group is not currently in an
alarm state. When an alarm occurs, the .Alarm dotfield returns 1. It
remains at 1 until the alarm condition no longer exists. The .Alarm
dotfield has an inverse dotfield called .Normal.
If the specified tag is the name of an alarm group, the .Alarm dotfield
returns 1 if any of the tags that belong to the group are in an alarm
state.
Category
Alarms
Usage
TagName.Alarm
Parameter
TagName
Any discrete, integer, real tag, indirect discrete and analog tag, or
alarm group tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
130 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
.Normal Dotfield
Returns 1 when a specified tag is not in an alarm condition. When an
alarm occurs, the .Normal dotfield returns 0. The .Normal dotfield has
an inverse dotfield called .Alarm.
Category
Alarms
Syntax
TagName.Normal
Parameter
TagName
Any discrete, integer, real tag, indirect discrete and analog tag, or
alarm group tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
.AlarmDsc Dotfield
Indicates whether an alarm condition exists for a specified discrete tag
or alarm group. The default value is 0. When a discrete alarm
condition exists for the specified tag, it is set to a value of 1. The value
remains 1 until the alarm condition no longer exists.
If the specified tag is the name of an alarm group, the .AlarmDsc
dotfield is set to 1 if any of the tags within the group are in an active
discrete alarm.
Category
Alarms
Usage
TagName.AlarmDsc
Parameter
TagName
Any discrete tag, indirect discrete tag, or alarm group.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
.AlarmDev Dotfield
Indicates when a deviation alarm becomes active for the specified tag
or alarm group. The default value is 0. When a deviation alarm
condition exists for the specified tag, it is set to a value of 1. The value
remains 1 until the alarm condition no longer exists.
If the specified tag is the name of an alarm group, the .AlarmDev
dotfield is set to 1 if any of the tags within the group are in an active
alarm state.
Category
Alarms
Usage
TagName.AlarmDev
132 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
.AlarmROC Dotfield
Indicates when a rate-of-change alarm condition becomes active for
the specified tag or alarm group. The default value is 0. When a
rate-of-change alarm condition exists for the specified tag, it is set to a
value of 1. The value remains 1 until the rate-of-change alarm
condition no longer exists.
If the specified tag is the name of an alarm group, the .AlarmROC
dotfield is set to 1 if any of the tags within the group are in a
rate-of-change alarm state.
Category
Alarms
Usage
TagName.AlarmROC
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
.LoStatus Dotfield
Indicates when a Low alarm condition becomes active for the specified
tag or alarm group. The default value is 0. When a Low alarm
condition exists for the specified tag, it is set to a value of 1. The value
remains 1 until the Low alarm condition no longer exists.
This dotfield is often used in conjunction with the .Alarm and .Ack
dotfields to determine the specific alarm state of a particular tag.
Category
Alarms
Usage
TagName.LoStatus
134 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
The following IF-THEN runs when the .LoStatus (low alarm condition)
for the MyTag tag is equal to 1.
IF (MyTag.LoStatus == 1) THEN
OperatorMessage="MyTag has gone into Low Alarm";
ENDIF;
See Also
.LoLoStatus Dotfield
Indicates when a LoLo alarm condition becomes active for the specified
tag or alarm group. The default value is 0. When a LoLo alarm
condition exists for the specified tag, it is set to a value of 1. The value
remains 1 until the LoLo alarm condition no longer exists.
This dotfield is often used in conjunction with the .Alarm and .Ack
dotfields to determine the exact nature of the alarm status of a
particular tag within the system.
Category
Alarms
Usage
TagName.LoLoStatus
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
.HiStatus Dotfield
Indicates when a High alarm condition becomes active for the specified
tag or alarm group. The default value is 0. When a High alarm
condition exists for the specified tag, it is set to a value of 1. The value
remains 1 until the High alarm condition no longer exists.
This dotfield is often used in conjunction with the .Alarm and .Ack
dotfields to determine the specific alarm state of a tag.
Category
Alarms
Usage
TagName.HiStatus
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
136 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Valid Values
0 or 1
Example
This script calls another script to stop a pump motor output if the
MotorAmps tag goes into high limit alarm status.
IF (MotorAmps.HiStatus == 1) THEN
CALL PumpShutdown( );
ENDIF;
See Also
.HiHiStatus Dotfield
Indicates when a HiHi alarm condition becomes active for the specified
tag or alarm group. The default value is 0. When a HiHi alarm
condition exists for the specified tag, it is set to a value of 1. The value
remains 1 until the HiHi alarm condition no longer exists.
This dotfield is often used in conjunction with the .Alarm and .Ack
dotfields to determine the specific alarm state of a tag.
Category
Alarms
Usage
TagName.HiHiStatus
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
.MinorDevStatus Dotfield
Indicates when a minor deviation alarm becomes active for the
specified tag or alarm group. The default value is 0. When a minor
deviation alarm condition exists for the specified tag, it is set to a
value of 1. The value remains 1 until the minor deviation alarm
condition no longer exists.
This dotfield is often used in conjunction with the .Alarm and .Ack
dotfields to determine the specific alarm state of a tag.
Category
Alarms
Usage
TagName.MinorDevStatus
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
138 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
.MajorDevStatus Dotfield
Indicates when a major deviation alarm becomes active for the
specified tag or alarm group. The default value is 0. When a major
deviation alarm condition exists, the specified dotfield is set to 1. The
value remains 1 until the major deviation alarm condition no longer
exists.
This dotfield is often used in conjunction with the .Alarm and .Ack
dotfields to determine the specific alarm state of a tag.
Category
Alarms
Usage
TagName.MajorDevStatus
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
.ROCStatus Dotfield
Indicates when a rate-of-change alarm becomes active for the specified
tag or alarm group. The default value is 0. When a rate-of-change
alarm condition exists for the specified tag, it is set to a value of 1. The
value remains 1 until the rate-of-change alarm condition no longer
exists.
This dotfield is often used in conjunction with the .Alarm and .Ack
dotfields to determine the specific alarm state of a tag.
Category
Alarms
Usage
TagName.ROCStatus
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
140 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
.ROCPct, .ROCSet
IT71StatusFlags=1
IT71StatusFlags=0
.LoLoSet Dotfield
.LoSet Dotfield
.HiSet Dotfield
.HiHiSet Dotfield
.MinorDevSet Dotfield
.MajorDevSet Dotfield
.ROCSet Dotfield
.LoLoSet Dotfield
Indicates whether a LoLo alarm limit has been set for an integer or
real tag.
Category
Alarms
Usage
TagName.LoLoSet
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
142 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
The THEN block executes if the LoLo alarm limit is set for the MyTag
tag:
IF (MyTag.LoLoSet== 1) THEN
MsgTag="LoLo alarm limit has been set for MyTag";
ENDIF;
See Also
.LoSet Dotfield
Indicates whether a Low alarm limit has been set for an integer or real
tag.
Category
Alarms
Usage
TagName.LoSet
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
The THEN block executes if the Low alarm limit is set for the MyTag
tag:
IF (MyTag.LoSet== 1) THEN
MsgTag="Low alarm limit has been set for MyTag";
ENDIF;
See Also
.HiSet Dotfield
Indicates whether a High alarm limit has been set for an integer or
real tag.
Category
Alarms
Usage
TagName.HiSet
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
The THEN block executes if the High alarm limit is set for the MyTag
tag:
IF (MyTag.HiSet== 1) THEN
MsgTag="High alarm limit has been set for MyTag";
ENDIF;
See Also
.HiHiSet Dotfield
Indicates whether a HiHi alarm limit has been set for an integer or
real tag.
Category
Alarms
Usage
TagName.HiHiSet
144 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
The THEN block executes if the HiHi alarm limit is set for the MyTag
tag:
IF (MyTag.HiHiSet== 1) THEN
MsgTag="HiHi alarm limit has been set for MyTag";
ENDIF;
See Also
.MinorDevSet Dotfield
Indicates whether a minor deviation alarm limit has been set for an
integer or real tag.
Category
Alarms
Usage
TagName.MinorDevSet
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
.MajorDevSet Dotfield
Indicates whether a major deviation alarm limit has been set for an
integer or real tag.
Category
Alarms
Usage
TagName.MajorDevSet
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
146 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
.ROCSet Dotfield
Indicates whether a rate-of-change alarm limit has been set for an
integer or real tag.
Category
Alarms
Usage
TagName.ROCSet
Parameter
TagName
Any integer, real, or indirect analog tag.
Data Type
Discrete (read-only)
Valid Values
0 or 1
Example
The THEN block executes if the rate-of-change alarm limit is set for
the MyTag tag:
IF (MyTag.ROCSet == 1) THEN
MsgTag="Rate-of-change alarm limit has been set for
MyTag";
ENDIF;
See Also
.AlarmEnabled Dotfield
Enables or disables alarms for a tag or an alarm group.
Category
Alarms
Usage
TagName.AlarmEnabled
Parameter
TagName
Any discrete, integer, real, indirect discrete, indirect analog tag, or
alarm group.
Remarks
Discrete (read/write)
148 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Valid Values
0 = Disable alarms
1 = Enable alarms (default)
Example
.AlarmDisabled
.AlarmDisabled Dotfield
Enables or disables alarms for a tag or an alarm group.
Category
Alarms
Usage
TagName.AlarmDisabled
Parameter
TagName
Any discrete, integer, real, indirect discrete, indirect analog tag, or
alarm group.
Remarks
.AlarmEnabled
.AlarmLoLoEnabled Dotfield
Enables or disables LoLo condition events and alarms.
Category
Alarms
Usage
TagName.AlarmLoLoEnabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
0 = Disable alarms
1 = Enable alarms (default)
Example
The following example disables the LoLo alarms of the Tag1 tag:
Tag1.AlarmLoLoEnabled=0;
150 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
See Also
.AlarmLoLoDisabled Dotfield
Enables or disables LoLo condition events and alarms.
Category
Alarms
Usage
TagName.AlarmLoLoDisabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
1 = Disable alarms
0 = Enable alarms (default)
Example
.AlarmLoEnabled Dotfield
Enables or disables Low condition events and alarms.
Category
Alarms
Usage
TagName.AlarmLoEnabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
0 = Disable alarms
1 = Enable alarms (default)
152 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
The following example disables the Low alarms of the Tag1 tag:
Tag1.AlarmLoEnabled=0;
See Also
.AlarmLoDisabled Dotfield
Enables or disables Low condition events and alarms.
Category
Alarms
Usage
TagName.AlarmLoDisabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
1 = Disable alarms
0 = Enable alarms (default)
Example
.AlarmHiEnabled Dotfield
Enables or disables High condition events and alarms.
Category
Alarms
Usage
TagName.AlarmHiEnabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
0 = Disable alarms
1 = Enable alarms (default)
154 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
The following example disables the High alarms of the tag Tag1:
Tag1.AlarmHiEnabled=0;
See Also
.AlarmHiDisabled, .AlarmEnabled
.AlarmHiDisabled Dotfield
Enables or disables High condition events and alarms.
Category
Alarms
Usage
TagName.AlarmHiDisabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
1 = Disable alarms
0 = Enable alarms (default)
Example
.AlarmHiEnabled, .AlarmDisabled
.AlarmHiHiEnabled Dotfield
Enables and/or disables HiHi condition events and alarms.
Category
Alarms
Usage
TagName.AlarmHiHiEnabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
0 = Disable alarms
1= Enable alarms (default)
156 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
The following example disables the HiHi alarms of the Tag1 tag:
Tag1.AlarmHiHiEnabled=0;
See Also
.AlarmHiHiDisabled, .AlarmEnabled
.AlarmHiHiDisabled Dotfield
Enables or disables HiHi condition events and alarms.
Category
Alarms
Usage
TagName.AlarmHiHiDisabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
1 = Disable alarms
0 = Enable alarms (default)
Example
.AlarmHiHiEnabled, .AlarmDisabled
.AlarmDscEnabled Dotfield
Indicates indicates whether or not the tag can generate discrete
alarms.
Category
Alarms
Usage
TagName.AlarmDscEnabled
Parameter
TagName
Any discrete or indirect discrete tag or alarm group.
Remarks
Discrete (read/write)
Valid Values
0 = Disable alarms
1= Enable alarms (default)
158 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
The following example disables the discrete alarms of the Tag1 tag:
Tag1.AlarmDscEnabled=0;
See Also
.AlarmDscDisabled
.AlarmDscDisabled Dotfield
Indicates whether or not the tag can generate discrete alarms.
Category
Alarms
Usage
TagName.AlarmDscDisabled
Parameter
TagName
Any discrete or indirect discrete tag or alarm group.
Remarks
Discrete (read/write)
Valid Values
1 = Disable alarms
0 = Enable alarms (default)
Example
.AlarmMinDevEnabled Dotfield
Enables or disables minor deviation events and alarms.
Category
Alarms
Usage
TagName.AlarmMinDevEnabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
0 = Disable alarms
1= Enable alarms (default)
160 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
The following example disables the minor deviation alarms of the Tag1
tag:
Tag1.AlarmMinDevEnabled=0;
See Also
.AlarmMinDevDisabled Dotfield
Enables or disables minor deviation events and alarms.
Category
Alarms
Usage
TagName.AlarmMinDevDisabled
Parameter
TagName
Any integer, real, or indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
1 = Disable alarms
0 = Enable alarms (default)
Example
The following example enables minor deviation alarms of the Tag2 tag:
Tag2.AlarmMinDevDisabled=0;
See Also
.AlarmMajDevEnabled Dotfield
Enables or disables major deviation events and alarms.
Category
Alarms
Usage
TagName.AlarmMajDevEnabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
0 = Disable alarms
1= Enable alarms (default)
162 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
.AlarmMajDevDisabled Dotfield
Enables or disables major deviation events and alarms.
Category
Alarms
Usage
TagName.AlarmMajDevDisabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
1 = Disable alarms
0 = Enable alarms (default)
Example
The following example enables major deviation alarms of the Tag2 tag:
Tag2.AlarmMajDevDisabled=0;
See Also
.AlarmROCEnabled Dotfield
Enables or disables rate-of-change events and alarms.
Category
Alarms
Usage
TagName.AlarmROCEnabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
0 = Disable alarms
1 = Enable alarms (default)
164 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
.AlarmROCDisabled Dotfield
Disables or enables rate-of-change events and alarms.
Category
Alarms
Usage
TagName.AlarmROCDisabled
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
Discrete (read/write)
Valid Values
1= Disable alarms
0= Enable alarms (default)
Example
.LoLoLimit Dotfield
.LoLimit Dotfield
.HiLimit Dotfield
.HiHiLimit Dotfield
.MinorDevPct Dotfield
.MajorDevPct Dotfield
.DevTarget Dotfield
.ROCPct Dotfield
.LoLoLimit Dotfield
Changes a tags LoLo alarm limit.
Category
Alarms
Usage
TagName.LoLoLimit
Parameter
TagName
Any integer, real, or indirect analog tag.
Remarks
If you want to continue to use the run-time value of this dotfield after
an intentional or accidental shutdown of WindowViewer, select the
Retentive Parameters option in the Tagname Dictionary.
Data Type
Analog (read/write)
Valid Values
166 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
This statement decreases the LoLo alarm limit for the MyTag1 tag by
a value of 10:
MyTag1.LoLoLimit=MyTag1.LoLoLimit - 10;
See Also
.LoLimit Dotfield
Changes a tags Low alarm limit.
Category
Alarms
Usage
Tagname.LoLimit
Parameter
Tagname
Any integer, real, or indirect analog tag.
Remarks
If you want to continue to use the run-time value of this dotfield after
an intentional or accidental shutdown of WindowViewer, select the
Retentive Parameters option in the Tagname Dictionary.
Data Type
Analog (read/write)
Valid Values
This statement decreases the Low alarm limit for the MyTag tag by a
value of 10:
MyTag.LoLimit=MyTag.LoLimit - 10;
See Also
.HiLimit Dotfield
Changes a tags High alarm limit.
Category
Alarms
Usage
TagName.HiLimit
Parameter
TagName
Any integer, real, or indirect analog tag.
Remarks
If you want to continue to use the run-time value of this dotfield after
an intentional or accidental shutdown of WindowViewer, select the
Retentive Parameters option in the Tagname Dictionary.
Data Type
Analog (read/write)
Valid Values
This statement sets the High limit alarm for the PumpTemp tag to
212:
PumpTemp.HiLimit = 212;
See Also
.HiHiLimit Dotfield
Changes a tags HiHi alarm limit.
Category
Alarms
Usage
TagName.HiHiLimit
168 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Parameter
TagName
Any integer, real, or indirect analog tag.
Remarks
If you want to continue to use the run-time value of this dotfield after
an intentional or accidental shutdown of WindowViewer, select the
Retentive Parameters option in the Tagname Dictionary.
Data Type
Analog (read/write)
Valid Values
The following statement increases the HiHi alarm limit for the MyTag
tag by a value of 5:
MyTag.HiHiLimit=MyTag.HiHiLimit + 5;
See Also
.MinorDevPct Dotfield
Changes a tags minor deviation alarm limit.
Category
Alarms
Usage
TagName.MinorDevPct
Parameter
TagName
Any integer, real, or indirect analog tag.
Remarks
If you want to continue to use the run-time value of this dotfield after
an intentional or accidental shutdown of WindowViewer, select the
Retentive Parameters option in the Tagname Dictionary.
Data Type
Real (read/write)
Valid Values
0 to 100
Example
The following statement sets the minor deviation limit property for the
MyTag tag to 25 percent:
MyTag.MinorDevPct=25;
See Also
.MajorDevPct Dotfield
Changes a tags major alarm deviation limit.
Category
Alarms
Usage
TagName.MajorDevPct
Parameter
TagName
Any integer, real, or indirect analog tag.
Remarks
If you want to continue to use the run-time value of this dotfield after
an intentional or accidental shutdown of WindowViewer, select the
Retentive Parameters option in the Tagname Dictionary.
Data Type
Real (read/write)
Valid Values
0 to 100
170 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
The following statement sets the major deviation limit property for the
MyTag tag to 25 percent:
MyTag.MajorDevPct=25;
See Also
.DevTarget Dotfield
Changes the target for a tags minor and major deviation alarms.
Category
Alarms
Usage
TagName.DevTarget
Parameter
TagName
Any integer, real, or indirect analog tag.
Remarks
If you want to continue to use the run-time value of this dotfield after
an intentional or accidental shutdown of WindowViewer, select the
Retentive Parameters option in the Tagname Dictionary.
Data Type
Real (read/write)
Valid Values
The following statement sets the deviation target for the MyTag tag to
500;
MyTag.DevTarget=500;
See Also
.ROCPct Dotfield
Changes a tags rate-of-change alarm limit.
Category
Alarms
Usage
TagName.ROCPct
Parameter
TagName
Any integer, real, or indirect analog tag.
Remarks
Integer (read/write)
Valid Values
0 to 100
Example
.ROCStatus, .ROCSet
172 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
.AlarmValDeadband Dotfield
.AlarmDevDeadband Dotfield
.AlarmValDeadband Dotfield
Changes a tags deadband value while an InTouch application is
running.
Category
Alarms
Usage
TagName.AlarmValDeadband
Parameter
TagName
Any integer, real, or indirect analog tag.
Remarks
If you want to continue to use the run-time value of this dotfield after
an intentional or accidental shutdown of WindowViewer, select the
Retentive Parameters option in the Tagname Dictionary.
Data Type
Analog (read/write)
Valid Values
The following statement changes the deadband for Tag1 tag to a value
of 25:
Tag1.AlarmValDeadband=25;
See Also
.AlarmDevDeadband
.AlarmDevDeadband Dotfield
Changes a tags deviation percentage deadband for both minor and
major deviation alarms.
Category
Alarms
Usage
TagName.AlarmDevDeadband
Parameter
TagName
Any integer, real, or indirect analog tag.
Remarks
If you want to continue to use the run-time value of this dotfield after
an intentional or accidental shutdown of WindowViewer, select the
Retentive Parameters option in the Tagname Dictionary.
Data Type
Integer (read/write)
Valid Values
0 to 100
Example
.AlarmValDeadband, .AlarmDev
174 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
.AlarmComment Dotfield
Returns a comment text string that is associated with the alarm of a
tag or alarm group. By default, it is empty in a new application.
Category
Alarms
Usage
TagName.AlarmComment
Parameter
TagName
Any tag or alarm group.
Data Type
Message (read/write)
Valid Values
Text
Example
The following example returns the alarm comment for a tag and places
it in another memory Message tag:
mTag1=Tag1.AlarmComment;
The following example returns the alarm comment for a tag selected in
an distributed alarm object AlmObj_1 and places it in the
almComment memory message tag :
GetPropertyM(AlmObj_1.AlarmComment, almComment);
See Also
GetPropertyM(), .AlarmAccess, .AlarmClass, .AlarmDate,
.AlarmLimit, .AlarmName, .AlarmOprName, .AlarmOprNode,
.AlarmPri, .AlarmProv, .AlarmState, .AlarmTime, .AlarmType,
.AlarmValue
.AlarmUserDefNumX Dotfields
.AlarmUserDefStr Dotfield
.AlarmUserDefNumX Dotfields
To simplify setting user values, you can set these dotfields on an alarm
group as well as on a specific tag. For example, InBatch could set the
batch number in .AlarmUserDefNum1 all the way up at the $System
alarm group, causing all alarms to have the batch number attached.
The .AlarmUserDefNum1 and .AlarmUserDefNum2 dotfields
correspond to the User1 and User2 columns in the Alarm Viewer
control, respectively.
If you set .AlarmUserDefNum1 on an alarm group, it applies to all
alarms in that group and any of its sub-groups. You can also
specifically set the value of .AlarmUserDefNum1 on a tag. In this case,
it applies only to that tag and overwrites any setting of
.AlarmUserDefNum1 in the tag's alarm group.
Category
Alarms
Usage
TagName.AlarmUserDefNum1
TagName.AlarmUserDefNum2
Parameter
TagName
Any discrete, integer, real, indirect discrete, indirect analog tag, or
alarm group.
Remarks
176 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Data Types
Analog (read/write)
Valid Values
The following examples use constant values. However, you can use
InTouch QuickScripts to copy the value of another tag to any of these
user-defined fields. You can also use PtAcc to set or inspect them, or
use InTouch as an I/O Server to get or set the values.
$System.AlarmUserDefNum1 = 4;
GroupA.AlarmUserDefNum1 = 27649;
.AlarmUserDefStr
.AlarmUserDefStr Dotfield
The .AlarmUserDefStr dotfield is attached to the information recorded
for each alarm by Alarm DB Logger in the alarm database. The
.AlarmUserDefStr dotfield corresponds to database field User3. You
can use the "user-defined" columns in a SELECT statement to select
particular collections of alarms for database operations. For example,
if $System.AlarmUserDefStr is set to a Batch String and is changed
each time the Batch changes, a selection involving the database field
User3 can be used to select alarms for particular batches.
Category
Alarms
Usage
Tagname.AlarmUserDefStr
Parameter
Tagname
Any discrete, integer, real, indirect discrete, or indirect analog tag,
or alarm group.
Remarks
Message (read/write)
Valid Values
This example uses a constant value. However, you can use InTouch
QuickScripts to copy the value of another tag to any of these
user-defined fields. You can also use PtAcc to set or inspect them, or
use InTouch as an I/O Server to get or set the values.
Tag04.AlarmUserDefStr = "Joe";
.AlarmUserDefNumX
178 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
.AlarmDscInhibitor Dotfield
.AlarmLoLoInhibitor Dotfield
.AlarmLoInhibitor Dotfield
.AlarmHiInhibitor Dotfield
.AlarmHiHiInhibitor Dotfield
.AlarmMinDevInhibitor Dotfield
.AlarmMajDevInhibitor Dotfield
.AlarmROCInhibitor Dotfield
.AlarmDscInhibitor Dotfield
Returns the name of the inhibitor tag assigned to a discrete alarm.
Category
Alarms
Usage
TagName.AlarmDscInhibitor
Parameter
TagName
Any discrete tag or alarm group.
Remarks
Message (read-only)
Examples
The following statement returns the name of the alarm inhibitor tag
for a discrete alarm (assuming SomeIndirectTag is an analog indirect
tag):
SomeIndirectTag.Name = AlarmedTag.AlarmDscInhibitor;
The inhibition state of the alarmed tag can be controlled by setting the
value of the indirect tag as follows:
SomeIndirectTag = 1;
.AlarmLoLoInhibitor Dotfield
Returns the name of the inhibitor tag assigned to a LoLo alarm.
Category
Alarms
Usage
TagName.AlarmLoLoInhibitor
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group tag.
Remarks
Message (read-only)
Examples
180 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
The inhibition state of the alarmed tag can be controlled by setting the
value of the Indirect tag as follows:
SomeIndirectTag = 1;
Turns on inhibition
LoLo alarms are disabled for AlarmedTag
SomeIndirectTag = 0;
.AlarmLoInhibitor Dotfield
Returns the name of the inhibitor tag assigned to a Low alarm.
Category
Alarms
Usage
TagName.AlarmLoInhibitor
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group tag.
Remarks
Message (read-only)
Examples
The inhibition state of the alarmed tag can be controlled by setting the
value of the Indirect tag as follows:
SomeIndirectTag = 1;
Turns on inhibition
Low alarms are disabled for AlarmedTag
SomeIndirectTag = 0;
.AlarmHiInhibitor Dotfield
Returns the name of the inhibitor tag assigned to a High alarm.
Category
Alarms
Usage
TagName.AlarmHiInhibitor
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group tag.
Remarks
Message (read-only)
Example
182 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
The inhibition state of the alarmed tag can be controlled by setting the
value of the Indirect tag as follows:
SomeIndirectTag = 1;
Turns on inhibition
High alarms are disabled for AlarmedTag
SomeIndirectTag = 0;
.AlarmHiHiInhibitor Dotfield
Returns the name of the inhibitor tag assigned to a HiHi alarm
condition.
Category
Alarms
Usage
TagName.AlarmHiHiInhibitor
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group tag.
Remarks
Message (read-only)
Example
The inhibition state of the alarmed tag can be controlled by setting the
value of the indirect tag as follows:
SomeIndirectTag = 1;
Turns on inhibition
HiHi alarms are disabled for AlarmedTag
SomeIndirectTag = 0;
.AlarmMinDevInhibitor Dotfield
Returns the name of the alarm inhibitor tag associated with a minor
deviation alarm condition.
Category
Alarms
Usage
TagName.AlarmMinDevInhibitor
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group tag.
Remarks
Message (read-only)
Example
184 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
The inhibition state of the alarmed tag can be controlled by setting the
value of the Indirect tag as follows:
SomeIndirectTag = 1;
Turns on inhibition
Minor deviation alarms are disabled for AlarmedTag
SomeIndirectTag = 0;
.AlarmMajDevInhibitor
.AlarmMajDevInhibitor Dotfield
Returns the name of the alarm inhibitor tag associated with a major
deviation alarm condition.
Category
Alarms
Usage
TagName.AlarmMajDevInhibitor
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group tag.
Data Types
Message (read-only)
Example
The inhibition state of the alarmed tag can be controlled by setting the
value of the Indirect tag as follows:
SomeIndirectTag = 1;
Turns on inhibition
Major deviation alarms are disabled for AlarmedTag
SomeIndirectTag = 0;
.AlarmMinDevInhibitor
.AlarmROCInhibitor Dotfield
Returns the name of the alarm inhibitor tag associated with a
rate-of-change alarm condition.
Category
Alarms
Usage
TagName.AlarmROCInhibitor
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group tag.
Data Types
Message (read-only)
Example
186 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
The inhibition state of the alarmed tag can be controlled by setting the
value of the Indirect tag as follows:
SomeIndirectTag = 1;
Turns on inhibition
Rate-of-change alarms are disabled for AlarmedTag
SomeIndirectTag = 0;
Description
.AlarmTotalCount
Dotfield
.AlarmUnAckCount
Dotfield
.AlarmValueCount
Dotfield
.AlarmValueUnAckCount
Dotfield
.AlarmDscCount Dotfield
.AlarmDscUnAckCount
Dotfield
.AlarmDevCount Dotfield
.AlarmDevUnAckCount
Dotfield
.AlarmROCCount
Dotfield
.AlarmROCUnAckCount
Dotfield
.AlarmTotalCount Dotfield
Tracks the total number of active alarms for a specified tag or alarm
group.
Category
Alarms
Usage
TagName.AlarmTotalCount
Parameter
TagName
Any type of tag or alarm group.
Remarks
Integer (read-only)
Valid Values
Tag1 is an analog tag configured for alarms. ATC is also an analog tag,
which gets the total number of all active alarms (both UnAck and Ack)
present in Tag1.
ATC = Tag1.AlarmTotalCount;
See Also
.AlarmUnAckCount Dotfield
Tracks the total number of unacknowledged alarms for a specified tag
or alarm group.
Category
Alarms
188 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Usage
TagName.AlarmUnAckCount
Parameter
TagName
Any type of tag or alarm group.
Remarks
Integer (read-only)
Valid Values
.AlarmValueCount Dotfield
Tracks the total number of active value alarms for a specified tag or
alarm group.
Category
Alarms
Usage
TagName.AlarmValueCount
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Remarks
This includes the count of HiHi, High, Low, and LoLo alarms. It
includes both acknowledged and unacknowledged alarms. For
non-expanded summary alarm tags, this count will not exceed 1.
However, the count may vary with alarm groups.
Data Types
Integer (read-only)
Valid Values
.AlarmValueUnAckCount Dotfield
Tracks the total number of unacknowledged value alarms for a
specified tag or alarm group. This includes the count of HiHi, High,
Low, and LoLo alarms.
Category
Alarms
Usage
TagName.AlarmValueUnAckCount
Parameter
TagName
Any integer, real, indirect analog tag, or alarm group.
Data Types
Integer (read-only)
Valid Values
190 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Example
.AlarmDscCount Dotfield
Tracks the total number of active discrete alarms for a specified tag or
alarm group.
Category
Alarms
Usage
TagName.AlarmDscCount;
Parameter
TagName
Any discrete tag, indirect discrete tag, or alarm group.
Remarks
Integer (read-only)
Valid Values
See Also
.AlarmDscUnAckCount Dotfield
Tracks the total number of unacknowledged discrete alarms for a
specified tag or alarm group.
Category
Alarms
Usage
TagName.AlarmDscUnAckCount
Parameter
TagName
Any discrete tag, indirect discrete tag, or alarm group.
Data Types
Integer (read-only)
Valid Values
192 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
.AlarmDevCount Dotfield
Tracks the total number of active deviation alarms for a specified tag
or alarm group.
Category
Alarms
Usage
TagName.AlarmDevCount
Parameter
TagName
Any real tag, integer tag, indirect analog tag, or alarm group.
Remarks
Analog (read-only)
Valid Values
.AlarmDevUnAckCount Dotfield
Tracks the total number of unacknowledged deviation alarms for a
specified tag or alarm group. This includes the count of minor and
major deviation alarms.
Category
Alarms
Usage
TagName.AlarmDevUnAckCount
Parameter
TagName
Any real tag, integer tag, indirect analog tag, or alarm group.
Data Types
Analog (read-only)
Valid Values
.AlarmROCCount Dotfield
Tracks the total number of active rate-of-change alarms for a specified
tag or alarm group. It includes both acknowledged and
unacknowledged alarms. For non-expanded summary alarm tags, this
count will always be 1. However, the count may vary with alarm
groups.
Category
Alarms
194 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
Usage
TagName.AlarmROCCount
Parameter
TagName
Any real tag, integer tag, indirect analog tag, or alarm group.
Data Types
Integer (read-only)
Valid Values
.AlarmROCUnAckCount Dotfield
Tracks the total number of unacknowledged rate-of-change alarms for
a specified analog tag or alarm group.
Category
Alarms
Usage
TagName.AlarmROCUnAckCount
Parameter
TagName
Any real tag, integer tag, indirect analog tag, or alarm group.
Data Types
Integer (read-only)
Valid Values
196 Chapter 6 Controlling Alarm Properties of Tags and Groups at Run Time
197
Chapter 7
Viewing Alarm Hierarchies
The Alarm Tree Viewer ActiveX control shows the alarm group
hierarchy of alarm providers selected by an alarm query. Items that
appear in the Alarm Tree Viewer control include alarm providers,
nodes, and groups.
You can enhance the usability of the Alarm Viewer control by using an
Alarm Tree Viewer control. You can create a script so that when the
operator selects an alarm provider in the Alarm Tree Viewer control,
the Alarm Viewer control queries the new alarm provider.
You can configure how the Alarm Tree Viewer control appears and
what data is shown. For more information, see "Configuring an Alarm
Tree Viewer Control" on page 198.
When you finish configuring the Alarm Tree Viewer control, you can
modify the data you are viewing by:
Select the Perform Query on Startup check box for the tree to
automatically update using default query properties.
Otherwise, users must run the Refresh command to update the
tree.
In the Display Mode list, click how you want the tree to
refresh. For an automatic refresh, type the refresh interval the
Auto Refresh Interval box. The range is 5 to 32767 seconds.
Select the Show Heading check box to show a header above the
hierarchy. In the box, type the header bar text.
Select the Show Status Bar check box to show a status bar at
the bottom of the Alarm Tree Viewer control.
Click Font to configure the font properties for the tree. The
standard Windows Font dialog box appears.
Select the Silent Mode check box prevent the Alarm Tree
Viewer control from showing run-time error messages. Error
messages are always sent to the Logger.
4
Click Apply.
Click Apply.
Configuring Fonts
You can configure how the text appears for the Alarm Tree Viewer
control.
To configure the font
1
Click OK.
In the Display Mode list, click how you want the tree to refresh,
either Manual Refresh or Auto Refresh. For an automatic refresh,
type the tree refresh interval the Auto Refresh Interval box. The
range is 5 to 32767 seconds.
Click Apply.
AlarmTreeFastRetryMax
This setting determines how long immediately after a query was
submitted that fast retries (1 per second) of the tree data retrieval will
be performed. Values are in seconds.
Allowed values: 1 to 32767
Default value: 10
Example:
[InTouch]
AlarmTreeFastRetryMax=5
AlarmTreeSlowRetryInterval
Once the fast retries have been completed, this setting determines the
frequency, in seconds, with which additional retries of the tree data
retrieval will be performed.
Allowed values: 1 to 32767
Default value: 5
Example:
[InTouch]
AlarmTreeSlowRetryInterval=10
AlarmTreeTotalRetryMax
This setting specifies the maximum duration, in seconds, for which
both types of retries will be performed.
Allowed values: 1 to 32767
Default value: 30
Example:
[InTouch]
AlarmTreeTotalRetryMax=60
During the fast retry interval, the retrieval will be retried for 10
seconds, once every second.
During the slow retry interval, the retrieval will be retried every 5
seconds for another 20 seconds.
The hierarchy trees are shown for all the providers requested
The display refresh timers are reset to their modified or default values
each time a query is submitted.
Select the Show Context Sensitive Menu check box to activate the
shortcut menu.
Select the check box for each command that you want to appear in
the shortcut menu. You must select least one shortcut command.
Command
Description
Refresh
Freeze
Query
Favorites
Add to
Favorites
Sort
Statistics
Click Apply.
The default alarm query is \InTouch. You cannot use a tag for the
alarm query.
If you query multiple alarm groups and later you undeploy one or more
groups, the Alarm Tree Viewer control does not automatically update
to remove these groups from the view. You must stop and re-start the
alarm provider to un-register it.
If you query an ArchestrA Galaxy by specifying \Galaxy in your alarm
query, then all InTouch alarm providers deployed within the Galaxy
are shown. For example:
\\Node\Galaxy!Area[name]
If you query information from a node with multiple alarm providers
that contain groups with the same names, records are shown for the
last alarm provider in the tree.
To configure the alarm query
1
In the Alarm Query box, type the path to the initial alarm query.
Click Apply.
In the Query Favorites File box, type the network path and file
name or click the ellipse button to browse for the file.
To edit the Filter Favorites file, click the Edit Favorites File
button. The Alarm Query window opens, allowing you to add,
modify, or delete filters from your favorites file. When you are
done, click OK to save your changes and close the window.
Click OK.
Click OK.
The Alarm Tree Viewer control can show multiple nodes and alarm
providers.
With one or more alarm groups selected, you can generate queries for
alarms that can be used in the Alarm Tree Viewer control and the
Alarm DB View controls. To select multiple alarm groups, hold down
the shift key while clicking on a group. To un-select all groups, click on
an empty area.
One or more of the following commands appears on the run-time
shortcut menu, depending on how the control is configured:
Add to Favorites Opens the Add Query dialog box with a query
string entered based on the selected Groups (if any).
Select the named query that you want to show in the list of
currently defined queries.
Click OK. The Alarm Tree Viewer control shows alarm group
information from the selected query.
Purpose
AddtoFavoritesMenu
AlarmQuery
Shows the initial alarm query and allows you to change the
query. The valid syntax is \\<node>\<provider> or
\<provider>.
ElementSelection
ExpansionLevel
Sets the branch level to which the alarm tree is opened when
you manually refresh the control. A value of 1 shows only the
provider, a value of 2 shows the direct alarm groups of the
provider, and so on.
Font
FreezeMenu
HeaderText
Gets or sets the text that appears in the header of the Alarm
Tree Viewer control.
MultiSelection
QueryFavoritesFile
QueryFavoritesMenu
QueryStartup
RefreshInterval
RefreshMenu
Property Name
Purpose
SelTextBackColor
SelTextColor
ShowContextMenu
ShowHeading
ShowStatusBar
SilentMode
SortElements
SortMenu
SortOrder
StatsMenu
TextColor
Gets or sets the text color the Alarm Tree Viewer control.
TitleBackColor
TitleForeColor
WindowColor
AboutBox() Method
GetElementCount() Method
AboutBox() Method
Shows the Alarm Tree Viewer About dialog box.
Syntax
Object.AboutBox()
Example
GetElementCount() Method
Gets the total number of elements in the tree.
Syntax
Object.GetElementCount()
Example
CheckElementMembership() Method
GetElementCount() Method
GetElementName() Method
GetElementPath() Method
GetSelectedElementCount() Method
GetSelectedElementName() Method
GetSelectedElementPath() Method
GetSubElementCount() Method
GetSubElementName() Method
GetSubElementPath() Method
CheckElementMembership() Method
Checks if the descendant tree element is part of the ancestor tree element.
Syntax
Object.CheckElementMembership(PathName, DescendantElementName,
AncestorElementName)
Parameter
PathName
The name of the path. For example, \InTouch or \\NodeName.
DescendantElementName
The name of the descendant element name. For example, GroupA.
AncestorElementName
The name of the ancestor element name. For example, GroupB.
GetElementCount() Method
Gets the total number of elements in the tree.
Syntax
Object.GetElementCount()
Example
GetElementName() Method
Gets the element name corresponding to the index.
Syntax
Object.GetElementName(ElementIndex)
Parameter
ElementIndex
The index of the element.
Example
GetElementPath() Method
Gets the element path corresponding to the index, down to the
indicated expansion level.
Syntax
Object.GetElementPath(ElementIndex, ExpansionLevel)
Parameter
ElementIndex
The index of the element.
ExpansionLevel
Example
GetSelectedElementCount() Method
Gets the number of selected elements in the tree.
Syntax
Object.GetSelectedElementCount()
Example
GetSelectedElementName() Method
Gets the name of the selected element on the Alarm Tree Viewer
control.
Syntax
Object.GetSelectedElementName()
Example
GetSelectedElementPath() Method
Gets the path of the selected element to the indicated expansion level.
Syntax
Object.GetSelectedElementPath(ExpansionLevel)
Parameter
ExpansionLevel
The level of expansion.
Example
GetSubElementCount() Method
Gets the total number of sub-elements from the indicated element.
Syntax
Object.GetSubElementCount(Path, ElementName)
Parameter
Path
The name of the path. For example:
\\NodeName\InTouch
If the path parameter is empty, the Alarm Tree Viewer control
finds the first element of the tree that matches the indicated
element name.
ElementName
The name of the element. For example, Group1.
Examples
nTag1 = #AlarmTreeViewerCtrl1.GetSubElementCount("",
"Group1" );
nTag1 = #AlarmTreeViewerCtrl1.GetSubElementCount(
"\\NodeName", "Group1" );
nTag1 = #AlarmTreeViewerCtrl1.GetSubElementCount(
"\InTouch", "Group1" );
nTag1 = #AlarmTreeViewerCtrl1.GetSubElementCount(
"\\NodeName\InTouch", "Group1" );
GetSubElementName() Method
For the indicated element, gets the name of the sub-element at the
corresponding index.
Syntax
Object.GetSubElementName(Path, ElementName, ElementIndex)
Parameter
Path
The name of the path. For example:
\\NodeName\InTouch
If the path parameter is empty, the Alarm Tree Viewer control
finds the first element of the tree that matches the indicated
element name.
ElementName
The name of the element. For example, Group1.
ElementIndex
The index of the element.
Examples
GetSubElementPath() Method
Gets the path of the sub-element from the index of the element name
to the indicated expansion level.
Syntax
Object.GetSubElementPath(Path, ElementName, ElementIndex,
ExpansionLevel)
Parameter
Path
The name of the path. For example:
\\NodeName\InTouch
If the path parameter is empty, the Alarm Tree Viewer control
finds the first element of the tree that matches the indicated
element name.
ElementName
The name of the element. For example, Group1.
ElementIndex
The index of the element.
ExpansionLevel
The level of expansion.
Examples
Freeze() Method
Freezes the Alarm Tree Viewer control tree.
Syntax
Object.Freeze(Frozen)
Parameters
Frozen
Contols whether the tree can be updated.
1 = Freezes the tree.
0 = Unfreezes the tree.
Example
Tag1 is defined as memory discrete tag and the name of the control is
AlarmTreeViewerCtrl1.
Tag1 = 1;
#AlarmTreeViewerCtrl1.Freeze(Tag1);
GetAlarmQueryFromSelection() Method
Returns an alarm query string from the selected element in the Alarm
Tree Viewer control.
Syntax
Object.GetAlarmQueryFromSelection()
Example
Running Queries
You can run queries for the Alarm Tree Viewer control using methods
that either retrieve an existing query saved in a query favorites file or
set a string that specifies a new collection of alarm providers.
SetQueryByName() Method
SetQueryByString() Method
SetQueryByName() Method
Sets the current query as specified by the query name passed. The
query must be in the query favorites file.
Syntax
Object.SetQueryByName(QueryName)
Parameter
QueryName
The name of the query as created by using query favorites. For
example, Turbine Queries.
Example
SetQueryByString() Method
Sets the current query as a new string specifying a new collection of
Alarm Providers.
Syntax
Object.SetQueryByString(NewQuery)
Parameters
NewQuery
String containing an alarm query. For example:
\\MasterNode\InTouch
Example
Click
DoubleClick
ShutDown
StartUp
The Click event has one parameter called ClicknElementID, which
identifies the element in the tree that is clicked at run time.
The DoubleClick event has one parameter called
DoubleClicknElementID, which identifies the element in the tree that
is double-clicked at run time.
For the Click and DoubleClick events, an ElementID of -1 is returned
for the "All Providers" node.
Note: The Alarm Tree Viewer control ignores the user interface
methods when they are called from the StartUp event, because the
control is not visible yet. These methods include: AboutBox(),
CheckElementMembership(), Freeze(), GetAlarmQueryFromSelection(),
GetElementCount(), GetElementName(), GetElementPath(),
GetSelectedElementCount(), GetSelectedElementName(),
GetSelectedElementPath(), GetSubElementCount(),
GetSubElementName(), GetSubElementPath(), and Refresh().
221
Chapter 8
Printing Alarms
You use the InTouch Alarm Printer utility to print alarms from
multiple nodes. You can print alarm records stored in the alarm
memory on an event-by-event basis using a dedicated line or network
printer. Also, you can use the Alarm Printer to save alarm records to a
file.
Alarm Printer File
WindowViewer Session
Alarm
Provider
Alarm Memory
Alarm
Printer
Utility
Record
Record
Alarm
Provider
Record
Running InTouch
Application
Network Printer
Alarm
Query
LAN
Record
Record
Alarm
Provider
InTouch Node
Printer
Cable
Click OK.
Description
Enable initialize
printer codes
Setting
Description
Alternate color
Normal color
ESC M ESC SI CR
If you need to send a space character to the printer, then use the
abbreviation SP to represent that byte.
Note: The parser is case-sensitive, so all abbreviations must be
entered in capital letters. For example, use ESC, not esc or Esc.
Alarm priority
Current alarm state (unacknowledged/acknowledged)
Alarm group membership
Each alarm has an assigned priority number that represents the
severity of the alarm. An alarm priority ranges from 1 to 999. The
most severe alarm is assigned a priority of 1. The least severe alarm is
assigned a priority of 999.
If a network or printer connection fails, the Alarm Printer does not
reprint all alarms. The Alarm Printer only prints the alarms that have
not been printed before the connection failure.
To configure which alarms to print
1
In the From Priority box, enter the highest priority alarm value (1
to 999).
To show
All
All alarms.
Ack
Unack
In the Alarm Query box, type one or more alarm queries. You can
specify one or more alarm providers and groups. Use blank spaces
to separate the queries.
Select the Record alarms generated after query starts check box
to only include alarms that occur after the query starts. The Alarm
Printer ignores alarms records that are in the alarm memory and
were triggered before the Alarm Printer started querying.
Click OK.
In the Date/Time area, select the Date check box, and then select
a date format from the list. The listed date formats include the
following components:
Option
Description
DD
MM
YY
YYYY
Four-digit year
MMM
Select the Time check box and select a time format from the list.
The listed formats included the following time components:
Option
Description
AP
HH
MM
SS
SSS
Select the order that alarms appear in the alarm record according
to the onset time of the alarm:
Option
Description
OAT
LCT
LCT But
OAT on
ACK
Description
Alarm State
Alarm Class
Option
Description
Alarm Type
Priority
7.1 Default
(button)
7.11 Default
(button)
Remove
Trailing Spaces
Minimum
Column
Spacing
Alarm Name
Group Name
Alarm Provider
Value at Alarm
Limit
Option
Description
Operator Node
Operator
Name
Comment
User1
User2
User3
Click Apply.
Description
YY
Last two digits of the year when the log file is created.
MM
DD
HH
Select the Enable Alarm File Logging check box to save alarm
records to log files.
In the Keep Log Files for box, enter the number of days to retain
log files.
The Alarm Printer saves log files for the number of specified days
plus the current day. The Alarm Printer deletes log files older than
the retention period. To save log files indefinitely, enter 0.
In the Log File Name Extension box, accept the default ALG file
name extension or assign another three-character extension to log
files.
If you use a .csv extension, you can import the log file directly into
Excel or Notepad.
10 To remove spaces at the end of entries within a log file, select the
Remove Trailing Spaces in Log Entries check box.
You can also specify a field separator character placed at the end of
each record in the log file.
11 Select the Original Column Ordering check box to maintain the
Printing Alarms235
On the File menu, click New to show the Alarm Printer with its
default values.
Select the Alarm Printer Configuration file that you want to edit.
On the File menu, select Save. Select Save as to save the changes to
a new file without changing the existing file.
Printing Alarms
Each query logs all of the alarms specified in the Alarm Printer
configuration file (.alc) that is currently open. If no file has been
specified, the settings currently selected during Alarm Printer
configuration are used.
You can run multiple queries with Alarm Printer. Each query uses
different parameters and is associated with a separate instance of the
Alarm Printer. If two instances of Alarm Printer are running the same
query, the entries are duplicated.
While Alarm Printer is running, you can manually start or stop
queries. Be sure that you have printing enabled.
To start an alarm query
Alarm records collected by the query are written to the configured log
file.
Error Message
Success
Error
Code
Error Message
20
21
22
23
24
25
26
27
28
APUStartInstance() Function
APUStartQuery() Function
APUStopInstance() Function
APUStopQuery() Function
APUStartInstance() Function
Starts an instance of the Alarm Printer in a minimized state with
values specified from a configuration file.
Category
View
Syntax
[Result=] APUStartInstance(sFilePath, iTagInstance);
Arguments
sFilePath
Full path to a configuration file (input string).
iTagInstance
Integer tag. The function returns an instance number to it if the
function executes successfully.
Remarks
APUStartQuery() Function
Sets the date and time limits for records to be processed from the
alarm memory and then starts the query.
Category
View
Syntax
[Result=] APUStartQuery(iInstance,iYear,iMonth,iDay,
iHour,iMinute);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iYear
The number of the year.
iMonth
The number of the month.
iDay
The day of the month.
iHour
The hour number.
iMinute
The minute number.
Remarks
APUStopInstance() Function
Stops a specified instance of the Alarm Printer. Any further addition of
records to be printed stops, any currently executing print query stops,
and the instance of the program closes.
Category
View
Syntax
[Result=] APUStopInstance(iInstance);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
Remarks
APUStopQuery() Function
Requests the specified instance to stop running its query. The
application remains running, but it does not process any queries. A
call to APUStartQuery() can cause the instance to start querying.
Category
View
Syntax
[Result=] APUStopQuery(iInstance);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
Remarks
Example
Status = APUStopQuery(5);
See Also
APUStartInstance(), APUStartQuery(), APUStopInstance()
APUGetAlarmGroupText() Function
APUGetQueryFromPriority() Function
APUGetQueryToPriority() Function
APUGetConfigurationFilePath() Function
APUGetPrinterJobCount() Function
APUGetQueryAlarmState() Function
APUGetQueryProcessingState() Function
APUGetAlarmGroupText() Function
Gets the Alarm Query alarm group text.
Category
View
Syntax
[Result=] APUGetAlarmGroupText(iInstance,sTagGroup);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
sTagGroup
Text - alarm group
Remarks
The initial alarm group text is read from the .alc configuration file that
the Alarm Printer with the specified instance is using. The alarm
group text is passed to the sTagGroup parameter into an InTouch
message tag.
Returns an integer error code.
Example
The TagGroup message tag can contain the following value after the
function is run: \intouch!$system
Status = APUGetAlarmGroupText(Inst,TagGroup);
See Also
APUGetConfigurationFilePath(), APUGetPrinterJobCount(),
APUGetQueryAlarmState(), APUGetQueryFromPriority(),
APUGetQueryProcessingState(), APUGetQueryToPriority()
APUGetQueryFromPriority() Function
Gets the From Priority value for a query.
Category
View
Syntax
[Result=] APUGetQueryFromPriority(iInstance, iTagPriority );
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iTagPriority
An integer tag that receives the From Priority value.
Remarks
The initial priority is read from the .alc file that the Alarm Printer
with the specified instance is using. The From Priority value is passed
to the iTagPriority parameter into an InTouch integer tag.
Returns an integer error code.
Example
See Also
APUGetAlarmGroupText(), APUGetConfigurationFilePath(),
APUGetPrinterJobCount(), APUGetQueryAlarmState(),
APUGetQueryProcessingState(), APUGetQueryToPriority()
APUGetQueryToPriority() Function
Gets the To Priority from the query.
Category
View
Syntax
[Result=] APUGetQueryToPriority(iInstance,iPriority );
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iPriority
An integer tag that receives the To Priority value.
Remarks
Another query cannot be running at the same time as the script that
includes the APUGetQueryToPriority() function. The To Priority value
is written to the iPriority parameter of the function, which is an
integer tag.
Returns an integer error code.
Example
The integer tag ToPri receives the To Priority value, such as 999.
Status = APUGetQueryToPriority(Inst,ToPri);
See Also
APUGetAlarmGroupText(), APUGetConfigurationFilePath(),
APUGetPrinterJobCount(), APUGetQueryAlarmState(),
APUGetQueryFromPriority(), APUGetQueryProcessingState()
APUGetConfigurationFilePath() Function
Returns the full file path of the .alc configuration file used for a query.
Category
View
Syntax
[Result=] APUGetConfigurationFilePath(iInstance,
sTagFilePath);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
sTagFilePath
A message tag to retrieve the name of the file path to the
configuration file the Alarm Printer instance is using.
Remarks
The file path text is returned to an message tag that you can specify as
sTagFilePath parameter of this function.
Returns an integer error code.
Example
The CfgFilePath message tag receives the file path of the configuration
file associated with the Alarm Printer instance contained in the Inst
integer tag. For example: c:\MyAlarmCfg\Area1Alarms.alc
Status = APUGetConfigurationFilePath(Inst, CfgFilePath);
See Also
APUGetAlarmGroupText(), APUGetPrinterJobCount(),
APUGetQueryAlarmState(), APUGetQueryFromPriority(),
APUGetQueryProcessingState(), APUGetQueryToPriority()
APUGetPrinterJobCount() Function
Returns the most recent Windows printer status job count for the
printer used by this instance.
Category
View
Syntax
[Result=] APUGetPrinterJobCount(iInstance, iTagCount);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iTagCount
An integer tag that receives the count value.
Remarks
The results are not current unless a query is running. The results are
not current unless an alarm has been printed - the job count is
typically updated when the printer is initially opened, and then each
time an alarm line is printed.
The returned job count value is only valid for Windows printers and
does not have much meaning for printers associated with a parallel or
serial port.
Returns an integer error code.
Example
PJCount is an integer tag that receives the count value from the
specified instance.
Status = APUGetPrinterJobCount(Inst, PJCount);
See Also
APUGetAlarmGroupText(), APUGetConfigurationFilePath(),
APUGetQueryAlarmState(), APUGetQueryFromPriority(),
APUGetQueryProcessingState(), APUGetQueryToPriority()
APUGetQueryAlarmState() Function
Returns the alarm state for the query.
Category
View
Syntax
[Result=] APUGetQueryAlarmState(iInstance, iTagState );
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iTagState
An integer tag that receives the alarm state of the query associated
with the specified instance. The value has following meanings:
0 = All
1 = Acknowledged
2 = Unacknowledged
Remarks
The initial alarm state is read from the .alc file. This function returns
it in the iTagState parameter of the function which is an integer tag.
Returns an integer error code.
Example
APUGetQueryProcessingState() Function
Returns the status of the alarm query processing.
Category
View
Syntax
[Result=] APUGetQueryProcessingState(iInstance, iTagState);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iTagState
An integer tag that receives the processing state from the function. It
has following meaning:
0 = Stop
1 = Start
Remarks
APUFindAlarmGroupInstance() Function
APUFindFileInstance() Function
APUFindPrinterInstance() Function
APUGetInstanceCount() Function
APUIsInstanceUsed() Function
APUFindAlarmGroupInstance() Function
Returns the first instance of the Alarm Printer using the specified
alarm group string.
Category
View
Syntax
[Result=] APUFindAlarmGroupInstance(sGroup, iInstance);
Arguments
sGroup
The name of the alarm group to be found among the instances.
iInstance
An integer tag that receives the value of a found instance that uses
the specified group name.
Remarks
See Also
APUFindFileInstance(), APUFindPrinterInstance(),
APUGetInstanceCount(), APUIsInstanceUsed()
APUFindFileInstance() Function
Finds the first instance of the Alarm Printer using the specified .alc
configuration file.
Category
View
Syntax
[Result=] APUFindFileInstance(sFilePath,iInstance);
Arguments
sFilePath
The path of the .alc configuration file for which the instance is to
be found.
iInstance
An integer tag that receives the number of the instance.
Remarks
See Also
APUFindAlarmGroupInstance(), APUFindPrinterInstance(),
APUGetInstanceCount(), APUIsInstanceUsed()
APUFindPrinterInstance() Function
Finds the first instance of the Alarm Printer using the specified
printer name or port.
Category
View
Syntax
[Result=] APUFindPrinterInstance(sPrinter,iInstance);
Arguments
sPrinter
The name of the printer for which the instance is to be found.
iInstance
An integer tag that receives the number of the instance.
Remarks
APUGetInstanceCount() Function
Returns the number of running instances of the Alarm Printer, up to a
maximum of 16 instances.
Category
View
Syntax
[Result=] APUGetInstanceCount(iCount);
Arguments
iCount
An integer tag that receives the number of instances.
Remarks
APUIsInstanceUsed() Function
Returns a discrete value that indicates the instance is currently in use.
Category
View
Syntax
[Result=] APUIsInstanceUsed(iInstance);
Arguments
iInstance
The number of an instance of Alarm Printer (0 to 15).
Remarks
Example
APUGetPrinterName() Function
APUGetPrinterStatus() Function
APUGetPrinterName() Function
Returns the Windows printer name or port name of the printer used by
this instance.
Category
View
Syntax
[Result=] APUGetPrinterName(iInstance, sTagPrinter);
Arguments
iInstance
The number of the Alarm Printer instance (0 to 15).
sTagPrinter
A message tag that receives the printer name or port name of the
configuration associated with the specified instance.
Remarks
This function returns the value NONE if no printer is configured for
an instance. The printer name is stored and read from the .alc file.
This function returns the printer name or port name to a message tag
as the sTagPrinter parameter.
Returns an integer error code.
Example
PrtName is a message tag that receives the printer name or port name
of the configuration associated with instance 3 of Alarm Printer.
Status = APUGetPrinterName(3,PrtName);
See Also
APUGetPrinterStatus()
APUGetPrinterStatus() Function
Returns the most recent status of the Windows printer used by this
instance.
Category
View
Syntax
[Result=] APUGetPrinterStatus(iInstance,iSelector,
iTagStatus);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iSelector
An integer value specifying the following:
0 = Get status for Alarm Printer Error
1 = Get status for Alarm Printer No Paper
2 = Get status for Alarm Printer Offline
3 = Get status for Alarm Printer Overflow
iTagStatus
An integer or real tag that receives the status of the printer
associated with specified instance number and the type of selection
made by the iSelector parameter.
Remarks
This function returns the printer status to an integer or real tag as the
iTagStatus parameter. The results are not current unless a query is
running and an alarm has been printed. The status typically updates
when the printer initially opens, and then each time an alarm line
prints.
PrtStat is an integer tag that receives the "Printer Offline" status from
the printer associated with instance 5.
Status = APUGetPrinterStatus(5, 2, PrtStat);
See Also
APUGetPrinterName()
APUSetAlarmGroupText() Function
APUSetQueryAlarmState() Function
APUSetQueryFromPriority() Function
APUSetQueryToPriority() Function
APUSetTimeoutValues() Function
APUSetAlarmGroupText() Function
Sets the Alarm Query alarm group text.
Category
View
Syntax
[Result=] APUSetAlarmGroupText(iInstance,sGroup);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
sGroup
Alarm group text.
Remarks
Example
APUSetQueryAlarmState() Function
Sets the alarm state for the query.
Category
View
Syntax
[Result=] APUSetQueryAlarmState(iInstance, iState);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iState
An integer with following possible values:
0 = All
1 = Acknowledged
2 = Unacknowledged
Remarks
This example sets the query of the Alarm Printer instance 3 to query
for acknowledged alarms only.
Status = APUSetQueryAlarmState(3, 1);
See Also
APUSetAlarmGroupText(), APUSetQueryFromPriority(),
APUSetQueryToPriority(), APUSetTimeoutValues()
APUSetQueryFromPriority() Function
Sets the lower boundary or from priority of an alarm query.
Category
View
Syntax
[Result=] APUSetQueryFromPriority(iInstance,iPriority);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iPriority
An integer value for the From Priority (1 to 999).
Remarks
This example sets the From Priority value of the query associated with
the instance value of the Inst integer tag to the value of the FromPri
integer tag.
Status = APUSetQueryFromPriority(Inst, FromPri);
See Also
APUSetAlarmGroupText(), APUSetQueryAlarmState(),
APUSetQueryToPriority(), APUSetTimeoutValues()
APUSetQueryToPriority() Function
Sets the To Priority for the query.
Category
View
Syntax
[Result=] APUSetQueryToPriority(iInstance,iPriority);
Arguments
iInstance
The instance of Alarm Printer (0 to 15).
iPriority
An integer value for the To Priority in the range of 1 to 999. It
should also be set higher than or equal to the From Priority value
of the same query of the specified instance.
Remarks
This example sets the To Priority value of the query associated with
the instance 0 to 240.
Status = APUSetQueryToPriority(0,240);
See Also
APUSetAlarmGroupText(), APUSetQueryAlarmState(),
APUSetQueryFromPriority(), APUSetTimeoutValues()
APUSetTimeoutValues() Function
The APUSetTimeoutValues() function sets time-out intervals in
seconds. A time-out interval controls how many errors caused by
memory access or failing to obtain valid responses are observed while
program is running.
The default memory access time-out is two seconds. The default short
response wait time is 10 second and the default long response wait
time is 20 seconds.
Category
View
Syntax
[Result=] APUSetTimeoutValues(iMemory,iShort, iLong);
Arguments
iMemory
Integer - access time out
iShort
Short response wait time (integer)
iLong
Long response wait time (integer)
Example
Status = APUSetTimeoutValues(iMemory,iShort,iLong);
See Also
APUSetAlarmGroupText(), APUSetQueryAlarmState(),
APUSetQueryFromPriority(), APUSetQueryToPriority()
APUTranslateErrorCode() Function
Converts an error code returned by one of the APU functions into an
English string that briefly describes the error code.
Category
View
Syntax
[Result=] APUTranslateErrorCode(iErrorCode,sTagMessage);
Arguments
iErrorCode
An integer error code, normally returned by most other APU
functions.
sTagMessage
A message tag that receives the error message.
Remarks
This example sets the message tag errmsg to "No instance available."
if there is no instance 15 of Alarm Printer currently running.
Status =
APUTranslateErrorCode(APUSetAlarmGroupText(15,"$system"
), ErrMsg);
259
Chapter 9
Recording Alarms into an
Alarm Database
Alarm Query
InTouch Alarm
Database
Alarm DB Logger
Smart Cache
A
B
B
A
C
Password
wwAdmin
wwadmin
wwPower
wwpower
wwUser
wwuser
In the Server Name box, enter the node name of the computer
where the alarm database is installed.
In User Name box, type the user account name created for the
alarm database.
The read-only Alarm State box shows the alarm state for logging.
The read-only Query Type box shows the type of query.
3
In the From Priority box, enter the starting value of the alarm
priority range.
In the To Priority box, enter the ending value of the alarm priority
range.
In the Alarm Query box, type the alarm queries that you want to
use to store or retrieve data from the alarm database.
Select the Log Events check box if you want to store InTouch event
records to the alarm database. You can also store events coming
from an ArchestrA Galaxy.
Click Finish.
Click Finish.
Datatype
Description
EventStamp
Datetime
AlarmState
nChar
TagName
nChar
Description
nVarchar
Area
nChar
Type
nChar
Value
nChar
CheckValue
nChar
Priority
Integer
Alarm priority.
Category
nChar
Provider
nChar
Operator
nChar
DomainName
nChar
UserFullName
nChar
UNACKDuration
Float
User1
Float
User2
Float
User 3
nChar
Column Name
Datatype
Description
EventStampUTC
DateTime
Millisec
Small Int
OperatorNode
nvarchar(32)
Datatype
Description
EventStamp
Datetime
AlarmState
nChar
TagName
nChar
Description
nVarchar
Area
nChar
Type
nChar
Value
nChar
CheckValue
nChar
Priority
Integer
Alarm priority.
Category
nChar
Provider
nChar
Operator
nChar
DomainName
nChar
Name of domain.
UserFullName
nChar
AlarmDuration
Float
User1
Float
User2
Float
Column Name
Datatype
Description
User 3
nChar
EventStampUTC
DateTime
Millisec
Small Int
This example selects all records from the Alarm History view with a
priority greater than 100:
SELECT * FROM v_AlarmHistory WHERE Priority >100
Datatype
Description
EventStamp
Datetime
TagName
nChar
Description
nVarChar
Area
nChar
Type
nChar
Value
nChar
CheckValue
nChar
Category
nChar
Provider
nChar
Operator
nChar
Column Name
Datatype
Description
DomainName
nChar
Name of domain.
UserFullName
nChar
User1
Float
User2
Float
User 3
nChar
EventStampUTC
DateTime
Millisec
Small Int
Datatype
Description
EventStamp
Datetime
AlarmState
nChar
TagName
nChar
Description
nVarchar
Area
nChar
Type
nChar
Value
nChar
CheckValue
nChar
Priority
Integer
Alarm priority.
Column Name
Datatype
Description
Category
nChar
Provider
nChar
Operator
nChar
DomainName
nChar
Name of domain.
UserFullName
nChar
UNACKDuration
Float
User1
Float
User2
Float
User 3
nChar
EventStampUTC
DateTime
Millisec
Small Int
Datatype
Description
EventStamp
Datetime
AlarmState
nChar
TagName
nChar
Description
nVarchar
Area
nChar
Type
nChar
Value
nChar
Column Name
Datatype
Description
CheckValue
nChar
Priority
Integer
Alarm priority.
Category
nChar
Provider
nChar
Operator
nChar
DomainName
nChar
Name of domain.
UserFullName
nChar
AlarmDuration
Float
User1
Float
User2
Float
User 3
nChar
EventStampUTC
DateTime
Millisec
Small Int
Datatype
Description
EventStamp
Datetime
EventType
NChar
AlarmType
NChar
AlarmState
NChar
NodeName
NChar
Node of alarm.
TagName
NChar
GroupName
NChar
Comment
NChar
Value
Float
Limit
Float
ValueString
NChar
Operator
NChar
Operator name.
Priority
Integer
Priority.
Units
NChar
Column Name
Datatype
Description
TagName
Nchar
GroupName
Nchar
AlarmType
Nchar
AlarmClass
Nchar
AlarmCount
Integer
Priority
Integer
Alarm priority.
Provider
Nchar
Comment
Nchar
Column Name
Datatype
Description
TagName
NChar
Area
NChar
Type
NChar
Type of event.
Category
NChar
EventCount
Integer
Number of times the event of this Type for the TagName has
occurred in the specified time range.
Provider
NChar
Comment
NChar
277
Chapter 10
Viewing Recorded Alarms
You use the Alarm DB View ActiveX control to visualize data from the
alarm database. Use this control to show all alarm and event
information generated from an InTouch application during run time.
For this control, you can configure:
In the Server Name box, enter the node name of the computer
where the alarm database is installed.
Select the Auto Connect check box to have the Alarm DB View
control automatically connect to the alarm database when the
InTouch application starts running.
If you do not select the Auto Connect check box, you must
configure the Alarm DB View control to connect to the alarm
database by explicitly calling the Connect() method. For more
information about the Connect method, see "Connect() Method" on
page 330.
Click Apply.
Click the Show Heading check box to show the control heading.
Click the Show Status Bar check box to show the status bar.
4
Click Apply.
Click Apply.
In the Display Mode list, click the type of historical records from
the list:
Click Alarm & Event History to show both alarm and event
historical database records.
Click Apply.
In the Name column, select the check boxes next to the names of
the columns that you want to appear in the Alarm DB View
control. You must select at least one column from the list.
Column
Name
Description
Time
State
Class
Type
Priority
Name
Group
Provider
Value
Limit
Operator
Operator Full
Name
Column
Name
Description
Operator
Node
Operator
Domain
Alarm
Comment
User1
User2
User3
Duration
UTC Time
To change the name of a column or its width, select the column and
click Edit. The Edit dialog box appears.
In the New Width box, type the column width. The column
width can range from 1 to 999 pixels.
Click OK.
Click Apply.
Select the Enable Reset Menu check box to enable the Reset
menu option in the shortcut menu of the control at run time.
The Reset menu arranges all the columns to the settings saved
at design time.
Select the Enable Sort Menu check box to enable the Sort menu
option on the shortcut menu of the control at run time. This
menu shows the Secondary Sort menu used to set the
user-defined sorting of columns.
Select the Enable Filter Menu check box to enable the Filter
menu option on the shortcut menu of the control at run time.
This menu shows the filter menu used to set the user-defined
filtering criteria.
4
Click the Resize Column check box to allow resizing the columns.
Click Apply.
Description
Example
Two-digit day
31
Aug
Four-digit year
2007
Two-digit month
11
06/2007
Two-digit year
07
#x
Friday, August
09, 2002
September
06-07
String
character
Description
Example
06.07
24 hour time
22:15
Minute
AM or PM display
Seconds
16:41:07
Fractions of a second
16:41:07.390
04:41 PM
00:41
You can also manually enter your own format string in the list box
using custom text and the formatting characters. Some sample
time format character strings are shown below:
Time Format String
Display
%d %b
09 Aug
%m/%d/%Y
08/09/2002
%#x
%Y-%m-%d
2002-08-09
%m/%d/%Y %H:%M %p
08/09/2002 16:56 PM
%m/%d/%Y %H:%M:%s %p
08/09/2002 16:56:38.07
%I:%M %p
04:56 PM
In the Displayed Time Zone list, click the desired time zone:
Time Zone
Description
GMT
Local Time
Origin Time
Click Apply.
To use a specific start time and end time, click Use Specific Time
and then configure the details.
a
In the Start Time box, enter the start time to retrieve the
alarm records. The string must be in MM/DD/YYYY
HH:MM:SS format. Use any date in any time zone from
midnight, January 1, 1970, to January 18, 19:14:07, 2038.
In the End Time box, enter the end time to stop retrieving
alarm records. The string must be in MM/DD/YYYY
HH:MM:SS format. Use any date in any time zone from
midnight, January 1, 1970, to January 18, 19:14:07, 2038.
In the Query Time Zone area, click either UTC or Origin Time.
UTC time is Greenwich Mean Time, also known as
Coordinated Universal Time or Zulu. Origin time is the current
time in the operators time zone.
Click Apply.
If you are running several different computers with different time zone
settings, and they are all logging to the same alarm database, each
record will get the time stamps in UTC, plus the time zone offset and
daylight saving adjustment needed to convert that time stamp to the
corresponding Origin Time. As a result, every entry in the database
has two time stamps: the UTC time and the Origin Time from the
computer that did the logging. This makes retrievals faster. In the
table entries, the UTC time is identified as the "Transition Time" and
the Origin Time is identified as the "EventStamp."
In the left pane, select filter fields and then click Add to include
them in the filter, which is shown in the right pane. The filter
fields are described in the following table:
Field name
State
Class
Alarm class.
Type
Alarm type.
Priority
Alarm priority.
Name
Alarm name.
Group
Provider
Alarm provider.
Value
Limit
Operator
Operator.
OperatorFullName
OperatorNode
OperatorDomain
Comment
Alarm comment.
User1
User2
Field name
User3
Duration
To remove a field from the filters pane, click the field you want to
delete and click Delete. Deleting a filter cannot be undone. When a
message appears, click Yes.
Configure the criteria for each filter field. For more information,
see "Defining the Column Filter Criteria" on page 292.
Configure the operators and grouping for the filter. For more
information, see "Grouping Alarm Columns" on page 293.
In the Filter Favorites File box, type the network path and file
name or click the ellipse button to browse for the file.
To edit the Filter Favorites file, click the Edit Favorites File
button. The Filter Favorites window opens, allowing you to
add, modify, or delete filters from your favorites file. When you
are done, click OK to save your changes and close the window.
Click Apply.
Right-click the field and then click Edit Filter. The Define Filter
dialog box appears.
In the Value box, type the criteria that must be matched. The Value
box does not accept values that cannot be processed for the selected
query. The Value box accepts the following wildcard characters
when the Like and Not Like filter operators are used for
alphanumeric column names:
Character
Description
[]
[^]
Field
Limit
All fields
Priority
User1,
User2
Click OK.
The AND operator returns records that meet all values of the
selected fields.
The OR operator returns records that meet the values of any of the
selected fields.
To use AND/OR operators to set the filter selection criteria, the
respective fields must be grouped together. Only a single filter
expression can be created on an item in the filters pane. If multiple
expressions are needed, then the item must be added to the filters
pane again.
By default, the grouped fields have the AND operator.
The AND and OR operators are parent nodes. The fields selected
under each parent node are child nodes. You cannot drag fields parent
nodes to child nodes.
To group alarm columns
1
Right-click the filters and click Copy. To move the filters, click Cut.
Open the next instance of the Alarm DB View control and click the
Query Filter tab.
Description
ACK
ACK_ALM
UNACK_ALM
ACK_RTN
UNACK_RTN
Value
Description
Configure the color for each of the following by clicking the color
box to open the palette.
Option
Description
Alarm Return
Forecolor
Alarm Return
Backcolor
Event Forecolor
Event Backcolor
In the Alarm Priority boxes, type the breakpoint values for the
alarm display. You can assign breakpoint values so that alarms
will appear in different colors depending on the Alarm Priority.
The default minimum and maximum alarm priority values are 1
and 999, respectively.
For example, you set the Unack Alm Forecolor to be orange for the
priority range of 250 to 499 and red for the priority range of 1 to
249. If an alarm occurs with a priority of 254, it is shown in an
orange font. If an alarm occurs with a priority of 12, it is shown in
a red font.
Configure the color for each of the following by clicking the color
box to open the palette.
Option
Description
Unack Alm
Forecolor
Unack Alm
Backcolor
Ack Alm
Forecolor
Ack Alm
Backcolor
Click Apply.
In the Primary Sort Column list, click the name of the primary sort
column. Only visible columns appear in the Sort Column list. If
you do not see the column you want, click the General tab and
select the column from Column Details.
In the Secondary Sort Column list, click the name of the secondary
sort column.
Click OK.
Sorting Records
You can sort records in the display. Click on the heading to sort all the
rows.
Right-click in the control and click Sort to open the Secondary Sort
dialog box, where you can do single and multiple column sorting, in
ascending or descending order.
To specify the columns to be sorted, select the check box beside the
column name. Use the Sort Order arrow keys to rearrange the columns.
If multiple alarm events have the same time stamp, they may not
appear in the expected order.
For example, if the desired sorting is in descending order based on the
alarm state first, then:
1
Click OK.
The left frame shows the server name and the database connected.
The middle frame shows the number of the records that is shown
out of the total number of records that is returned by the query.
The right side of the frame shows the connection status with the
server.
AckAlmBackColor Property
Gets or sets the acknowledged alarm background color. This setting
overrides the individual range color settings for acknowledged alarms
(AckAlmBackColorRange1 to AckAlmBackColorRange4).
Type
Integer
Default
White
Syntax
Object.AckAlmBackColor [= color]
Value
color
A value or constant that determines the color of the background.
AckAlmBackColorRange1 Property
Gets or sets the acknowledged alarm background color. This color
applies to the records shown in the control with state ACK_ALM with
priorities in the range 1 to ColorPriorityRange1.
Type
Integer
Default
White
Syntax
Object.AckAlmBackColorRange1 [= color]
Value
color
A value or constant that determines the color of the background.
AckAlmBackColorRange2 Property
Gets or sets the acknowledged alarm background color. This color
applies to the records shown in the control with state ACK_ALM with
priorities in the range ColorPriorityRange1 to ColorPriorityRange2.
Type
Integer
Default
White
Syntax
Object.AckAlmBackColorRange2 [= color]
Value
color
A value or constant that determines the color of the background.
AckAlmBackColorRange3 Property
Gets or sets the acknowledged alarm background color. This color
applies to the records shown in the control with state ACK_ALM with
priorities in the range ColorPriorityRange2 to ColorPriorityRange3.
Type
Integer
Default
White
Syntax
Object.AckAlmBackColorRange3 [= color]
Value
color
A value or constant that determines the color of the background.
AckAlmBackColorRange4 Property
Gets or sets the acknowledged alarm background color. This color
applies to the records shown in the control with state ACK_ALM with
priorities in the range ColorPriorityRange3 to 999.
Type
Integer
Default
White
Syntax
Object.AckAlmBackColorRange4 [= color]
Value
color
A value or constant that determines the color of the background.
AckAlmForeColor Property
Gets or sets the acknowledged alarm foreground color. This setting
overrides the individual range color settings for acknowledged alarms
(AckAlmForeColorRange1 to AckAlmForeColorRange4).
Type
Integer
Default
Black
Syntax
Object.AckAlmForeColor [= color]
Value
color
A value or constant that determines the color of the text.
AckAlmForeColorRange1 Property
Gets or sets the acknowledged alarm foreground color. The color
applies to the records shown in the control with state ACK_ALM with
priorities in the range 1 to ColorPriorityRange1.
Type
Integer
Default
Black
Syntax
Object.AckAlmForeColorRange1 [= color]
Value
color
A value or constant that determines the color of the text.
AckAlmForeColorRange2 Property
Gets or sets the acknowledged alarm foreground color. The color
applies to the records shown in the control with state ACK_ALM with
priorities in the range ColorPriorityRange1 to ColorPriorityRange2.
Type
Integer
Default
Black
Syntax
Object.AckAlmForeColorRange2 [= color]
Value
color
A value or constant that determines the color of the text.
AckAlmForeColorRange3 Property
Gets or sets the acknowledged alarm foreground color. The color
applies to the records shown in the control with state ACK_ALM with
priorities in the range ColorPriorityRange2 to ColorPriorityRange3.
Type
Integer
Default
Black
Syntax
Object.AckAlmForeColorRange3 [= color]
Value
color
A value or constant that determines the color of the text.
AckAlmForeColorRange4 Property
Gets or sets the acknowledged alarm foreground color. The color
applies to the records shown in the control with state ACK_ALM with
priorities in the range ColorPriorityRange3 to 999.
Type
Integer
Default
Black
Syntax
Object.AckAlmForeColorRange4 [= color]
Value
color
A value or constant that determines the color of the text.
AckRtnBackColor Property
Gets or sets the background color of acknowledged alarms that return
to normal (ACK_RTN).
Type
Integer
Default
White
Syntax
Object.AckRtnBackColor [= color]
Value
color
A value or constant that determines the color of the background.
AckRtnForeColor Property
Gets or sets the text color of acknowledged alarms that return to
normal (ACK_RTN).
Type
Integer
Default
Blue
Syntax
Object.AckRtnForeColor [= color]
Value
color
A value or constant that determines the color of the text.
AlmRtnBackColor Property
Gets or sets the returned alarm background color. This color applies to
the records shown with state ALM_RTN.
Type
Integer
Default
White
Syntax
Object.AlmRtnBackColor [= color]
Value
color
A value or constant that determines the color of the background.
AlmRtnForeColor Property
Gets or sets the returned alarm foreground color. This color applies to
the records shown with state ALM_RTN.
Type
Integer
Default
Blue
Syntax
Object.AlmRtnForeColor [= color]
Value
color
A value or constant that determines the color of the text.
AutoConnect Property
Gets or sets a value that determines whether the control automatically
connects to the database at run time.
Data Type
Integer
Default
False
Syntax
Object.AutoConnect [= Integer]
Value
Integer
An integer expression specifying whether the control connects to
the database at run time.
True = Connects to the database.
False = (Default) Does not connect to the database.
Remarks
ColorPriorityRange1 Property
Sets the boundary of the priority range in which alarms are to be
shown. The value of this property must be greater than one and less
than the value for ColorPriorityRange2.
Type
Integer
Default
250
Syntax
Object.ColorPriorityRange1 [= integer or priority]
ColorPriorityRange2 Property
Sets the boundary of the priority range in which alarms are to be
shown. The value of this property must be greater than the value for
ColorPriorityRange1 and less than the value for ColorPriorityRange3.
Type
Integer
Default
500
Syntax
Object.ColorPriorityRange2 [= integer or priority]
ColorPriorityRange3 Property
Sets the boundary of the priority range in which alarms are to be
shown. The value of this property must be greater than the value of
ColorPriorityRange2 and less than 999.
Type
Integer
Default
750
Syntax
Object.ColorPriorityRange3 [= integer or priority]
ColumnResize Property
Returns or sets a value that determines whether the columns can be
resized.
Type
Discrete
Default
True
Syntax
Object.ColumnResize [= Discrete]
Value
Discrete
True = (Default) Columns can be resized at runtime.
False = Columns cannot be resized.
ConnectStatus Property
Returns the status of the connection. This property is read-only.
Data Type
Message
Syntax
Object.ConnectStatus
Values
Example
CustomMessage Property
Gets or sets the message that the Alarm DB View control shows when
no alarm records can be retrieved from the alarm database.
Type
Message
Default
DatabaseName Property
Specifies the database to connect to.
Type
Message
Syntax
Object.DatabaseName [= text]
DisplayMode Property
Returns the display mode of the control, which determines if just
alarms, just events, or both alarms and events are shown. This
property is read-only.
Type
String
Default
Remarks
Example
DisplayedTimeZone Property
Gets or sets the shown time zone.
Type
String
Default
Local Time
Syntax
Object.DisplayedTimeZone [= message]
Remarks
Duration Property
Gets or sets the duration used to set the start and end time.
Type
Message
Default
"Last Hour"
Syntax
Object.Duration [= text]
Value
text
A string expression that contains the duration. This property must
have one of the following strings:
Last Minute
Last 5 Minutes
Last 15 Minutes
Last Half Hour
Last Hour
Last 2 Hours
Last 4 Hours
Last 8 Hours
Last 12 Hours
Last Day
Last 2 Days
Last 3 Days
Last Week
Last 2 Weeks
Last 30 days
Last 90 days
EndTime Property
Returns or sets the end time.
Type
Message
Syntax
Object.EndTime [= text]
Value
text
A string expression that evaluates to the end time. The string
returned is always in the format (MM/DD/YYYY HH:MM:SS). The
same format is also required to set the value of the string. This
property handles date in any time zone from midnight, January 1,
1970, to January 18, 19:14:07, 2038.
EventBackColor Property
Gets or sets the event alarm background color. This color applies to the
records shown in the control with state EVT_EVT.
Type
Integer
Default
White
Syntax
Object.EventBackColor [= color]
Value
color
A value or constant that determines the color of the background.
EventForeColor Property
Gets or sets the event alarm foreground color. This color applies to the
records shown in the control with state EVT_EVT.
Type
Integer
Default
Red
Syntax
Object.EventForeColor [= color]
Value
color
A value or constant that determines the color of the text.
FilterFavoritesFile Property
Gets or sets the filter favorites file. This file is used by the Filter
Favorites dialog box to read or write filter favorites.
Type
String
Default
Null
Syntax
Object.FilterFavoritesFile [= String]
FilterMenu Property
Gets or sets a value that determines whether the Filter menu item is
shown in the shortcut menu.
Type
Discrete
Default
True
Syntax
Object.FilterMenu [= Discrete]
Value
FilterName Property
Returns the name of the current filter (if any).
Type
String (read-only)
Default
Null
Syntax
Object.FilterName [= String]
FromPriority Property
Gets or sets the From Priority value of the control.
Type
Integer
Default
1
Syntax
Object.FromPriority [= integer]
Remarks
You can use this property to filter which alarm records are shown. For
example, if you set this property to 760, then only alarms with priority
from 760 to the ToPriority property value are shown.
GroupExactMatch Property
When the GroupExactMatch property is true, only alarms with alarm
group names that exactly match the GroupName property value are
shown. When it is false, then the group name need only specify part of
the alarm group names it is filtering for.
Type
Discrete
Default
False
Syntax
Object.GroupExactMatch [= discrete]
Remarks
Use this property together with the GroupName property to filter the
Alarm DB View control.
Example
For example:
#AlarmDBViewCtrl1.GroupName = "Group"
#AlarmDBViewCtrl1.GroupExactMatch = 0;
#AlarmDBViewCtrl1.Refresh();
GroupName Property
Gets or sets a alarm group name filter for the current Alarm DB View
control.
Type
String
Default
(none)
Syntax
Object.GroupName [= GroupName]
Remarks
MaxRecords Property
Returns or sets the maximum records to be retrieved.
Type
Integer
Default
100
Syntax
Object.MaxRecords [=integer]
Value
integer
An integer expression specifying the number of records to be
retrieved at a given time. The maximum records can be in the
range from 1 to 1000. For best performance keep this value as
small as needed.
Password Property
Returns or sets the SQL Server password for retrieving data.
Type
Message
Syntax
Object.Password [= text]
Value
text
A string expression that evaluates to the password.
PrimarySort Property
Gets or sets the primary column name used to sort the alarm display.
Type
Message
Default
(none)
Syntax
Object.PrimarySort [= message]
ProviderExactMatch Property
When the ProviderExactMatch property is true, only alarms with
alarm provider names that exactly match the ProviderName property
value are shown. When it is false, then the provider name need only
specify part of the alarm provider names it is filtering for.
Type
Discrete
Default
False
Syntax
Object.ProviderExactMatch [= discrete]
Remarks
For example:
#AlarmDBViewCtrl1.ProviderName = "Provider"
#AlarmDBViewCtrl1.ProviderExactMatch = 0;
#AlarmDBViewCtrl1.Refresh();
ProviderName Property
Gets or sets a alarm provider name filter for the current Alarm DB
View control.
Type
String
Default
(none)
Syntax
Object.ProviderName [= ProviderName]
Remarks
QueryTimeZoneName Property
Gets or sets the time zone when a specific time is used for the query.
Type
Discrete
Default
False
Syntax
Object.QueryTimeZone [= Discrete]
Value
True = GMT
False = Origin time, which is the local time of the alarm provider.
RefreshMenu Property
Gets or sets a value that determines whether the Refresh menu item
is shown in the shortcut menu.
Type
Discrete
Default
True
Syntax
Object.RefreshMenu [= Discrete]
Value
ResetMenu Property
Gets or sets a value that determines whether the Reset menu item is
shown in the shortcut menu.
Type
Discrete
Default
True
Syntax
Object.ResetMenu [= Discrete]
Value
RowCount Property
Returns the number of records shown in the control. This property is
read-only.
Type
Integer
Syntax
Object.RowCount
Example
RowSelection Property
Returns or sets a value that determines whether the row selection is
allowed at run time.
Type
Discrete
Default
True
Syntax
Object.RowSelection [= Discrete]
Value
Discrete
True = (Default) Row selection is allowed.
False = Row Selection is not allowed.
Remarks
SecondarySort Property
Gets or sets the secondary column name used to sort the alarm
display.
Type
Message
Default
(none)
Syntax
Object.SecondarySort [= text]
ServerName Property
Returns or sets the server name to which the control connects to
retrieve data.
Type
Message
Syntax
Object.ServerName [= text]
ShowFetch Property
Returns or sets a value that determines whether the retrieval buttons
are shown.
Type
Discrete
Default
True
Syntax
Object.ShowFetch [= Discrete]
Value
Discrete
True = (Default) Retrieve buttons are shown.
False = Retrieve buttons are not shown.
ShowGrid Property
Returns or sets a value that determines whether the grid lines are
shown.
Type
Discrete
Default
False
Syntax
Object.ShowGrid [= Discrete]
Value
Discrete
True = Grid lines are shown.
False = (Default) Grid lines are not shown.
ShowHeading Property
Returns or sets a value that determines whether the column headings
are shown.
Type
Discrete
Default
True
Syntax
Object.ShowHeading [= Discrete]
Value
Discrete
True = (Default) Column headings are shown.
False = Column headings are not shown.
ShowMessage Property
Determines if the customized message for "There are no items to show
in this view" is shown when there are no records in the alarm
database.
Type
Discrete
Default
False
Syntax
Object.ShowMessage [= discrete]
ShowStatusBar Property
Returns or sets a value that determines whether the status bar is
shown.
Type
Discrete
Default
True
Syntax
Object.ShowStatusBar [= Discrete]
Value
Discrete
True = (Default) Status bar is shown.
False = Status bar is not shown.
SilentMode Property
Gets or sets a value that determines whether the control is in Silent
mode.
Type
Discrete
Default
False
Syntax
Object.SilentMode [= Discrete]
Value
SortMenu Property
Returns or sets a value that determines whether the Sort menu item is
shown in the shortcut menu.
Type
Discrete
Default
True
Syntax
Object.SortMenu [= Discrete]
Value
A discrete expression.
True = (Default) Sort menu item is shown
False = Sort menu item is not shown.
SortOrder Property
Gets or sets the sort order of the alarms according to the column to be
sorted (the primary sort column).
Type
Discrete
Default
True
Syntax
Object.SortOrder [= discrete]
Value
An discrete expression.
True = Ascending order.
False = Descending order.
SpecificTime Property
Returns or sets a value that determines whether the control uses the
StartTime and EndTime properties, or computes the start time and
end time based on the value of the Duration property.
Type
Discrete
Default
False
Syntax
Object.SpecificTime [= Discrete]
Value
StartTime Property
Returns or sets the start time.
Type
Message
Syntax
Object.StartTime [= text]
Value
text
A string expression that evaluates to the Start Time. The string
returned is always in the format (MM/DD/YYYY HH:MM:SS). The
same format is also required to set the value of the string. This
property handles date in any time zone from midnight, January 1,
1970, to January 18, 19:14:07, 2038
Time Property
Gets and sets the time format to be used in the display.
Type
Message
Default
%m/%d/%Y %I:%M:%S %p
Syntax
Object.Time [= message]
Remarks
For more information on the time format strings, see "Configuring the
Shown Time Format and Time Zone for Alarm Records" on page 286.
ToPriority Property
Gets or sets the To Priority value of the control.
Type
Integer
Default
999
Syntax
Object.ToPriority [= integer]
Remarks
Use this property to filter which alarm records are shown. For
example, if you set this property to 900, then only alarms with priority
from the FromPriority property value to 900 are shown.
TotalRowCount Property
Returns the total number of records for the current query. This
property is read-only.
Type
Integer
Syntax
Object.TotalRowCount
Remarks
The row count is the number of rows returned in the current query,
which usually would be same as MaxRecords property except for the
case when number of records retrieved are less than the MaxRecords
property. For example, if there are 950 records for a specific criterion
and the MaxRecords property is 100, then in the last page there would
be 50 records and the row count would be 50. In the same example, the
TotalRowCount property would always be 950.
Example
The name of the control is AlmDbView1 and tagname is an integer tag.
tagname = #AlmDbView1.TotalRowCount;
UnAckAlmBackColor Property
Gets or sets the unacknowledged alarm background color. This color
applies to all records shown in the control with state UNACK_ALM. It
overrides any settings made by the UnAckAlmBackColorRange1 to
UnAckAlmBackColorRange4 property values.
Type
Integer
Default
White
Syntax
Object.UnAckAlmBackColor [= color]
Value
color
A value or constant that determines the color of the specified
object.
UnAckAlmBackColorRange1 Property
Gets or sets the unacknowledged alarm background color. This color
applies to the records shown in the control with state UNACK_ALM
with priorities in the range 1 to ColorPriorityRange1.
Type
Integer
Default
White
Syntax
Object.UnAckAlmBackColorRange1 [= color]
Value
color
A value or constant that determines the color of the specified
object.
UnAckAlmBackColorRange2 Property
Gets or sets the unacknowledged alarm background color. This color
applies to the records shown in the control with state UNACK_ALM
with priorities in the range ColorPriorityRange1 to
ColorPriorityRange2.
Type
Integer
Default
White
Syntax
Object.UnAckAlmBackColorRange2 [= color]
Value
color
A value or constant that determines the color of the specified
object.
UnAckAlmBackColorRange3 Property
Gets or sets the unacknowledged alarm background color. This color
applies to the records shown in the control with state UNACK_ALM
with priorities in the range ColorPriorityRange2 to
ColorPriorityRange3.
Type
Integer
Default
White
Syntax
Object.UnAckAlmBackColorRange3 [= color]
Value
color
A value or constant that determines the color of the specified
object.
UnAckAlmBackColorRange4 Property
Gets or sets the unacknowledged alarm background color. This color
applies to the records shown in the control with state UNACK_ALM
with priorities in the range ColorPriorityRange3 to 999.
Type
Integer
Default
White
Syntax
Object.UnAckAlmBackColorRange4 [= color]
Value
color
A value or constant that determines the color of the specified
object.
UnAckAlmForeColor Property
Gets or sets the unacknowledged alarm text color. This color applies to
all records shown in the control with state UNACK_ALM. It overrides
any settings made by the UnAckAlmForeColorRange1 to
UnAckAlmForeColorRange4 property values.
Type
Integer
Default
Red
Syntax
Object.UnAckAlmBackColor [= color]
Value
color
A value or constant that determines the color of the text.
UnAckAlmForeColorRange1 Property
Gets or sets the unacknowledged alarm foreground color. This color
applies to the records shown in the control with state UNACK_ALM
with priorities in the range 1 to ColorPriorityRange1.
Type
Integer
Default
Red
Syntax
Object.UnAckAlmForeColorRange1 [= color]
Value
color
A value or constant that determines the color of the specified
object.
UnAckAlmForeColorRange2 Property
Gets or sets the unacknowledged alarm foreground color. This color
applies to the records shown in the control with state UNACK_ALM
with priorities in the range ColorPriorityRange1 to
ColorPriorityRange2.
Type
Integer
Default
Red
Syntax
Object.UnAckAlmForeColorRange2 [= color]
Value
color
A value or constant that determines the color of the specified
object.
UnAckAlmForeColorRange3 Property
Gets or sets the unacknowledged alarm foreground color. This color
applies to the records shown in the control with state UNACK_ALM
with priorities in the range ColorPriorityRange2 to
ColorPriorityRange3.
Type
Integer
Default
Red
Syntax
Object.UnAckAlmForeColorRange3 [= color]
Value
color
A value or constant that determines the color of the specified
object.
UnAckAlmForeColorRange4 Property
Gets or sets the unacknowledged alarm foreground color. This color
applies to the records shown in the control with state UNACK_ALM
with priorities in the range ColorPriorityRange3 to 999.
Type
Integer
Default
Red
Syntax
Object.UnAckAlmForeColorRange4 [= color]
Value
color
A value or constant that determines the color of the specified
object.
UnAckOrAlarmDuration Property
The duration column shows either UNACK Duration or Alarm
Duration. FALSE (0) is UNACK Duration and TRUE (1) is Alarm
Duration.
Type
Integer
Default
False
Syntax
Object.UnAckOrAlarmDuration [= integer]
UserID Property
Returns or sets the user ID used as the control to connect to the SQL
Server to retrieve the data.
Type
Message
Syntax
Object.UserID [= text]
Value
text
A string expression that evaluates the user ID.
Connect() Method
Connects the control to the database and if the connection is
successful, shows the set of records in the range 1 to MaxRecords.
Syntax
Object.Connect
Example
Disconnect() Method
Disconnects the control from the database.
Syntax
Object.Disconnect
Example
SelectQuery() Method
GetPrevious() Method
GetNext() Method
Refresh() Method
SelectQuery() Method
Sets the current display to the query name specified in the .xml file.
Syntax
Object.SelectQuery(QueryName);
Parameters
QueryName
Name of a query defined in the filter favorites file.
Example
This example applies the filter criteria defined by the query called
"HighPriority" in the filter favorites file that is currently associated
with the AlmDbView1 control.
#AlmDbView1.SelectQuery("HighPriority");
GetPrevious() Method
Retrieves the previous set of records from the database (if any).
Syntax
Object.GetPrevious();
Example
GetNext() Method
Retrieves the next set of records from the database (if any).
Syntax
Object.GetNext
Example
Refresh() Method
Refreshes the control from the database, and if the connection is
successful, displays the set of records in the range 1 to MaxRecords.
Syntax
Object.Refresh
Remarks
GetItem() Method
GetSelectedItem() Method
GetItem() Method
Returns the data at a specified row & column as string.
Syntax
Object.GetItem(Integer, message)
Parameters
Integer
An integer expression that evaluates to a specific row in the
control.
Message
A string expression that evaluates to the column name in the
control.
Example
GetSelectedItem() Method
Returns the data for the selected row, given column as string
Syntax
Object.GetSelectedItem(message)
Parameters
Message
An string expression that evaluates to the column name in the
control
Example
SortOnCol() Method
ShowSort() Method
Reset() Method
SortOnCol() Method
Performs primary sorting on alarm records that are shown.
Syntax
Object.SortOnCol(message, Integer)
Parameters
Message
A string expression that evaluates to the column name in the
control
Integer
Sort direction to be used. 0 = ascending, 1 = descending.
Example
ShowSort() Method
Shows the Secondary Sort dialog box if the SortMenu property is
enabled.
Syntax
Object.ShowSort
Example
Reset() Method
Resets all the columns to the settings saved at design time.
Syntax
Object.Reset
Example
ShowContext() Method
Shows the shortcut menu if any one of RefreshMenu or ResetMenu or
SortMenu property is enabled.
Syntax
Object.ShowContext
Example
ShowFilter() Method
Shows the Filter Favorites dialog box.
Syntax
Object.ShowFilter
Example
AboutBox() Method
Shows the About dialog box.
Syntax
Object.AboutBox
Example
GetLastError() Method
Returns the last error message if the Alarm DB View control is in
silent mode.
Syntax
Object.GetLastError()
Example
Click
DoubleClick
ShutDown
StartUp
The Click event has one parameter called ClicknRow, which identifies
the row that is clicked at run time.
The DoubleClick event has one parameter called DoubleClicknRow,
which identifies the row that is double-clicked at run time.
339
Chapter 11
Analyzing Alarm Distribution
Across Tags
Using the Alarm Pareto ActiveX control, you can analyze which
alarms and events occur most frequently in a given production system.
You can also analyze alarm frequency by the time periods during
which they occur.
The analysis capabilities of the Alarm Pareto control identify the
largest issues of your production systems. The Alarm Pareto control
helps you recognize where you should focus your efforts to achieve the
most significant improvements.
The Alarm Pareto control shows a bar chart representing alarm
activity.
For more information about ActiveX controls, see ActiveX Controls in
the InTouch HMI Visualization Guide.
In the Server Name box, enter the node name of the computer
where the alarm database is installed.
In the User box, type the name of a valid user account for the
alarm database.
Select the Auto Connect check box if you want the Alarm Pareto
control to automatically connect to the alarm database as soon as
WindowViewer starts up.
If you dont select the Auto Connect check box, you must configure
the Alarm Pareto control to connect to the alarm database by
explicitly calling the Connect() method. For more information
about the Connect method, see "Connect() Method" on page 356.
Click Apply.
Right-click the Alarm Pareto control and then click Properties. The
AlarmPareto Properties dialog box appears.
Description
Bar Count
Display Mode
No-Match
Message
Property
Description
Vertical
Horizontal
Show Status
Bar
Silent Mode
Auto Font
Show Node
Name
Show Selected
in Status Bar
Consolidated
Alarms
Show Count in
Percentages
Show Time in
State
Click Apply.
Click the color that you want to assign for each of the following
chart properties:
Property
Description
Background
Color
Bar Color
Font Color
Select Color
Click Apply.
Right-click the Alarm Pareto control and then click Properties. The
AlarmPareto Properties dialog box appears.
Click OK.
Right-click the Alarm Pareto control and then click Properties. The
AlarmPareto Properties dialog box appears.
Select the Enable Refresh Menu check box to allow the run
time user to refresh the data shown in the Alarm Pareto trend
and show the records in the range from 1 to the number
defined by the MaxRecords property.
Select the Enable Filter Menu check box to allow the user to
show the Filter Favorites dialog box to select a file containing
database query values for the Alarm Pareto trend.
Select the Enable Reset Menu check box to allow the user to
restore the run-time Alarm Pareto chart to the original values
specified from WindowMaker. All run-time changes made by
an operator revert to the original design-time values.
Click Apply.
Right-click the Alarm Pareto control and then click Properties. The
AlarmPareto Properties dialog box appears.
Click Alarm & Event History to show both alarm and event
historical database records.
Click Apply.
Right-click the Alarm Pareto control and then click Properties. The
AlarmPareto Properties dialog box appears.
To use a specific start time and end time, click Use Specific Time
and then configure the details.
a
In the Start Time box, enter the start time to retrieve the
alarm records. The string must be in MM/DD/YYYY
HH:MM:SS format. Use any date in any time zone from
midnight, January 1, 1970, to January 18, 19:14:07, 2038.
In the End Time box, enter the end time to stop retrieving
alarm records. The string must be in MM/DD/YYYY
HH:MM:SS format. Use any date in any time zone from
midnight, January 1, 1970, to January 18, 19:14:07, 2038.
In the Query Time Zone area, click either UTC or Origin Time.
UTC time is Greenwich Mean Time, also known as
Coordinated Universal Time or Zulu. Origin time is the current
time in the operators time zone.
Click Apply.
Right-click the Alarm Pareto control and then click Properties. The
AlarmPareto Properties dialog box appears.
In the left pane, select filter fields and then click Add to include
them in the filter, which is shown in the right pane. The filter
fields are described in the following table:
Field name
Class
Alarm class.
Type
Alarm type.
Priority
Alarm priority.
Name
Alarm name.
GroupName
Provider
Alarm provider.
Limit
Field name
Operator
Operator.
OperatorFullNa
me
OperatorNode
OperatorDomain
Comment
Alarm comment.
User1
User2
User3
Duration
To remove a field from the filters pane, click the field you want to
delete and click Delete. Deleting a filter cannot be undone. When a
message appears, click Yes.
Configure the criteria for each filter field. For more information,
see "Defining the Column Filter Criteria" on page 350.
Configure the operators and grouping for the filter. For more
information, see "Grouping Alarm Columns" on page 351.
In the Filter Favorites File box, type the network path and file
name or click the ellipse button to browse for the file.
To edit the Filter Favorites file, click the Edit Favorites File
button. The Filter Favorites window opens, allowing you to
add, modify, or delete filters from your favorites file. When you
are done, click OK to save your changes and close the window.
Click Apply.
Right-click the field and then click Edit Filter. The Dialog dialog box
appears.
In the Value box, type the criteria that must be matched. The Value
box does not accept values that cannot be processed for the selected
query. The Value box accepts the following wildcard characters
when the Like and Not Like filter operators are used for
alphanumeric column names:
Character
Finds
[]
[^]
Field
Limit
All fields
Priority
User1,
User2
Click OK.
The AND operator returns records that meet all values of the
selected fields.
The OR operator returns records that meet the values of any of the
selected fields.
To use AND/OR operators to set the filter selection criteria, the
respective fields must be grouped together. Only a single filter
expression can be created on an item in the filters pane. If multiple
expressions are needed, then the item must be added to the filters
pane again.
By default, the grouped fields have the AND operator.
The AND and OR operators are parent nodes. The fields selected
under each parent node are child nodes. You cannot drag fields parent
nodes to child nodes.
To group alarm columns
1
Define the filters in the first instance of the Alarm Pareto control.
Right-click the filters and click Copy. To move the filters, click Cut.
Open the next instance of the Alarm Pareto control and click the
Query Filter tab.
Right-click the Alarm Pareto control and then click Properties. The
AlarmPareto Properties dialog box appears.
Click Apply.
Description
Refresh
Filter
Reset
The status of the database connection between the control and the
alarm database.
The update status of the graph to refresh the data shown in the
graph.
Purpose
AutoConnect
AutoFont
BackGndColor
BarColor
BarCount
BarSelectColor
Connected
Property Name
Purpose
ConsolidatedAlarms
DatabaseName
DisplayMode
Duration
EnableRefresh
EnableReset
EnableSilentMode
EndTime
FilterMenu
FilterFavoritesFile
Font
FontColor
Property Name
Purpose
HorizontalChart
MaxRecords
NoMatchMessage
QueryTimeZone
ServerName
ShowCountPercentage
ShowNodeName
ShowSelectedInStatus
Bar
ShowStatusBar
ShowTimeinState
SpecificTime
Property Name
Purpose
StartTime
User
Connect() Method
Connects to the database configured from the Database tab of the
Alarm Pareto control properties.
Syntax
Object.Connect()
Example
Refresh() Method
SelectQuery() Method
Refresh() Method
Refreshes the control from the database, and if the connection is
successful, shows the set of records in the range from 1 to the number
defined by the MaxRecords property.
Syntax
Object.Refresh()
Example
#AlarmPareto1.Refresh();
SelectQuery() Method
Selects a filter that is configured as a query favorite file.
Syntax
Object.SelectQuery(Filter)
Parameter
Filter
The name of the query filter.
Example
GetItemAlarmName() Method
GetItemAlarmType() Method
GetItemCount() Method
GetItemTotalTime() Method
GetItemEventType() Method
GetItemProviderName() Method
GetItemAlarmName() Method
Gets the name of the alarm for a specific bar.
Syntax
Object.GetItemAlarmName(BarIndex)
Parameter
BarIndex
The index of the bar.
Example
GetItemAlarmType() Method
Gets the type of alarm for a specific bar.
Syntax
Object.GetItemAlarmType(BarIndex)
Parameter
BarIndex
The index of the bar.
Example
GetItemCount() Method
Gets the number of alarms in a bar.
Syntax
Object.GetItemCount(BarIndex)
Parameter
BarIndex
The index of the bar.
Example
GetItemTotalTime() Method
Gets the total time, in seconds, of a tag in an alarm state.
Syntax
Object.GetItemTotalTime(BarIndex)
Parameter
BarIndex
The index of the bar.
Example
GetItemEventType() Method
Gets the type of event for a specific bar.
Syntax
Object.GetItemEventType(BarIndex)
Parameter
BarIndex
The index of the bar.
Example
GetItemProviderName() Method
Gets the name of the provider from the generated alarms for a specific
bar.
Syntax
Object.GetItemProviderName(BarIndex)
Parameter
BarIndex
The index of the bar.
Example
AboutBox() Method
Shows the About dialog box.
Syntax
Object.AboutBox()
Example
Click
DoubleClick
ShutDown
StartUp
The Click event has one parameter called ClicknBarIndex, which
identifies the index of the bar that is clicked at run time.
363
Chapter 12
Maintaining the Alarm
Database
You manage the alarm database using two InTouch utilities. Use the
Alarm DB Purge-Archive utility to remove records from the database
permanently or archive them to files. If the database becomes corrupt,
use the Alarm DB Restore utility to restore archived records.
The following figure shows how both utilities purge/archive records
and then restore them back to the database.
Alarm Database
Alarm DB
Purge/Archive
Log File
Purge
Request
Alarm Records
Alarm Records
Purge Records
Archive Records
Archive Records
Archive
Files
Alarm Records
Alarm DB
Restore
Log File
In the Server Name list, click the node name of the server.
In the User Information area, type the user name and password
of an alarm database user account.
Click Apply.
All data from the day previous to the number specified is purged. Valid
entries are 0-9999. If you select 0, all records are purged from the
alarm database except the current days records.
To select records to purge
1
In the Days Online box, type the number of days worth of records
to retain in the alarm database.
Click Apply.
In the Archive Folder Path box, type the folder location where
archive files should be saved or click the ellipsis button to browse
for the location.
Select the Create Unique Folders check box if you want the archive
files to be placed in an individual sub-folder beneath the archive
file folder.
Click Apply.
In the Log File Path box, type the folder location where the purge
log file should be placed or click the ellipsis button to browse for
the location.
Click Apply.
To stop a purge, click Cancel Purge. If you cancel the purge, the
alarm database is rolled back to its original state.
Click Close.
Alarm Database
Archive Records
Archive
Files
Alarm Records
Alarm Records
Alarm Records
Log File
Archive
Request
Description
Restore
Cancel Restore
Clear Status
Hide Window
Show Window
Exit
In the SQL Server Name list, click the node name of the server
that hosts the alarm database.
Click Close.
In the Folder Path for Archived Files box, type the full path (up to
255 alphanumeric characters) to the location of the archived files
or click the button to locate and select the folder where archived
files are stored.
In the Restore files later than (Date/Time) area, select the date and
time to start restoring records to the database.
The starting date and time are set by default to the current date
and time.
In the Folder path for log file box, type the full path (up to 255
alphanumeric characters) where the log files are created and
stored or click the button to locate and select a folder.
If you select the Recreate Tables check box, the tables of the
specified alarm database are recreated. Depending on the type of
logging you selected for the alarm records contained in the
archived files, select:
Click Restore.
379
Chapter 13
Enhancing Plant Security
Through Alarm Redundancy
PLC
InTouch
Running Hot
Backup Manager
I/O
Server
Alarm
Memory
Running
InTouch
Application
Pump1 Inlet
Pressure Too High
Backup Alarm
Provider
Alarm
Memory
You can also run the Hot Backup Manager and the backup provider on
the same node, as shown in the following figure:
Primary Alarm
Provider
PLC
InTouch
Running Hot
Backup Manager
I/O
Server
Alarm
Memory
Running
InTouch
Application
Pump1 Inlet
Pressure Too High
Alarm
Memory
Backup Alarm
Provider
The following figure shows how the alarm consumer still receives
alarms after the primary alarm provider fails. The alarm consumer
still references the hot back pair, but the backup provider provides the
alarm data.
Primary Alarm
Provider
PLC
InTouch Running
Hot Backup
Manager
I/O
Server
Alarm
Memory
Running
InTouch
Application
Pump1 Inlet
Pressure Too High
Backup Alarm
Provider
Alarm
Memory
InTouch
When you specify InTouch as the alarm provider, the provider
must be InTouch for both the primary node and the backup node.
However, the alarm group of the backup node can be different from
that of the primary node.
Galaxy
To specify a Galaxy or Galaxy_<GalaxyName> alarm provider, you
must configure AppEngine redundancy in the IDE.
Galaxy_<GalaxyName>
The valid characters for GalaxyName are alphanumeric and
special characters $, #, and _.
When specifying Galaxy_<GalaxyName>, the Galaxy name must
be the same for both the primary and the backup node.
When you specify Galaxy or Galaxy_<GalaxyName> as the alarm
provider, the provider of the backup node can be Galaxy or
Galaxy_<GalaxyName>.
The alarm group of the backup node must be the same as that of
primary node.
Note: The system does not support hot backup pairs for alarms
generated from two different Galaxies.
On the File menu, click Open. Select the Provacc.ini file and then
click OK.
By default, the Alarm Hot Backup Manager checks for the
Provacc.ini file in the last opened InTouch application folder. You
should use the Provacc.ini file located in the InTouch applications
folder. Otherwise, you can create a copy of the Provacc.ini file in
another specified folder location and then select it for use with Hot
Backup Manager.
Click New Pair. The Add New Pair dialog box appears.
In the Hot Backup Pair Name box, type a unique name for the new
backup pair.
A pair name can be 32 alphanumeric characters or less. You can
use the dollar sign ($), pound sign (#), and underscore (_) character
in a pair name.
In the Name box, type the node name of the computer running
the primary provider application. The node name must be
unique to Hot Backup Manager. An error message appears if
you enter a non-existent node name or the node name is used
in another hot backup pair.
In the Group box, type the name of the alarm group that
queries alarms from the primary provider.
In the Name box, type the node name of the computer running
the backup provider application. This can be the same node
that is running the Hot Backup Manager.
In the Group box, type the name of the alarm group that
queries alarms from the backup provider.
If you specifed Galaxy or Galaxy_<GalaxyName> alarm
providers, the backup node group must be the same as the
primary node group, and cannot be edited.
Click OK.
Restart WindowMaker.
$System!TagA
Synchronized Alarm
Acknowledgement
Alarm Record
Alarm Memory
Backup Alarm
Provider
$System!TagB
Alarm Query
Alarm Record
Alarm Memory
Click Set Key Fields. The Select Key Fields dialog box appears.
In the Alarm Record Fields area, select the alarm record fields
that you want to include in the mapping key list.
The selected alarm record fields appear in the Selected Fields list
box.
Click OK.
Restart WindowMaker.
Alarm Record
Mapping
MA
MB
InTouch
Running Hot
Backup Manager
Running
InTouch
Application
Alarm
Memory
Backup Alarm
Provider
Alarm
Memory
The Hot Backup Manager imports the alarm record map from a
comma separated values (CSV) file that you create with Microsoft
Excel or a text editor like Notepad. The mapping file includes an
ordered list of alarm record fields that associate the corresponding
alarm records of the primary and backup providers.
You must specify tag alarm record fields as the headers of the mapping
file. The order of the headers within the file must match the alarm
record fields shown from the Select Key Fields dialog box. The figure
below shows the column headers of an Excel file that match the order
of alarm record fields of the Select Key Fields dialog box.
You can create a mapping file that only includes the selected headers
of alarm field records used to generate mapping keys. The figure below
shows an Excel file that includes only the Name, Class, and Type
headers. When you add headers, their order must always match the
order of alarm record fields of the Select Key Fields dialog box.
Specify the alarm field records of the primary provider in the left set of
columns. Likewise, specify the same records of the backup provider in
the right set of columns.
Mapping File
Column Header
Group
Name
Class
Value
Limit
Comment
The "Value" and "Limit" column values can be anything other than
Null, when the "Class" or "Type" values for that particular record
in that particular node are not known.
The "Value" and "Limit" column values can be anything other than
Null, when any one of the "Class" or "Type" values for that
particular record in that particular node is known as DSC.
Backup Node
$System!TagA
$System!TagB
Backup Node
tagA!CommentA
tagB!CommentB
This could be true for any other field combination for a third provider.
Click Map Alarms. The Map Alarm Records dialog box appears.
Click Import. The Open dialog box appears. Select the mapping
file and click Open.
The Hot Backup Manager begins importing records from the file.
Restart WindowMaker.
The required number of columns should be filled with values for all
the records at the import file. There should never be fewer values
or more values for any record.
The headings at the import file should be the same as that of the
headings at the Select Key Fields dialog box and should be in the
same order.
If a record that is imported has a wrong entry, you are prompted to
skip that particular record number or to abort the importing process
itself.
Tank Farm 1
PLC
Pump_1
PLC
I/O
Server
Pump_2
PLC
Pump_3
PLC
Pmp1IP
Pmp1OP
InTouch
Backup Provider
FrmBU
InTouch
Client Application
FrmAp
Pump1 Inlet
Pressure Too High
Pump_4
PLC
Pump_5
IPPmp1
OPPmp1
All three computers are running the InTouch HMI. The hot backup
pair includes FrmPN as the primary provider and FrmBU as the
backup. These two nodes serve as alarm providers within an InTouch
Distributed Alarm system.
The Hot Backup Manager run on the FrmAp node. The InTouch client
application runs on FrmAp and consumes alarms from the two
providers of the hot backup pair.
Click New Pair. The Add New Pair dialog box appears.
Complete the options of the Add New Pair dialog box, as shown in
the following figure.
Keep the Alarm Hot Backup Manager dialog box open within
WindowMaker.
You are done with the first step to create a hot backup pair. Next,
complete the following procedure to generate a unique mapping key to
the paired alarm records stored in each providers alarm repository.
To map alarm record key fields
1
Click Set Key Fields. The Select Key Fields dialog box appears.
Complete the options of the Select Key Fields dialog box, as shown
in the following figure.The alarms between the primary and
backup provider are logically consistent but have been assigned
different names and belong to different alarm groups. A unique
mapping key to records stored in each providers alarm repository
can be generated by selecting Alarm Group, Alarm Name, Alarm
Class, and Alarm Type as Design-Time options.
You are done with the second step to create an alarm record mapping
key.
In this scenario all three nodes are running InTouch applications. The
two provider nodes generate equivalent alarms, but are using different
tagnames. The primary provider generates two summary alarms when
a pumps inlet and outlet pressures are too high. The backup provider
generates two logically identical alarms for the same pump pressure
alarm conditions. Next, complete the following procedure to create a
mapping file that associates equivalent records stored in each
providers alarm repository.
Enter the names of the file headers in the same order as the alarm
record field options of the Select Key Fields dialog box.
In this example, the file headers should be ordered by alarm group,
alarm name, the class of alarm, and the type of alarm condition.
Map the alarms between the two providers on each row of the file.
The example of the Excel file below shows how the headers and
alarm conditions should be specified for the two providers of the
hot backup pair. Save the mapping file to a location accessible to
the Hot Backup Manager running on the client node.
You are done with the third step to create an alarm record mapping
file.
In the last step, you import the contents of the alarm mapping file to
the Hot Backup Manager. In this example, the client application
knows which pump pressure alarm records to acknowledge between
the two alarm providers.
To import an alarm record mapping .csv file
1
Click Map Alarms. The Map Alarm Records dialog box appears.
Select your mapping file and click Open. The Map Alarm Records
dialog box lists the alarm mapping records from the file.
Click OK. The Hot Backup Manager begins importing records from
the file.
The Pmp1IP alarm is mapped to the IPPmp1 alarm. Both have a Class
of VALUE and a Type of HIHI.
The Pmp1OP alarm is mapped to the OPPmp1 alarm. Both have a
Class of VALUE and a Type of Lo.
When mapping the Value and Limit key fields, the values are
rounded off to the fourth decimal place and then mapped.
401
Chapter 14
Creating an Alarm Audit Trail
The alarm display shows full names when alarms are generated
and when acknowledgements are performed.
The alarm printer prints full names when alarms are generated
and when acknowledgements are performed.
The Alarm DB Logger records domain name, log on user ID, and
full user name with each alarm record for both Operator and
AckOperator fields. This allows for unique identification even if an
organization has two employees with identical full names.
The Alarm Client prefixes the text "Signed ACK" at the beginning
of the acknowledgement comment to indicate that this was a
signed acknowledgement.
If Smart Cards are not enabled, the Mode buttons for selecting
either Smart Card or Password authentication are disabled.
2
In the Username box, type your user name. The name of the
currently logged-on user is shown by default. If no user is
currently logged on, the box is blank.
In the Domain box, type the domain name. If the security mode
is ArchestrA Galaxy, then the domain displayed is ArchestrA
and you cannot modify it.
Click OK.
If you are authenticating using a Smart Card, the Smart Card Ack
Alarms dialog box appears.
In the PIN box, enter the PIN for the Smart Card being used.
Click OK.
407
Appendix A
Working with the Distributed
Alarm Display Object
The Distributed Alarm Display object includes properties that can set
the appearance of the alarm display (including the information that is
shown), the colors used for various alarm conditions, and which alarm
group and alarm priority levels are shown.
For more information about the display object, see "Using a
Distributed Alarm Display Object at Run Time" on page 421.
Double-click the Dist. Alarm Display wizard. The dialog box closes
and your window reappears with the cursor in the "paste" mode.
In the Display Name box, type the name for the alarm display.
This name must be unique for each alarm display used. This name
is used throughout the system for referring to this object for
execution of tasks such as alarm acknowledgment and queries.
In the New Alarms Appear At area, configure where you want new
alarms to appear in the object:
Click Top of List to show the most recent alarm at the top of
the list.
In the Properties area, configure title bar, status bar, and scroll
bars. Do any of the following:
Select the Show Titles check box to show the alarm message
title bar.
Select the Show Status Bar check box to show the status bar.
Select the Show Vert Scrollbar check box to show the vertical
scroll bar.
Click OK.
Select the Allow Runtime Grid Changes check box to allow the
user to change column settings.
Click OK.
Priority.
State, such as acknowledged or unacknowledged.
Type, either summary or historical.
When you configure the alarm query, you use text only. You cannot
use tags. Example queries are as follows.
Full path to Alarm Group:
\\Node\InTouch!Group
Full path to local Alarm Group
\InTouch!Group
Another Group List:
GroupList
To perform multiple queries, separate each query with a space. For
example:
\InTouch!Group GroupList
The default query properties are only used if you select the Perform
Query on Startup check box or if the almDefQuery() function is
executed.
In the Alarm State list, click the default alarm state to query
(All, Unack, Ack).
In the Query Type list, click the alarm type, either Summary or
Historical.
Click OK.
Select the Use Default Ack Comment check box and then type the
comment text in the box.
Click OK.
In the Date Format list, click the format for the date. Available
formats are:
Selection
Shows
Selection
Shows
DD MMM
28 Feb
MM/DD
02/28
DD MM YYYY
28 Feb 2007
MM/DD/YY
02/28/07
DD/MM
28/07
MMM DD
Feb 28
DD/MM/YY
28/02/07
MMM DD YYYY
Feb 28 2007
YY/MM/DD
07/02/28
YYYY/MM/DD
2007/02/28
In the Time Format list, click the format for the time. Use the
values in this list as a template to specify the format of the time.
For example, to specify the time as 10:24:30 AM, use HH:MM:SS
AP. The template characters are as follows:
Character
Description
AP
HH
MM
SS
SSS
In the Sort Order area, configure the order in which you want the
alarms to be sorted in the object:
Click LCT to use the last alarm change time, which is the
date/time stamp of the most recent change of status for the
instance of the alarm: onset of the alarm, change of sub-state,
return to normal, or acknowledgment.
6
Click OK.
Click Select Display Font. The standard Windows Font dialog box
appears.
Select the check box in the Column Name list to show that column
in the Distributed Alarm Display object. You must select at least
one column. The following table describes the columns:
Column
Description
Date
Time
State
Class
Type
Priority
Name
Group
Provider
Value
Column
Description
Limit
Operator
Comment
To rearrange the columns, select the column name and use the
Move Up and Down arrow buttons. The column name appearing at
the top of the Column Details dialog box is the column shown to
the furthest left of the alarm display.
To edit the column name and width, select a column name and
then click Edit. The Edit dialog box appears for that column.
In the New Name box, type a new name if you want to show a
column name other than the default column name.
Click Apply.
In the General area, click each color box to open the InTouch color
palette. Click the color that you want to use for each of the
following:
Option
Description
Window
Grid
Selection Back
Selection Text
Alarm Return
Event
In the Alarm Priority boxes, type the breakpoint values for the
alarm display.
Click the UnAck Alarm and Ack Alarm color boxes to open the
InTouch palette. Click the color in the palette that you want to use.
Click OK.
In the Query Type list, click the type of alarm display that you
want to use for the run-time default.
Click OK.
Configure the other parameters for the type of display and any
filtering your application requires.
Multiple Selection
You can select a single or multiple alarms in a list box, depending on
how the alarm display is configured.
Status Bar
Depending on how the alarm object is configured, the status bar shows
a status message, the current alarm query, and a progress bar.
The left portion of the status bar shows the current status of the
control.
These indicators provide an overview of the current state of the display
query and provide details about the suppression available in the
Distributed Alarm Display object. The right pane of the status bar is
red when freeze is in effect and the left pane of the status bar is red
when suppression is in effect.
Description
Status
Message
Alarm
Query
Progress
Bar
State/Indicator
Progress Bar
None
No Query
None
Update Incomplete
Query Incomplete
Blue/Green
Update Successful
Query Complete
Red
Suppression
Query name
Solid Blue
Freeze
Query name
Red
Shortcut Menu
Depending on how the alarm object is configured, you can right-click
on the object to open a shortcut menu for common commands:
Click this
command
To do this
Ack Selected
Ack Others
Suppress
Selected
Suppress Others
Query Favorites
Stats
Click this
command
To do this
Suppression
Freeze
Click OK. The Distributed Alarm Display object shows the alarm
information for the selected query.
In the Query box, type the sets of InTouch alarm queries that
you want to perform. You can specify one or more alarm
providers and groups.
In the Alarm State list, click the alarm state that you want to
use in the alarm query.
In the Display Type area, click the type of alarms to show. For
more information, see "Summary Alarms versus Historical
Alarms" on page 28.
Controlling the Distributed Alarm Display Object Using Functions and Dotfields427
Acknowledging Alarms
The Distributed Alarm Display object is capable of acknowledging any
alarms that it can query (summary display only). The Distributed
Alarm Display object includes alarm acknowledgment functions.
These functions supplement the .Ack dotfield used to acknowledge
local alarms and alarm groups. Use these functions to acknowledge all
alarms, shown alarms, and selected alarms.
You can also acknowledge alarms by their characteristics. such as
group membership, priority, application name, and tag name.
almAckAll() Function
almAckDisplay() Function
almAckGroup() Function
almAckPriority() Function
almAckRecent() Function
almAckTag() Function
almAckSelect() Function
almAckSelectedGroup() Function
almAckSelectedPriority() Function
almAckSelectedTag() Function
almAckAll() Function
Acknowledges all alarms in a current query, including those not
currently shown in the Distributed Alarm Display object in summary
mode.
Category
Alarms
Syntax
[Result=]almAckAll(ObjectName,Comment);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Comment
Alarm acknowledgment comment.
Examples
MessageTag = Acknowledge All by + $Operator;
almAckAll(AlmObj_1,MessageTag);
See Also
almAckDisplay() Function
Acknowledges only those alarms currently visible in the Distributed
Alarm Display object in summary mode.
Category
Alarms
Syntax
[Result=]almAckDisplay(ObjectName,Comment);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
InTouch HMI Alarms and Events Guide
Controlling the Distributed Alarm Display Object Using Functions and Dotfields429
Comment
Alarm acknowledgment comment.
Example
almAckDisplay(AlmObj_1,Display Acknowledgement);
See Also
almAckGroup() Function
Acknowledges all alarms shown in the named Distributed Alarm
object that match the specified provider and group name.
Category
Alarms
Syntax
[Result=]almAckGroup( ObjectName, ApplicationName,
GroupName, Comment);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
ApplicationName
The name of the Application for example, \\node1\Intouch
GroupName
The name of the InTouch alarm group, such as $System.
Comment
Alarm acknowledgment comment.
Example
MessageTag = Acknowledge group, Turbines, by +
$Operator;
almAckGroup(AlmObj_1, \Intouch, Turbine,
MessageTag);
almAckPriority() Function
Acknowledges all alarms shown in the named Distributed Alarm
object as a result of the last query that match the alarms application
name, alarm group, and priority range.
Category
Alarms
Syntax
[Result=]almAckPriority(ObjectName, ApplicationName,
GroupName, FromPri, ToPri, Comment);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
ApplicationName
The name of the Application for example, \\node1\Intouch
GroupName
The name of the Group for example, $System
FromPri
Starting number of the alarm priority range. For example, 100.
ToPri
Ending number of the alarm priority range. For example, 900.
Comment
Alarm acknowledgment comment.
Example
almAckPriority(AlmObj_1, \\node1\Intouch, Turbines,
10, 100, Range 10 to 100 acknowledged);
almAckRecent() Function
Acknowledges the most recent alarms that have occurred.
Syntax
[Result=]almAckRecent(ObjectName, Comment)
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Comment
Alarm acknowledgment comment.
Controlling the Distributed Alarm Display Object Using Functions and Dotfields431
Example
almAckRecent(AlmObj_1,$DateString);
almAckTag() Function
Acknowledges all alarms shown in the named Distributed Alarm
Display object as a result of the last query. The alarm must match the
application name, group name, tag name, and priority range specified
by the query.
Category
Alarms
Syntax
[Result=]almAckTag(ObjectName, ApplicationName, GroupName,
TagName, FromPri, ToPri, Comment);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
ApplicationName
The name of the application. For example, \\node1\Intouch.
GroupName
The name of the alarm group. For example, $System.
TagName
The name of the tag whose value is in an alarm state.
FromPri
Starting number of the alarm priority range. For example, 100.
ToPri
Ending number of the priority range. For example, 900.
Comment
Alarm acknowledgment comment.
Example
almAckTag(AlmObj_1, \\node1\Intouch, Turbines,
Valve1, 10, 100, "Acknowledged for Valve1");
See Also
almAckSelect() Function
Acknowledges only those alarms selected in the Distributed Alarm
Display object in summary mode.
Category
Alarms
Syntax
[Result=]almAckSelect(ObjectName,Comment);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Comment
Alarm acknowledgment comment.
Example
almAckSelectedGroup() Function
Acknowledges all alarms with same provider and group names that
have the same group name as one or more of the alarms that are
selected within the named Distributed Alarm Display object.
Category
Alarms
Syntax
[Result=]almAckSelectedGroup(ObjectName,Comment);
Controlling the Distributed Alarm Display Object Using Functions and Dotfields433
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Comment
Alarm acknowledgment comment.
Example
MessageTag = Acknowledge selected groups by +
$Operator;
almAckSelectedGroup (AlmObj_1, MessageTag);
See Also
almAckSelectedPriority() Function
Acknowledges all alarms with same provider and group names that
have the same priority value as one or more of the alarms that are
selected within the named Distributed Alarm Display object. The
priorities are calculated from the minimum and maximum priorities of
the selected alarm records.
Category
Alarms
Syntax
[Result=]almAckSelectedPriority(ObjectName, Comment);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Comment
Alarm acknowledgment comment.
Example
MessageTag = Acknowledge selected priorities by +
$Operator;
almAckSelectedPriority (AlmObj_1, MessageTag);
See Also
almAckSelectedTag() Function
Acknowledges all alarms that have the same Tagname from the same
provider and group name and having the same priority as one or more
of the selected alarms within the named Distributed Alarm Display
object. This function works only if InTouch is the alarm provider.
Category
Alarms
Syntax
[Result=]almAckSelectedTag(ObjectName,Comment);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Comment
Alarm acknowledgment comment.
Example
MessageTag = Acknowledge selected tagnames by +
$Operator;
almAckSelectedTag (AlmObj_1, MessageTag);
See Also
Selecting Alarms
You can create scripts to select alarms from a Distributed Alarm
Display object. You can select all alarms, only selected alarms, or
obtain a count of current alarms.
almSelectAll() Function
almUnselectAll() Function
almSelectionCount() Function
almSelectGroup() Function
almSelectItem() Function
almSelectPriority() Function
almSelectTag() Function
Controlling the Distributed Alarm Display Object Using Functions and Dotfields435
You can also select specific alarms based upon the data source, alarm
priority, and InTouch tags.
almSelectAll() Function
Toggles the selection of all the alarms in a named Distributed Alarm
Display object.
Category
Alarms
Syntax
[Result=]almSelectAll(ObjectName);
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
Example
If $AccessLevel > 8000 THEN
almSelectAll(AlmObj_1);
almAckSelect(AlmObj_1, Ack Selected by a Manager);
ENDIF;
See Also
almUnselectAll() Function
Unselects all selected alarms in a named Distributed Alarm Display
object.
Category
Alarms
Syntax
[Result=]almUnselectAll(ObjectName);
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
Example
If $AccessLevel == 9999 THEN
almAckSelect(AlmObj_1, Comment);{This alarm can be
acknowledged by only Administrator}
ELSE
almUnselectAll(AlmObj_1);
ENDIF;
See Also
almSelectionCount() Function
Returns the number of alarms selected by the operator in the
Distributed Alarm Display object.
Category
Alarms
Syntax
[Result=]almSelectionCount(ObjectName);
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
Example
almSelectGroup() Function
Toggles the selection of all alarms that are contained by a named
Distributed Alarm Display object as a result of the displays last query
and where the resultant alarm contains the same alarm group name.
Category
Alarms
Syntax
[Result=]almSelectGroup(ObjectName, ApplicationName,GroupName);
Controlling the Distributed Alarm Display Object Using Functions and Dotfields437
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
ApplicationName
The name of the Application. For example, \\node1\Intouch.
GroupName
The name of the Group. For example, $System.
Example
almSelectGroup(AlmObj_1,\InTouch,Turbine);
See Also
almSelectItem() Function
Toggles the selection of the last selected or unselected item in an
alarm display object.
Syntax
[Result=]almSelectItem(ObjectName);
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
Example
almSelectItem(AlmObj_1);
See Also
almSelectPriority() Function
Toggles the selection of all alarms in a named Distributed Alarm
Display object as a result of the displays last query and where the
resultant alarms are within the specified priority range.
Category
Alarms
Syntax
[Result=]almSelectPriority( "objectName", ApplicationName,
GroupName, FromPri, ToPri );
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
ApplicationName
The name of the Application. For example, \\node1\Intouch.
GroupName
The name of the Group. For example, $System.
FromPri
Starting priority of alarms. For example, 100 or integer tag.
ToPri
Ending priority of alarms. For example, 900 or integer tag.
Example
almSelectPriority(AlmObj_1,\\node1\Intouch,
Turbines,10,100);
See Also
almSelectTag() Function
Toggles the selection of all alarms in a named Distributed Alarm
Display object as a result of the displays last query and given tag
name.
Category
Alarms
Syntax
[Result=]almSelectTag (ObjectName, ApplicationName,
GroupName, TagName, FromPri, ToPri);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
ApplicationName
The name of the Application. For example, \\node1\Intouch.
GroupName
The name of the Group. For example, $System.
TagName
The name of the alarm tag.
FromPri
Starting priority of alarms. For example, 100 or integer tag.
InTouch HMI Alarms and Events Guide
Controlling the Distributed Alarm Display Object Using Functions and Dotfields439
ToPri
Ending priority of alarms. For example, 900 or integer tag.
Example
almSelectTag(AlmObj_1,\\node1\Intouch,
Turbines,Valve1,10,100);
See Also
.AlarmTime Dotfield
.AlarmDate Dotfield
.AlarmName Dotfield
.AlarmValue Dotfield
.AlarmClass Dotfield
.AlarmType Dotfield
.AlarmState Dotfield
.AlarmLimit Dotfield
.AlarmPri Dotfield
.AlarmGroupSel Dotfield
.AlarmAccess Dotfield
.AlarmProv Dotfield
.AlarmOprName Dotfield
.AlarmOprNode Dotfield
.AlarmComment Dotfield
.AlarmTime Dotfield
Returns the time when an alarm occurred. The alarm must be selected
in Distributed Alarm Display object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM(
"ObjectName.AlarmTime",TagName);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
.AlarmDate Dotfield
Returns the date associated with a selected alarm. The alarm has to be
selected by clicking on the Distributed Alarm Display object in
summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM("ObjectName.AlarmDate",TagName)
;
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
Controlling the Distributed Alarm Display Object Using Functions and Dotfields441
TagName
Any message tag.
Data Type
String (read-only)
Example
.AlarmName Dotfield
Returns the name of the tag associated with a selected alarm. The
alarm has to be selected by clicking the Distributed Alarm Display
object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM("ObjectName.AlarmName",TagNam
e);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
.AlarmValue Dotfield
Returns the value of the alarm for the tag associated with the selected
alarm. The alarm has to be selected by clicking the Distributed Alarm
Display object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM("ObjectName.AlarmValue,TagName)
;
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Remarks
This function uses a message tag to retrieve the numeric value. This is
because the GetProperty functions do not support real numbers. You
can use the StringToReal() function to assign the result to a real tag.
Controlling the Distributed Alarm Display Object Using Functions and Dotfields443
Example
.AlarmClass Dotfield
Returns the class of alarm for the tag associated with a selected alarm.
The alarm must be selected from the Distributed Alarm Display object
in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM("ObjectName.AlarmClass",Tagname
);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
The following statement returns the alarm class associated with the
selected alarm.
GetPropertyM("AlmObj_1.AlarmClass",almClass);
.AlarmType Dotfield
Returns the alarm type for the tag associated with a selected alarm.
The alarm has to be selected by clicking the Distributed Alarm Display
object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM("ObjectName.AlarmType,TagName)
;
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
Controlling the Distributed Alarm Display Object Using Functions and Dotfields445
.AlarmState Dotfield
Returns the state of the selected alarm. The alarm has to be selected
by clicking the Distributed Alarm Display object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM(
"ObjectName.AlarmState",TagName);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
.AlarmLimit Dotfield
Returns the limit for the tag associated with a selected alarm. The
alarm has to be selected by clicking the Distributed Alarm Display
object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM
("ObjectName.AlarmLimit",TagName);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Remarks
This function uses a message tag to retrieve the numeric value. This is
because the GetProperty functions do not support real numbers. You
can use the StringToReal() function to assign the result to a real tag.
Example
Controlling the Distributed Alarm Display Object Using Functions and Dotfields447
.AlarmPri Dotfield
Returns the priority (1-999) for the tag associated with a selected
alarm. The alarm must be selected by clicking the Distributed Alarm
Display object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM("ObjectName.AlarmPri",
TagName);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
.AlarmGroupSel Dotfield
Returns the alarm group of the tag associated with a selected alarm.
The alarm has to be selected by clicking on the Distributed Alarm
Display object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM(
"ObjectName.AlarmGroupSel",TagName);
Parameter
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
.AlarmAccess Dotfield
Returns the Access Name of the tag associated with a selected alarm.
The alarm record must be selected by clicking on the Distributed
Alarm Display object in summary mode.
Category
Alarms
Usage
GetPropertyM("Objectname.AlarmAccess",TagName);
Controlling the Distributed Alarm Display Object Using Functions and Dotfields449
Parameter
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
.AlarmProv Dotfield
Returns the alarm provider for the tag associated with a selected
alarm. The alarm has to be selected by clicking the Distributed Alarm
Display object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM(
"ObjectName.AlarmProv",TagName);
Parameter
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
.AlarmOprName Dotfield
Returns the name of the logged on operator who acknowledged the
selected alarm. The alarm has to be selected by clicking the
Distributed Alarm Display object in summary mode.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM(
"ObjectName.AlarmOprName",TagName);
Parameter
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
GetPropertyM("AlmObj_1.AlarmOprName",almOprName);
Controlling the Distributed Alarm Display Object Using Functions and Dotfields451
.AlarmOprNode Dotfield
Returns the operator node for the tag associated with a selected alarm.
The alarm must be selected by clicking the Distributed Alarm Display
object in summary mode.
When an alarm is acknowledged in a Terminal Services environment,
the Operator Node is the name of the client machine that the
respective operator established the Terminal Services session from. If
the node name cannot be retrieved, the node's IP address is used
instead.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM(
"ObjectName.AlarmOprNode",TagName);
Parameter
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
GetPropertyM("AlmObj_1.AlarmOprNode",almOprNode);
See Also
.AlarmComment Dotfield
Returns the alarm comment, which is a read/write text string that
describes the alarm, not the tag. By default, the comment is empty in a
new application.
However, when an old InTouch application is converted to InTouch
version 7.11 or later, the tag comment is copied to the .AlarmComment
dotfield for backward compatibility.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM(
"ObjectName.AlarmComment",TagName);
Parameter
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any message tag.
Data Type
String (read-only)
Example
The following example returns the alarm comment for a tag selected in
the AlmObj_1 Distributed Alarm Display object and places it in the
almComment tag :
GetPropertyM(AlmObj_1.AlarmComment, almComment);
See Also
Controlling the Distributed Alarm Display Object Using Functions and Dotfields453
almDefQuery() Function
almQuery() Function
almSetQueryByName() Function
almDefQuery() Function
Performs a query using default properties to update a named
Distributed Alarm Display object.
Category
Alarms
Syntax
[Result=]almDefQuery(ObjectName);
Argument
ObjectName
The name of the Distributed Alarm Display object. For example,
AlmObj_1.
Remarks
almQuery(), almSetQueryByName()
almQuery() Function
Performs a query to update a named Distributed Alarm Display object
and uses the specified parameters.
Category
Alarms
Syntax
[Result=]almQuery(ObjectName,AlarmList,FromPri,ToPri,State,Ty
pe);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
AlarmList
Sets the Alarm Query/Name Manager alias to perform the query
against, for example, "\intouch!$System" or a Message tag.
FromPri
Starting priority of alarms to show. For example, 100 or integer
tag.
ToPri
Ending priority of alarms to show. For example, 900 or integer tag.
State
Specifies type of alarms to show. For example, "UnAck" or Message
tag. Valid states are All, UnAck or Ack.
Type
The type of alarm records that appear in the updated display:
"Hist" = Historical alarms
"Summ" = Summary alarms
Example
almDefQuery(), almSetQueryByName()
almSetQueryByName() Function
Starts a new alarm query for the named instance of the Distributed
Alarm Display object using the parameters from a user-defined query
favorite file.
Category
Alarms
Syntax
[Result=]almSetQueryByName(ObjectName, QueryName);
Controlling the Distributed Alarm Display Object Using Functions and Dotfields455
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
QueryName
The name of the query created by using Query Favorites.
Remarks
This example starts a new query using parameters from the query
named Turbine Queries.
almSetQueryByName(AlmObj_1,Turbine Queries);
See Also
almQuery(), almDefQuery()
.AlarmGroup Dotfield
.QueryType Dotfield
.QueryState Dotfield
.Successful Dotfield
.PriFrom Dotfield
.PriTo Dotfield
.AlarmGroup Dotfield
Contains the current query used to populate a Distributed Alarm
Display object.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyM(
"ObjectName.AlarmGroup",TagName);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
TagName
Any message tag.
Remarks
This read-only dotfield contains the current alarm query used by the
named Distributed Alarm Display object. This query can be a list of
alarm groups or direct alarm provider references.
Data Type
String (read-only)
Example
This statement returns the current alarm query used by the AlmObj_1
Distributed Alarm Display object to the CurrentQuery tag:
GetPropertyM("AlmObj_1.AlarmGroup",CurrentQuery);
See Also
.QueryType Dotfield
Shows the current type of alarm query.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyI(
"ObjectName.QueryType",TagName);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
TagName
Any integer tag
Remarks
Integer (read-only)
Controlling the Distributed Alarm Display Object Using Functions and Dotfields457
Valid Values
1 = Historical
2 = Summary
Example
GetPropertyI(), .QueryState
.QueryState Dotfield
Shows the current alarm state query filter.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyI(
"ObjectName.QueryState",TagName);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
TagName
Any integer tag
Remarks
Integer (read-only)
Valid Values
0 = All
1 = Unacknowledged
2 = Acknowledged
Example
GetPropertyI(), .QueryType
.Successful Dotfield
Indicates whether the current query is successful or not.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyD(
"ObjectName.Successful",TagName);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
TagName
A discrete tag that holds the property value when the function is
processed.
Remarks
This read-only dotfield contains the state of the last query used by a
named Distributed Alarm Display object.
Data Type
Discrete (read-only)
Valid Values
0 = Error in query
1 = Successful query
Example
The following statement returns the status of the last query of the
AlmObj_1 Distributed Alarm Display object to the AlmFlag tag:
GetPropertyD("AlmObj_1.Successful",AlmFlag);
See Also
GetPropertyD()
Controlling the Distributed Alarm Display Object Using Functions and Dotfields459
.PriFrom Dotfield
Returns the minimum value of an alarm priority range used by the
current query.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyI("ObjectName.PriFrom", Tagname);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
Any integer tag.
Data Type
Integer (read-only)
Example
.PriTo Dotfield
Contains the maximum value of the alarm priority range used by the
current query.
Usage
[ErrorNumber=]GetPropertyI("ObjectName.PriTo", Tagname);
Parameter
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
An integer tag that holds the property value when the function is
processed.
Data Type
Integer (read-only)
Example
.ListChanged Dotfield
.PendingUpdates Dotfield
.ListChanged Dotfield
Indicates whether there are any new alarms or updates for the
Distributed Alarm Display object.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyD(ObjectName.ListChanged,TagN
ame);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
TagName
A discrete tag that holds the property value when the function is
processed.
Controlling the Distributed Alarm Display Object Using Functions and Dotfields461
Remarks
This read-only dotfield contains the status about whether there have
been any changes that need to be updated in the Distributed Alarm
Display object. This property is automatically reset on reading the
property.
Data Type
Discrete (read-only)
Valid Values
GetPropertyD()
.PendingUpdates Dotfield
Indicates the number of pending updates to the Distributed Alarm
Display object. There are pending updates usually when the display is
frozen and new alarm records are created. These do not show, but the
pending updates count is increased.
Category
Alarms
Usage
[ErrorMessage=]GetPropertyI( ObjectName.PendingUpdates,
TagName);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
TagName
An integer tag that holds the property value when the function is
processed.
Remarks
Integer (read-only)
Example
GetPropertyI()
Suppressing Alarms
The Distributed Alarm Display object can suppress one or more alarms
at an alarm consumer that match exclusion criteria. If an alarm
matches the exclusion criteria, it does not appear in the instance of the
display.
You can use QuickScript functions to suppress alarms.
almSuppressAll() Function
almUnsuppressAll() Function
almSuppressDisplay() Function
almSuppressGroup() Function
almSuppressPriority() Function
almSuppressTag() Function
almSuppressSelected() Function
almSuppressSelectedGroup() Function
almSuppressSelectedPriority() Function
almSuppressSelectedTag() Function
almSuppressRetain() Function
.SuppressRetain Dotfield
Controlling the Distributed Alarm Display Object Using Functions and Dotfields463
almSuppressAll() Function
Suppresses the showing of all current and future instances of the
alarms in the current query, including those not currently shown in
the Distributed Alarm Display object in summary mode.
Syntax
[Result=] almSuppressAll(ObjectName);
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
Remarks
almUnsuppressAll() Function
Clears all suppressed alarms.
Syntax
[Result=] almUnSuppressAll(ObjectName);
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
Example
almUnSuppressAll(AlmObj_1);
See Also
almSuppressDisplay() Function
Suppresses the showing of current and future occurrences of alarms
visible in the Distributed Alarm Display object in summary mode.
Syntax
[Result=]almSuppressDisplay(ObjectName);
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
Remarks
almSuppressGroup() Function
Suppresses the showing of current and future occurrences of any
alarm with the specified provider and group name.
Syntax
[Result=]almSuppressGroup(ObjectName,
ApplicationName,GroupName);
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
ApplicationName
The name of the application. For example, \\node1\InTouch
GroupName
The name of the alarm group. For example, $System
Example
almSuppressGroup( AlmObj_1,\InTouch,Turbines);
See Also
Controlling the Distributed Alarm Display Object Using Functions and Dotfields465
almSuppressPriority() Function
Suppresses the showing of current and future occurrences of any
alarm of the specified priority range having the same provider name
and Group name.
Syntax
[Result=]almSuppressPriority(ObjectName, ApplicationName,
GroupName, FromPri, ToPri);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
ApplicationName
The name of the application. For example, \\node1\InTouch
GroupName
The name of the Group. For example, $System
FromPri
Starting priority of alarms. For example, 100 or Integer tag.
ToPri
Ending priority of alarms. For example, 900 or Integer tag.
Example
almSuppressPriority(AlmObj_1,\\node1\Intouch,
Turbines,10,100);
See Also
almSuppressTag() Function
Suppresses the showing of current and future occurrences of any
alarm that belongs to the specified tagname having the same provider
name, group name, and priority range.
Category
Alarms
Syntax
[Result=]almSuppressTag(ObjectName, ApplicationName,
GroupName, TagName, FromPri, ToPri, AlarmClass, AlarmType);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
ApplicationName
The name of the application. For example, \\node1\InTouch
GroupName
The name of the Group. For example, $System
TagName
The name of the alarm tag.
FromPri
Starting priority of alarms. For example, 100 or Integer tag.
ToPri
Ending priority of alarms. For example, 900 or Integer tag.
AlarmClass
The class of the alarm. For example, Value.
AlarmType
The alarm type of the alarm. For example, HiHi.
Example
almSuppressTag(AlmObj_1,\\node1\Intouch,
Turbines,Valve1,10,100,Value,LoLo);
See Also
almSuppressSelected() Function
Suppresses the showing of current and future occurrences of the
alarms selected in the Distributed Alarm Display object in summary
mode.
Category
Alarms
Syntax
[Result=]almSuppressSelected(ObjectName);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Controlling the Distributed Alarm Display Object Using Functions and Dotfields467
Remarks
almSuppressSelectedGroup() Function
Suppresses the showing of current and future occurrences of the
alarms that belong to the same groups of one or more selected alarms
having the same provider name within the named Distributed Alarm
Display object.
Category
Alarms
Syntax
[Result=]almSuppressSelectedGroup(ObjectName);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Remarks
almSuppressSelectedPriority() Function
Suppresses the showing of current and future occurrences of the
alarms that belong to the same priority of one or more selected alarms
having the same provider name and Group tag within the named
Distributed Alarm Display object.
Category
Alarms
Syntax
[Result=]almSuppressSelectedPriority(ObjectName);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Remarks
The priorities are calculated from the minimum and maximum of the
selected alarm records.
This function works like the almAckSelectedPriority() function,
identifying the alarms selected in the display, then identifying the
corresponding priorities of those alarms, and suppressing future
occurrences of alarms with the same priorities.
Example
almSuppressSelectedPriority(AlmObj_1);
See Also
almSuppressSelectedTag() Function
Suppresses the showing of current and future occurrences of any
alarm that belongs to the same Tagname name of one or more selected
alarms having the same provider name, group name, and priority
range.
Category
Alarms
Syntax
[Result=]almSuppressSelectedTag(ObjectName);
Controlling the Distributed Alarm Display Object Using Functions and Dotfields469
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Example
almSuppressSelectedTag(AlmObj_1);
See Also
almSuppressRetain() Function
Suppresses all alarms raised by subsequent queries.
Category
Alarms
Syntax
[Result=]almSuppressRetain(ObjectName,SuppressionRetainFlag)
;
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
SuppressionRetainFlag
Any discrete or analog tag, 0, or non-zero value. TRUE if
suppression information is retained for following queries, FALSE
otherwise.
Remarks
.SuppressRetain Dotfield
Reads/writes the status of the feature that retains the suppression for
the Distributed Alarm Display object.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyD(
ObjectName.SuppressRetain,TagName);
[ErrorNumber=]SetPropertyD(
ObjectName.SuppressRetain,TagName);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
Tagname
A discrete tag that holds the property value when the script is
processed.
Data Type
Discrete (read-write)
Valid Values
0 = Retain Off
1 = Retain On
Example(s)
The following statement sets the status of suppression retainer for the
AlmObj_1 from the SupRtn discrete tag:
SetPropertyD(AlmObj_1.SuppressRetain, SupRtn);
See Also
GetPropertyD(), SetProperty()
Controlling the Distributed Alarm Display Object Using Functions and Dotfields471
almMoveWindow() Function
.Freeze Dotfield
.PrevPage Dotfield
.NextPage Dotfield
almMoveWindow() Function
Scrolls the alarm list of the Distributed Alarm Display object vertically
or horizontally.
Category
Alarms
Syntax
[Result=]almMoveWindow(ObjectName,Option,Repeat);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Option
The type of scrolling action to perform:
Type
Description
LineDn
LineUp
PageDn
PageUp
Top
Bottom
PageRt
PageLf
Right
Left
Repeat
The number of times this operation should be repeated.
InTouch HMI Alarms and Events Guide
Example
almMoveWindow(AlmObj_1, Bottom, 0);
almMoveWindow(AlmObj_1, LineDn, 3);
almMoveWindow(AlmObj_1, PageUp, 0);
.Freeze Dotfield
The .Freeze dotfield reads the freeze status or freezes/unfreezes the
Distributed Alarm Display object.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyD(ObjectName.Freeze, TagName);
[ErrorNumber=]SetPropertyD(ObjectName.Freeze, TagName);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
TagName
A discrete tag that holds the property value when the function is
processed.
Remarks
Discrete (read-write)
Valid Values
0 = Freeze OFF
1 = Freeze ON
Controlling the Distributed Alarm Display Object Using Functions and Dotfields473
Example
The following statement sets the Freeze property for the AlmObj_1
from the AlmFreeze discrete tag.
SetPropertyD(AlmObj_1.Freeze,AlmFreeze);
See Also
GetPropertyD(), SetPropertyD()
.PrevPage Dotfield
Scrolls the Distributed Alarm Display object one page (one screen full
of alarms) up.
Category
Alarms
Usage
[ErrorNumber=]SetPropertyD("ObjectName.PrevPage",0);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Remarks
When this property is set, the Distributed Alarm Display object shows
the previous page. After the previous page is shown, the variable is
automatically set to 1, unless the top of the list has been reached. In
this case, the value remains 0.
Data Type
Discrete (read/write)
See Also
.NextPage Dotfield
Scrolls the Distributed Alarm Display object one page (one screen full
of alarms) down.
Category
Alarms
Usage
[ErrorNumber=]SetPropertyD("ObjectName.NextPage",0);
Arguments
ObjectName
The name of the alarm object. For example, AlmObj_1.
Remarks
When this property is set, the Distributed Alarm Display object shows
the next page. After the next page is shown, the variable is
automatically set to 1, unless the bottom of the list has been reached.
In this case, the value remains 0.
Data Type
Discrete (read/write)
See Also
almShowStats() Function
.PageNum Dotfield
.TotalPages Dotfield
.NumAlarms Dotfield
.ProvidersReq Dotfield
.ProvidersRet Dotfield
almShowStats() Function
Shows the Alarm Statistics dialog box of the specified Distributed
Alarm Display object.
Category
Alarms
Syntax
[Result=]almShowStats(ObjectName);
Controlling the Distributed Alarm Display Object Using Functions and Dotfields475
Argument
ObjectName
The name of the alarm object. For example, AlmObj_1.
Example
almShowStats(AlmObj_1);
.PageNum Dotfield
Contains the current page number shown in the alarm object.
Category
Alarms
Syntax
[ErrorNumber=]GetPropertyI("ObjectName.PageNum",TagName);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
An integer tag that holds the number of the page currently shown
from the Distributed Alarm Display object.
Remarks
Integer (read-only)
Example
.TotalPages Dotfield
Contains the total number of pages in the Distributed Alarm Display
object.
Category
Alarms
Syntax
[ErrorNum=]GetPropertyI("ObjectName.TotalPages", TagName);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
An integer tag that retrieves the total number of alarm pages
contained in the named Distributed Alarm Display object.
Remarks
Integer (read-only)
Example
.NumAlarms Dotfield
Contains the number of alarms within a Distributed Alarm Display
object.
Category
Alarms
Syntax
[ErrorNum=]GetPropertyI("ObjectName.NumAlarms, Tagname);
Controlling the Distributed Alarm Display Object Using Functions and Dotfields477
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
An integer tag that holds the current number of alarms registered
in a named Distributed Alarm Display object. This includes not
only those alarms shown, but all alarms registered.
Remarks
Integer (read-only)
Example
GetPropertyI()
.ProvidersReq Dotfield
Contains the number of alarm providers required by the current query
used by a named Distributed Alarm Display object.
Category
Alarms
Syntax
[ErrorNumber=]GetPropertyI(
"ObjectName.ProvidersReq,TagName);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
An integer tag that holds the current number of alarm providers
registered in a named Distributed Alarm Display object. This
includes not only those alarms shown, but all alarms registered.
Data Type
Integer (read-only)
Example
GetPropertyI(), .ProvidersRet
.ProvidersRet Dotfield
Contains the number of alarm providers returned by the current query
used by a named Distributed Alarm Display object.
Category
Alarms
Usage
[ErrorNumber=]GetPropertyI
("ObjectName.ProvidersRet",TagName);
Parameters
ObjectName
Name of the Distributed Alarm Display object. For example,
AlmObj_1.
TagName
An integer tag that holds the number of alarm providers that have
successfully returned their alarms to the named Distributed Alarm
Display object.
Remarks
Integer (read-only)
Controlling the Distributed Alarm Display Object Using Functions and Dotfields479
Example
GetPropertyI(), .ProvidersReq
Error Descriptions
The following table describes the error numbers. If a number is
returned that is not in this table, the error is an unknown error.
Error Number
Description
Success
-1
General failure
-2
-3
Property is read-only
-4
-5
-6
481
Appendix B
Migrating from Legacy Alarm
Systems
You can migrate your applications built using the Standard Alarm
System or AlarmSuite.
In the DSN list, click the data source name for the AlarmSuite
database.
In the User Name box, type your user name for the data source
name.
In the Password box, type your user password for the data
source name.
In the Purge Source Database area, click Yes to purge the source
database at the end of data migration. Table creation is part of
the transaction, but creation of the database is not. If you
select Yes, the transaction with purging is committed after
migrating the data from the source database.
Click No to not purge the source database after data migration
is finished.
In the Server list, click the name of the database server to use.
The read-only Database Name box shows the database name.
The default is WWALMDB.
Click Start to begin migrating the data from the source database to
the target database.
485
Index
Symbols
$NewAlarm system tag 127
$System system tag 128
A
About box
Alarm DB View control 335
Alarm Pareto control 360
Alarm Viewer control 98
AboutBox() method 98, 211, 335, 360
.Ack dotfield 109
Ack() function 116
AckAll() method 84
AckAlmBackColor property 299
AckAlmBackColorRange1 property 299
AckAlmBackColorRange2 property 300
AckAlmBackColorRange3 property 300
AckAlmBackColorRange4 property 301
AckAlmForeColor property 301
AckAlmForeColorRange1 property 302
AckAlmForeColorRange2 property 302
AckAlmForeColorRange3 property 303
AckAlmForeColorRange4 property 303
.AckDev dotfield 114
.AckDsc dotfield 113
AckGroup() method 86
acknowledgement
alarms 20
automatic 117
acknowledgement comments 119
acknowledgement models
alarm 106
checking at run time 108
condition 106
acknowledging alarms 105
Alarm Viewer control 84
alarms or alarm groups 109
automatic acknowledgement 117
deviation alarms 114
discrete alarms 113
Distributed Alarm Display object 427
from WindowViewer 118
rate-of-change alarms 115
redundancy synchronization 397
script functions 116
using dotfields 109
value alarms 111
AckPriority() method 87
.AckROC dotfield 115
AckRtnBackColor property 304
486Index
Index487
starting 238
stopping 238
alarm printer, starting 237
alarm printing and logging 222
alarm properties, controlling at run time 121
alarm provider 26
alarm queries 51
alarm query information, printing
alarms 242, 254
alarm statistics and counts, Distributed
Alarm Display object 474
alarm status handling, InTouch 7.11 and later
vs. 7.1 and older 140
alarm tag, inhibitor tag 178
Alarm Tree Viewer
automatic refresh, configuring 201
refresh, tuning 202
Alarm Tree Viewer control
ActiveX events 219
ActiveX methods 210
ActiveX properties 209
appearance and colors 198
configuring 198
creating a query string 217
error handling 219
fonts 201
freezing the tree 216
providers and groups 204
query favorites 206, 208
refresh 201
retrieving information 211
running queries 218
run-time features 203
sort order 206
status bar 208
using at run time 207
viewing alarm hierarchies 197
Alarm Viewer control
acknowledging alarms 84
ActiveX events 102
ActiveX methods 83
ActiveX properties 77
alarms to show 66
colors 68, 82
columns 60
configuring 56
error handling 102
font 60
488Index
grid 56
moving and freezing the display 95
query favorites 67, 74
retrieving information about an alarm 93
running a script when a new alarm is
detected 102
running queries 93
run-time features 63
selecting specific alarms 98
showing statistics 98
showing the About box 98
showing the context menu 101
sort order 71
sorting alarm records 97
status bar 74
suppressing alarms 88
time format 69
using at run time 72
viewing current alarms 55
.AlarmAccess dotfield 448
.AlarmAckModel dotfield 108
.AlarmClass dotfield 443
.AlarmComment dotfield 174, 452
AlarmCounter stored procedure 274
.AlarmDate dotfield 440
.AlarmDev dotfield 131
.AlarmDevCount dotfield 192
.AlarmDevDeadband dotfield 173
.AlarmDevUnAckCount dotfield 193
.AlarmDisabled dotfield 148
.AlarmDsc dotfield 130
.AlarmDscCount dotfield 190
.AlarmDscDisabled dotfield 158
.AlarmDscEnabled dotfield 157
.AlarmDscInhibitor dotfield 178
.AlarmDscUnAckCount dotfield 191
.AlarmEnabled dotfield 147
.AlarmGroup dotfield 455
.AlarmGroupSel dotfield 448
AlarmHiDisabled dotfield 154
AlarmHiEnabled dotfield 153
.AlarmHiHiDisabled dotfield 156
.AlarmHiHiEnabled dotfield 155
.AlarmHiHiInhibitor dotfield 182
.AlarmHiInhibitor dotfield 181
.AlarmLimit dotfield 446
.AlarmLoDisabled dotfield 152
.AlarmLoEnabled dotfield 151
Index489
types 22
value alarms 23
.AlarmState dotfield 445
AlarmSuite Alarm Log view 273
AlarmSuite database, migration 482
.AlarmTime dotfield 439
.AlarmTotalCount dotfield 187
AlarmTreeFastRetryMax setting, InTouch.ini
file 202
AlarmTreeSlowRetryInterval setting,
InTouch.ini file 202
AlarmTreeTotalRetryMax setting,
InTouch.ini file 202
.AlarmType dotfield 444
.AlarmUnAckCount dotfield 187
.AlarmUserDefNumX dotfields 175
.AlarmUserDefStr dotfield 176
.AlarmValDeadband dotfield 172
.AlarmValue dotfield 442
.AlarmValueCount dotfield 188
.AlarmValueUnAckCount dotfield 189
almAckAll() function 428
almAckDisplay() function 428
almAckGroup() function 429
almAckPriority() function 430
almAckRecent() function 430
almAckSelect() function 432
almAckSelectedGroup() function 432
almAckSelectedPriority() function 433
almAckSelectedTag() function 434
almAckTag() function 431
almDefQuery() function 453
almMoveWindow() function 471
almQuery() function 453
AlmRtnBackColor property 304
AlmRtnForeColor property 305
almSelectAll() function 435
almSelectGroup() function 436
almSelectionCount() function 436
almSelectItem() function 437
almSelectPriority() function 437
almSelectTag() function 438
almSetQueryByName() function 454
almShowStats() function 474
almSuppressAll() function 463
almSuppressDisplay() function 464
almSuppressGroup() function 464
almSuppressPriority() function 465
B
buffer size 45
C
CheckElementMembership() method 212
ColorPriorityRange1 property 306
ColorPriorityRange2 property 306
ColorPriorityRange3 property 306
490Index
colors
ActiveX controls 82
Alarm DB View control 295
Alarm Pareto control 341
Alarm Tree Viewer control 198
Alarm Viewer control 68
Distributed Alarm Display object 418, 422
ColumnResize property 307
columns
Alarm DB View control 281, 293, 294
Alarm Pareto control 351
Alarm Viewer control 60
Distributed Alarm Display object 417, 422
condition, acknowledgement alarm model 106
configuration files, printing alarms 234
Connect() method 330, 356
ConnectStatus property 307
consumers, alarms 26
context menu
Alarm DB View control 335
Alarm Viewer control 101
counting, active or unacknowledged
alarms 186
current alarms, Alarm Viewer control 55
CustomMessage property 308
D
data storage, distributed alarm system 31
database connections
alarm database 364, 373
Alarm DB Logger 261
Alarm DB View control 278, 330
Alarm Pareto control 340, 356
DatabaseName property 308
deviation alarms
acknowledging alarms 114
alarms 23
configuring 40
.DevTarget dotfield 170
disablement 29
disabling
alarms 147
discrete alarms 157
high alarms 153
HiHi alarms 155
LoLo alarms 149
low alarms 151
major deviation alarms 161
Index491
documentation conventions 15
dotfields, using to acknowledge alarms 109
Duration property 309
E
enabling
alarms 147
discrete alarms 157
events 46
high alarms 153
HiHi alarms 155
LoLo alarms 149
low alarms 151
major deviation alarms 161
minor deviation alarms 159
rate-of-change alarms 163
End Time property 310
errors
Alarm DB View control 336
Alarm Pareto control 360
Alarm Tree Viewer control 219
Distributed Alarm Display object 479
printing alarms 258
Event History view 269, 270
event properties, for individual tags 44
EventBackColor property 310
event-based alarm model 107
EventCounter stored procedure 276
EventForeColor property 311
events
about 17, 21
enabling 46
expanded summary alarms
model 106
using 107
F
filter criteria
Alarm DB View control 292
Alarm Pareto control 350
filter favorites
Alarm DB View control 290, 335
Alarm Pareto control 348
FilterFavoritesFile property 311
FilterMenu property 312
FilterName property 312
font
Alarm DB View control 280
G
GetAlarmQueryFromSelection() method 217
GetElementCount() method 211, 212
GetElementName() method 212
GetElementPath() method 213
GetItem() method 93, 333
GetItemAlarmName() method 358
GetItemAlarmType() method 358
GetItemCount() method 358
GetItemEventType() method 359
GetItemProviderName() method 359
GetItemTotalTime() method 359
GetLastError() method 336
GetNext() method 332
GetPrevious() method 331
GetSelectedElementCount() method 213
GetSelectedElementName() method 213
GetSelectedElementPath() method 214
GetSelectedItem() method 333
GetSubElementCount() method 214
GetSubElementName() method 215
GetSubElementPath() method 216
getting or setting properties, Distributed
Alarm Display object 427
grid
Alarm DB View control 279
Alarm Viewer control 56
Distributed Alarm Display object 409
GroupExactMatch property 313
GroupName property 313
groups, alarms 20
H
high alarms, enabling or disabling 153
492Index
I
inhibition, alarms 43
inhibitor tag
for an alarm group 178
for an alarm tag 178
instance information, printing alarms 248
K
key fields, redundancy 385
L
legacy alarm systems, migration 481
.ListChanged dotfield 460
log files, printing alarms 233
logging alarms
file settings 368
printing alarms 236
logging information, printing alarms 252
logging interval, alarm database 263
logging, making retentive 47
.LoLimit dotfield 166
LoLo alarms, enabling or disabling 149
.LoLoLimit dotfield 165
.LoLoSet dotfield 141
.LoLoStatus dotfield 134
.LoSet dotfield 142
.LoStatus dotfield 133
low alarms, enabling or disabling 151
M
maintaining, alarm database 363
major deviation alarms, enabling or
disabling 161
.MajorDevPct dotfield 169
.MajorDevSet dotfield 145
.MajorDevStatus dotfield 138
N
.NextPage dotfield 473
non-interactive permissions to run alarm
services 25, 265, 364
.Normal dotfield 130
.NumAlarms dotfield 476
P
.PageNum dotfield 475
Password property 314
.PendingUpdates dotfield 461
.PrevPage dotfield 473
.PriFrom dotfield 459
PrimarySort property 314
printer settings, printing alarms 222
printing alarms
alarm printing and logging 222
alarm query information 242, 254
alarms to print 227
controlling using scripting 237
errors 258
format of print and file output 228
instance information 248
logging alarms to a file 233, 236
logging information 252
printer settings 222
printing alarms 221, 235
saving and loading configuration files 234
starting the alarm printer 237
starting the alarm printer instance 238
starting the alarm printer query 238
stopping the alarm printer instance 238
stopping the alarm printer query 238
Index493
priorities, alarms 19
.PriTo dotfield 459
ProviderExactMatch property 315
ProviderName property 315
providers
Alarm Tree Viewer control 204
alarms 26
.ProvidersReq dotfield 477
.ProvidersRet dotfield 478
purge or archive settings, configuring for
alarm database 364
purged data, archiving 366
purging
alarm database 365
scheduling automatic 371
Q
query favorites
Alarm Tree Viewer control 206, 208
Alarm Viewer control 67, 74
Distributed Alarm Display object 424
query filters
Alarm DB View control 294
Alarm Pareto control 351
query properties, checking for the Distributed
Alarm Display object 455
query string, Alarm Tree Viewer control 217
.QueryState dotfield 457
QueryTimeZoneName property 316
.QueryType dotfield 456
R
rate-of-change alarms
about 24
acknowledging 115
configuring 41
enabling or disabling 163
recorded alarms, Alarm DB View control 277
redundancy
about 379
acknowledgement synchronization 397
alarm synchronization 397
alarms 379
creating a hot backup pair 383
creating a mapping file 387
hot backup pair example 393
importing a mapping file 392
notes 398
S
scripting
acknowledging alarms 116
494Index
status bar
Alarm DB View control 298
Alarm Pareto control 353
Alarm Tree Viewer control 208
Alarm Viewer control 74
Distributed Alarm Display object 422
stored procedure, EventCounter stored
procedure 276
stored procedures 274
alarm database 274
AlarmCounter stored procedure 274
EventCounter stored procedure 276
sub-states, alarms 20
.Successful dotfield 458
summary alarm model, expanded 106
summary alarms 28
SuppressAll() method 89
SuppressGroup() method 91
suppressing alarms 29
Alarm Viewer control 88
Distributed Alarm Display object 462
suppression, alarms 29
SuppressPriority() method 91
.SuppressRetain dotfield 470
SuppressSelected() method 89
SuppressSelectedGroup() method 90
SuppressSelectedPriority() method 90
SuppressSelectedTag() method 90
SuppressTag() method 92
SuppressVisible() method 89
T
tags
alarm conditions 37, 127
alarm limits 141
changing alarm comments 174
event properties 44
technical support, contacting 16
Terminal Services 30
Terminal Services, alarm support 30
time format
Alarm DB View control 286
Alarm Viewer control 69
Distributed Alarm Display object 415
time period
Alarm DB View control 288
Alarm Pareto control 347
Time property 323
Index495
UnSuppressAll() method 91
updates, checking for Distributed Alarm
Display object 460
user-defined information, alarm instance 175
UserID property 329
value alarms
acknowledging alarms 111
alarms 23
configuring 38
views
Alarm Event History view 272
Alarm History view 267, 269
AlarmSuite Alarm Log view 273
Event History view 269, 270
W
Windows service 265
WindowViewer, acknowledging alarms 118
496Index