ArchestrA Alarm Control Guide
ArchestrA Alarm Control Guide
Revision B
Last Revision: 9/14/11
Trademarks
All terms mentioned in this documentation that are known to be trademarks or
service marks have been appropriately capitalized. Invensys Systems, Inc. cannot
attest to the accuracy of this information. Use of a term in this documentation
should not be regarded as affecting the validity of any trademark or service mark.
Alarm Logger, ActiveFactory, ArchestrA, Avantis, DBDump, DBLoad, DT Analyst,
Factelligence, FactoryFocus, FactoryOffice, FactorySuite, FactorySuite A2, InBatch,
InControl, IndustrialRAD, IndustrialSQL Server, InTouch, MaintenanceSuite,
MuniSuite, QI Analyst, SCADAlarm, SCADASuite, SuiteLink, SuiteVoyager,
WindowMaker, WindowViewer, Wonderware, Wonderware Factelligence, and
Wonderware Logger are trademarks of Invensys plc, its subsidiaries and affiliates.
All other brands may be trademarks of their respective owners.
Contents
Welcome.......................................... 11
Documentation Conventions.............................................12
Technical Support .............................................................12
Contents
Contents
Contents
Contents
ContextMenu.Requery Property..................................110
ContextMenu.Reset Property ......................................110
ContextMenu.Sort Property.........................................111
ContextMenu.Statistics Property ................................111
ContextMenu.UnhideAll Property ..............................112
Database.Authentication Property..............................112
Database.Name Property.............................................112
Database.Password Property.......................................113
Database.ServerName Property..................................113
Database.UserID Property ..........................................113
Domain Property ..........................................................114
Enabled Property..........................................................114
EventColor.BackGround Property...............................114
EventColor.ForeGround Property ...............................115
Favorite Property .........................................................115
FlashUnAckAlarms Property ......................................116
GridColor Property .......................................................116
HeadingColor.BackGround Property ..........................117
HeadingColor.ForeGround Property ...........................118
Height Property ............................................................118
HiddenAlarms Property ...............................................118
HideErrors Property.....................................................119
MaxDatabaseRecords Property ...................................119
NewAlarmEventMode Property ..................................119
NoRecordsMessage.Enabled Property ........................120
NoRecordsMessage.Message Property ........................120
QueryStartup Property ................................................121
RetainHidden Property ................................................121
RowCount Property ......................................................121
RowSelection Property .................................................122
SelectedCount Property ...............................................122
ShowContextMenu Property........................................122
ShowGrid Property.......................................................123
ShowGroupByHeader Property ...................................123
ShowHeading Property ................................................123
ShowStatusBar Property .............................................123
SortColumn.First Property ..........................................124
SortColumn.Second Property ......................................124
SortColumn.Third Property.........................................124
SortOrder.First Property .............................................125
SortOrder.Second Property..........................................125
SortOrder.Third Property ............................................126
Time.Format Property .................................................126
Contents
Contents
10
Contents
11
Welcome
12
Welcome
Documentation Conventions
This documentation uses the following conventions:
Convention
Used for
Initial Capitals
Bold
Monospace
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:
13
Chapter 1
About the ArchestrA Alarm
Control
14
Client Modes
The Alarm Control supports five different client modes,
which can be grouped depending on their data source.
Recent Alarms
and Events
Current Alarms
Alarm Manager
Alarm DB
Logger
Alarm
Database
Historical
Alarms
Historical
Events
Historical Alarms
& Events
Alarm Manager
The Alarm Manager manages currently active alarms
(summary alarms) and recent alarms and events (historical
alarms and events). These types of alarms and events are
held in the InTouch internal alarm memory.
Current Alarms
When the Alarm Control is showing alarms in "Current
Alarms" mode, it is showing currently active alarms directly
from the Alarm Manager.
Client Modes15
Alarm Database
The Alarm Database stores alarms and events from the
Alarm Manager to a SQL Server database. You can use the
Alarm DB Logger utility to continuously log alarms and
events to the Alarm Database.
Historical Alarms
When the Alarm Control is configured in "Historical Alarms"
mode, only alarms stored in the Alarm Database are shown.
Historical Events
When the Alarm Control is configured in "Historical Events"
mode, only events stored in the Alarm Database are shown.
16
Alarm Acknowledgement17
Alarm Acknowledgement
You can configure the Alarm Control to require an alarm to
be acknowledged even if the condition causing the alarm has
passed. This ensures that an operator is aware of events that
caused a temporary alarm state but have returned to normal.
You acknowledge alarms at run time using a shortcut menu
or through script methods.
Galaxy namespace.
Note You cannot see current value and quality data from InTouch
tags running on a remote computer.
18
Alarm Queries
The Alarm Control supports the standard InTouch and
Galaxy alarm query formats, such as:
\galaxy!Area_001
\intouch!Group_A
The alarm query syntax changes when you use the run-time
alarm comment language switching feature. For more
information, see Alarm Query Syntax when Register Using
Galaxy_<GalaxyName> is Enabled on page 19.
The Alarm Control also supports relative references for
Galaxy alarms in alarm queries. For all alarm modes,
relative references are resolved at run time at the point of
query to the Alarm Manager or Alarm Database.
You must put the reference part of the alarm query between
less-than (<) and greater-than (>) characters.
The following tables shows examples of alarm queries.
Alarm Query
Description
\provider!group
\provider!group!tagname
\\node\provider!group
\\node\provider!group!tagname
HotBackupName
\galaxy!<me.Area>!<me.tagname>.*
Alarm Queries19
Alarm Query
Description
\galaxy!<myArea.tagname>
or
\galaxy!<me.Area>
\galaxy!<myPlatform.tagname>
\galaxy!<myContainer.tagname>
\galaxy!<myEngine.tagname>
\\Node:IP Address\InTouch!$System
20
Alarm Filtering
The Alarm Control unites the Query Favorites concept of the
InTouch Alarm Viewer control and the Filter Favorites
concept of the InTouch Alarm DB View control.
The Query Favorites of InTouch Alarm Viewer control define
a set of alarm provider, alarm group, an optional node name,
and a priority range under one name. The alarm provider,
alarm group, and the node name are used for subscribing to a
specific alarm group. The priority range on the other hand is
used to filter the alarms from the given alarm group.
The Filter Favorites of InTouch Alarm DB View control
define a set of any number of criteria you want to filter from
the Alarm Database under one name.
In summary, Filter Favorites fulfill a purely filtering
function whereas Query Favorites fulfill a subscription and a
filtering function at the same time.
The Alarm Control filtering feature unites both these
concepts by exclusively using filter conditions and
subscribing to the necessary alarm providers on demand.
The filter conditions can be re-used between different client
modes. For example, if you define node name, provider name,
alarm group, and a priority range for the current alarms, you
can also use this filter to retrieve the historized alarm data of
the same source from the Alarm Database instead.
Alarm Hiding21
Alarm Hiding
The "hiding" and "unhiding" of alarm records is known in the
corresponding InTouch alarm controls as "suppressing" and
"unsuppressing".
When the Alarm Control is hiding alarms, it ignores certain
alarms. If an alarm matches the exclusion criteria, it is not
visible.
The actual alarm generation is completely unaffected by
hiding. Alarm records are still logged into the alarm history.
As in the InTouch HMI, you can unhide specific alarms and
also use properties and methods to interact with the alarm
hiding feature at run time.
22
Alarm Mode
Alarm Query
Query Filter
Alarm Sorting
Like InTouch alarm controls, you can sort the alarms in
ascending or descending direction for selected columns.
The Alarm Control supports alarm sorting for up to three
columns at design time and run time. At run time, the
operator can configure sorting of even more columns by
clicking on the column headers of the Alarm Control.
Status Bar23
Status Bar
The status bar of the Alarm Control resembles the status
bars of the InTouch alarm controls, with the following
differences:
24
25
Chapter 2
Configuring the Alarm Control
Time format and zone for the alarm record time stamps.
26
28
Current alarms
Click OK.
30
\\node\provider!group
\provider!group
HotBackupName
For example:
\intouch!$system
\galaxy!Area_001
\galaxy!<me.Area>!<me.Tagname>.* to retrieve
alarms and events from the Automation Object
template or instance.
Click OK.
32
authentication.
10 Click OK.
To set maximum records and time range
1
Click OK.
34
Click the color field next to Event and under Text. The
color picker appears.
Click OK.
Click the color field next to Alarm RTN and under Text.
The color picker appears.
Click OK.
36
In the From Pri column in the list at the right, locate the
break point you want to change. These are values except
1 or 999.
Click OK.
Example
38
In the list at the right, locate the Ack record and priority
range for which you want to change the text or
background color.
Click OK.
Click OK.
Note You cannot select the Flash UnAck Alarms check box if the
client mode is set to one of the historical modes.
4
Click OK.
40
column
names and
widths
sorting
order
column
order
grid
preview
All changes you make in the Column Details list are shown
in the grid preview.
You can also use the grid preview to resize columns or change
their order with the pointer.
Column headers can be localized along with other symbol
text when you export, translate, and reimport language files.
The translated language files must be imported to the
InTouch HMI for run-time language switching. For further
information, see Chapter 11 Working with Languages in the
Application Server Users Guide.
Important If you rename or reorder column headers, you must
repeat the symbol text translation procedures. If you do not, your
changes will not be available for run-time language switching.
Type a new name and press Enter. The Column Details list
and the grid preview are updated.
Click OK.
Resizing Columns
You can resize the column headers in the Alarm Control
either by:
42
Click OK.
Click OK.
You also can reset the column widths and order to their
default values. Resetting the column widths and order also
resets the names to their default values.
To change the column order
Sorting Alarms43
The grid preview and the Column Details list shows the
new column order.
4
Click OK.
Click OK.
Sorting Alarms
You can configure how the Alarm Control sorts alarm records
at run time. By default, the Alarm Control lists alarm
records by time in ascending order.
You can sort alarm records in ascending or descending order
based on a primary column, an optional secondary sort
column, and an optional tertiary sort column.
44
Filtering Alarms45
Click OK.
Filtering Alarms
You can filter current and historical alarms by using query
filters. A query filter is a collection of filter criteria in a
logical construct.
For example, you can filter alarms by defining a query filter
that only shows alarms with priorities larger than 500 and
smaller than 750.
You can re-use the filter queries you define for historical
alarms for current alarms and vice versa. You can also re-use
filter queries you define at design-time at run time and vice
versa.
Important Query filters for current alarms and recent alarms and
events require at least Provider and Group as filter criteria.
These must use the equals sign.
In query filters that are used for current queries, the same
restrictions apply.
46
In query filters that are used for historical queries, you must
convert the operator and wildcard to SQL syntax according to
the following table:
Current Query
Historical Query
Operator
Like
Wildcard
For example:
Provider = galaxy AND Group = Mixing
AND Name Like RotorBlade%
Click OK.
Filtering Alarms47
48
Constructing Filters
You use the Add Filter or Modify Filter dialog box to create or
edit a filter graphically.
Logical
associations
Condition
setting
Construction area
Filter criteria
To construct a filter
1
Filtering Alarms49
Note If you are using the Value column as a filter criteria, you
may get unexpected results at run time. The items in the Value
column are sorted alphabetically, not numerically. This is because
the Value column can contain strings.
Do the following:
a
50
Click OK.
Select a location and a name for the XML file and click
Save.
Filtering Alarms51
52
Click OK.
Purpose
Example
%m
Two-digit month
03
%b
Three-letter month
Mar
%B
March
%d
Two-digit day
17
54
Code
Purpose
Example
%Y
Four-digit year
2008
%y
Two-digit year
08
%#x
Tuesday, March
11, 2008
%H
14
%I
%M
Minutes
55
%S
Seconds
34
%s
Milliseconds
223
%p
AM or PM
PM
Click OK.
Purpose
Example
Single-digit month
MM
Two-digit month
09
MMM
Three-letter month
Sep
MMMM
September
Single-digit day
dd
Two-digit day
08
ddd
Mon.
dddd
Monday
yyyy
Four-digit year
2008
yy
Two-digit year
08
HH
14
hh
mm
Minutes
55
ss
Seconds
34
fff
Milliseconds
223
tt
AM or PM
PM
Click OK.
56
Grid
Status
Bar
Caution If you hide the status bar, you will not be able to see
important indicators, such as the New Alarms, Hidden Alarms, and
Frozen Grid indicators.
To show the heading, grid, or status bar at run time
1
Select the Show Grid check box to show the grid at run
time, or clear it to hide the grid at run time.
Click OK.
58
Click OK.
Click OK.
Click OK.
Resizing columns.
Selecting rows.
Click OK.
60
Click OK.
Click OK.
Alarm Mode
Alarm Query
Query Filter
Select the Auto Resume after check box and type the
number of seconds after which the grid unfreezes.
Click OK.
Click OK.
Click the Add icon and give the script a name, for
example ChangeLanguage.
Click OK.
62
Click OK.
You can configure the alarm signature requirement as well
as the minimum and maximum values in run time using the
Object Editor. For more information about using the Object
6
For the current alarms shortcut menu, you can also show or
hide entire shortcut submenus. Use the ContextMenu.* and
the ShowContextMenu Property in scripting to control if
shortcut menu items appear or not at run time. For more
information, see the ContextMenu.AckAll Property on
page 104 and following.
64
Click OK.
Click OK.
65
Chapter 3
Using the Alarm Control at Run
Time
This section shows how you can interact with the Alarm
Control at run time, such as:
66
Click Requery.
Icon(s)
Description
Client Mode
New Alarms
Hidden Alarms
Frozen Grid
Element
Icon(s)
Description
Alarm Records
Shows the total number of alarm records and
which alarms are currently shown.
Query Filter
Shows the name of the current query filter
favorite.
Retrieval
Shows the percentage of alarms retrieved
from all alarm providers.
If this percentage is less than 100%, not all
alarm providers are providing alarm data.
Use the Alarm Statistics dialog box to detect
which alarm providers are not providing
alarm data.
Time Zone
Shows the current time zone of the Alarm
Control. Move the pointer over the time zone
to show the full information in a tool tip.
68
Description
Client Mode
Indicates the Alarm Control is showing
historical alarms and/or events.
Alarm Records
Shows the total number of alarm records
and which alarms are currently shown.
Alarm Database
Shows the name of the server hosting the
Alarm Database and the Alarm Database
name.
Connection Status
Shows the connection status to the Alarm
Database.
Time Zone
Shows the current time zone of the Alarm
Control. Move the pointer over the time
zone to show the full information in a tool
tip.
Requery
Click this button to retrieve latest alarm
records from the Alarm Database.
Acknowledging Alarms69
Acknowledging Alarms
You can acknowledge alarm records directly from the Alarm
Control. You can acknowledge:
70
Acknowledging Alarms71
72
Right-click the Alarm Control grid and click Sort. The Sort
dialog box appears.
In the First Sort Column list, select the first sort column
and a sorting direction in the list to its right.
Click OK.
74
Select the filter from the list and click OK. The alarm
records are filtered and the current filter name appears
in the status bar.
76
Filter
Description
(All)
(Custom)
(Blanks)
(NonBlanks)
Filter
Description
Values
Click the filter icon on the column you want to filter by. A
menu appears.
78
Click OK.
Hiding Alarms
You can temporarily remove specified alarms from the Alarm
Control by hiding them. You can hide:
You can also view which alarms are hidden and unhide them.
You can simplify alarm hiding and unhiding for the operator
by using methods in scripting. For more information, see
Hide.All() Method on page 142.
To hide all alarms
80
Click Close.
Click Close.
82
Click OK.
Button Caption
Action script
AlarmControlGrid1.ClientMode = 2;
Historical Alarms
AlarmControlGrid1.ClientMode = 3;
Historical Events
AlarmControlGrid1.ClientMode = 4;
AlarmControlGrid1.ClientMode = 5;
of current alarms.
84
Database.ServerName Property
Database.UserID Property
Database.Password Property
Domain Property
Database.Name Property
Database.Authentication Property
86
87
Chapter 4
Scripting the Alarm Control
AckComment.DefaultValue Property
The AckComment.DefaultValue property is a read-write
string property that gets or sets the default
acknowledgement comment when the
AckComment.UseDefault property is TRUE.
Syntax
result = AlarmClient.AckComment.DefaultValue;
AlarmClient.AckComment.DefaultValue = ackComment;
Example
AlarmClient1.AckComment.UseDefault = 1;
AlarmClient1.AckComment.DefaultValue = "This alarm is
acknowledged by John Smith";
Remarks
88
AckComment.UseDefault Property
The AckComment.UseDefault property is a read-write
Boolean property that gets or sets the usage of the default
acknowledgement comment.
Syntax
result = AlarmClient.AckComment.UseDefault;
AlarmClient.AckComment.UseDefault = useComment;
Example
AlarmClient1.AckComment.UseDefault = 1;
AlarmClient1.AckComment.DefaultValue = "This alarm is
acknowledged by John Smith";
Remarks
AckSignature.MaxPriority Property
The AckSignature.MaxPriority property is a read-write
integer property, which gets or sets the maximum priority
value for alarms that require a signature to be
acknowledged. The value must range between 1 and 999, and
must be greater than or equal to the
AckSignature.MinPriority value. The default value of
AckSignature.MaxPriority is 999.
Syntax
To Set:
<EAC instance name>.<Property Name> = <integer value>;
Example
AlarmClient1.AckSignature.MaxPriority = 500;
Syntax:
To Get:
integer <variable name> = <EAC instance name>.<Property
Name>;
Example
dim iMax as integer;
iMax = AlarmClient1.AckSignature.MaxPriority;
Remarks
AckSignature.MinPriority Property
The AckSignature.MinPriority property is a read-write
integer property, which gets or sets the minimum priority
value for alarms that require a signature to be
acknowledged. The value must range between 1 and 999, and
must be less than or equal to the AckSignature.MaxPriority
value. The default value of AckSignature.MinPriority is 1.
Syntax
To Set:
<EAC instance name>.<Property Name> = <integer value>;
Example
AlarmClient1.AckSignature.MinPriority = 100;
Syntax
To Get:
To Get:
integer <variable name> = <EAC instance name>.<Property
Name>;
Example
dim iMin as integer;
iMin = AlarmClient1.AckSignature.MinPriority;
Remarks
AckSignature.Required Property
The AckSignature.Required property is a read-write Boolean
property, indicating whether a signature is required for
acknowledging the alarms. The default value of
AckSignature.MinPriority is True.
Syntax
To Set:
<EAC instance name>.<Property Name> = <boolean value>;
Example
AlarmClient1.AckSignature.Required = true;
90
Syntax
To Get:
boolean <variable name> = <EAC instance name>.<Property
Name>;
Example
dim bIsACKSigned as boolean;
bIsACKSigned
= AlarmClient1.AckSignature.Required;
Remarks
AlarmColor.Ack.BackGround Property
The AlarmColor.Ack.BackGround property is an array of
read-write integer properties that get or set the background
colors of all acknowledged alarm records.
Index
Purpose
Syntax
Color = AlarmClient.AlarmColor.Ack.BackGround[n];
AlarmClient.AlarmColor.Ack.BackGround[n] = Color;
Parameters
n
Index from 0 to 4.
Color
Color of background.
Examples
AlarmClient1.AlarmColor.Ack.BackGround[0] = Color.Red;
AlarmClient1.AlarmColor.Ack.BackGround[1] =
Color.FromARGB(0,128,0);
AlarmClient1.AlarmColor.Ack.BackGround[2] = Color.Grey;
AlarmClient1.AlarmColor.Ack.BackGround[3] =
Color.Yellow;
AlarmClient1.AlarmColor.Ack.BackGround[4] =
Color.Black;
Remarks
AlarmColor.Ack.ForeGround Property
The AlarmColor.Ack.ForeGround property is an array of
read-write integer properties that get or set the text colors of
all acknowledged alarm records.
Index
Purpose
Syntax
Color = AlarmClient.AlarmColor.Ack.ForeGround[n];
AlarmClient.AlarmColor.Ack.ForeGround[n] = Color;
92
Parameters
n
Index from 0 to 4.
Color
Color of text.
Examples
AlarmClient1.AlarmColor.Ack.ForeGround[0] =
Color.Black;
AlarmClient1.AlarmColor.Ack.ForeGround[1] = Color.Blue;
AlarmClient1.AlarmColor.Ack.ForeGround[2] =
Color.Green;
AlarmClient1.AlarmColor.Ack.ForeGround[3] =
Color.Yellow;
AlarmClient1.AlarmColor.Ack.ForeGround[4] =
Color.FromARGB(0,128,0);
Remarks
AlarmColor.Ack.RTN.BackGround Property
The AlarmColor.Ack.RTN.BackGround property is a
read-write color property that gets or sets the background
color of acknowledged alarm records that "return to normal"
(ACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.Ack.RTN.BackGround;
AlarmClient.AlarmColor.Ack.RTN.BackGround = Color;
Parameters
Color
Color of background.
Return Value
Remarks
AlarmColor.Ack.RTN.ForeGround Property
The AlarmColor.Ack.RTN.ForeGround property is a
read-write color property that gets or sets the text color of
acknowledged alarm records that "return to normal"
(ACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.Ack.RTN.ForeGround;
AlarmClient.AlarmColor.Ack.RTN.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.AlarmColor.Ack.RTN.ForeGround =
Color.Black;
Remarks
AlarmColor.Range Property
The AlarmColor.Range property is an array of read-write
integer properties that get or set the boundaries of the
priority ranges.
You can use priority ranges to classify, group, and emphasize
alarms and events belonging to a certain priority range.
The boundaries must fulfill the following condition:
1 < Range[1] < Range[2] < Range[3] < 999
94
AlarmColor.Range[1]
250
AlarmColor.Range[2]
500
AlarmColor.Range[3]
750
Syntax
RangeN = AlarmClient.AlarmColor.Range[N];
AlarmClient.AlarmColor.Range[1] = RangeN;
Parameters
N
Range index 1, 2, or 3.
Example
Remarks
AlarmColor.RTN.BackGround Property
The AlarmColor.RTN.BackGround property is a read-write
color property that gets or sets the background color of alarm
records that "return to normal" (ACK_RTN and
UNACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.RTN.BackGround;
AlarmClient.AlarmColor.RTN.BackGround = Color;
Parameters
Color
Color of background.
Example
AlarmClient1.AlarmColor.RTN.BackGround = Color.Blue;
Remarks
AlarmColor.RTN.ForeGround Property
The AlarmColor.RTN.ForeGround property is a read-write
color property that gets or sets the text color of alarm records
that "return to normal" (ACK_RTN and UNACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.RTN.ForeGround;
AlarmClient.AlarmColor.RTN.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.AlarmColor.RTN.ForeGround = Color.Yellow;
Remarks
96
AlarmColor.UnAck.BackGround Property
The AlarmColor.UnAck.BackGround property is an array of
read-write integer properties that get or set the background
colors of all unacknowledged alarm records.
Index
Purpose
Syntax
Color = AlarmClient.AlarmColor.UnAck.BackGround[n];
AlarmClient.AlarmColor.UnAck.BackGround[n] = Color;
Parameters
n
Index from 0 to 4.
Color
Color of background.
Example
AlarmClient1.AlarmColor.UnAck.BackGround[0] =
Color.Blue;
AlarmClient1.AlarmColor.UnAck.BackGround[1] =
Color.ARGB(223,113,76);
AlarmClient1.AlarmColor.UnAck.BackGround[2] =
Color.Yellow;
AlarmClient1.AlarmColor.UnAck.BackGround[3] =
Color.Green;
AlarmClient1.AlarmColor.UnAck.BackGround[4] =
Color.White;
Remarks
AlarmColor.UnAck.Flash.BackGround Property
The AlarmColor.UnAck.Flash.BackGround property is an
array of read-write color properties that get or set the
background colors of all flashing unacknowledged alarm
records.
Index
Purpose
Syntax
Color =
AlarmClient.AlarmColor.UnAck.Flash.BackGround[n];
AlarmClient.AlarmColor.UnAck.Flash.BackGround[n] =
Color;
98
Parameters
n
Index from 1 to 4.
Color
Color of background.
Example
AlarmClient1.AlarmColor.UnAck.Flash.BackGround[1] =
Color.ARGB(223,113,76);
AlarmClient1.AlarmColor.UnAck.Flash.BackGround[2] =
Color.Yellow;
AlarmClient1.AlarmColor.UnAck.Flash.BackGround[3] =
Color.Green;
AlarmClient1.AlarmColor.UnAck.Flash.BackGround[4] =
Color.White;
Remarks
AlarmColor.UnAck.Flash.ForeGround Property
The AlarmColor.UnAck.Flash.ForeGround property is an
array of read-write color properties that get or set the text
colors of all flashing unacknowledged alarm records.
Index
Purpose
Index
Purpose
Syntax
Color =
AlarmClient.AlarmColor.UnAck.Flash.ForeGround[n];
AlarmClient.AlarmColor.UnAck.Flash.ForeGround[n] =
Color;
Parameters
n
Index from 1 to 4.
Color
Color of text.
Examples
AlarmClient1.AlarmColor.UnAck.Flash.ForeGround[1] =
Color.ARGB(223,113,76);
AlarmClient1.AlarmColor.UnAck.Flash.ForeGround[2] =
Color.Yellow;
AlarmClient1.AlarmColor.UnAck.Flash.ForeGround[3] =
Color.Green;
AlarmClient1.AlarmColor.UnAck.Flash.ForeGround[4] =
Color.White;
Remarks
AlarmColor.UnAck.ForeGround Property
The AlarmColor.UnAck.ForeGround property is an array of
read-write integer properties that get or set the text colors of
all unacknowledged alarm records.
Index
Purpose
Syntax
Color = AlarmClient.AlarmColor.UnAck.ForeGround[n];
AlarmClient.AlarmColor.UnAck.ForeGround[n] = Color;
Parameters
n
Index from 0 to 4.
Color
Color of text.
Example
AlarmClient1.AlarmColor.UnAck.ForeGround[0] =
Color.Blue;
AlarmClient1.AlarmColor.UnAck.ForeGround[1] =
Color.ARGB(223,113,76);
AlarmClient1.AlarmColor.UnAck.ForeGround[2] =
Color.Yellow;
AlarmClient1.AlarmColor.UnAck.ForeGround[3] =
Color.Green;
AlarmClient1.AlarmColor.UnAck.ForeGround[4] =
Color.White;
Remarks
AlarmColor.UnAck.RTN.BackGround Property
The AlarmColor.UnAck.RTN.BackGround property is a
read-write color property that gets or sets the background
color of unacknowledged alarm records that "return to
normal" (UNACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.UnAck.RTN.BackGround;
AlarmClient.AlarmColor.UnAck.RTN.BackGround = Color;
Parameters
Color
Color of background.
Example
AlarmClient1.AlarmColor.UnAck.RTN.BackGround =
Color.Blue;
Remarks
AlarmColor.UnAck.RTN.ForeGround Property
The AlarmColor.UnAck.RTN.ForeGround property is a
read-write color property that gets or sets the text color of
unacknowledged alarm records that "return to normal"
(UNACK_RTN).
Syntax
Color = AlarmClient.AlarmColor.UnAck.RTN.ForeGround;
AlarmClient.AlarmColor.UnAck.RTN.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.AlarmColor.UnAck.RTN.ForeGround =
Color.FromARGB(0,0,0);
Remarks
AlarmQuery Property
The AlarmQuery property is a read-write string property
that gets or sets the alarm query.
Syntax
result = AlarmClient.AlarmQuery;
AlarmClient.AlarmQuery = AlmQry;
Parameters
AlmQry
Alarm query string in format \\node\provider!group where
node is optional.
Example
AlarmClient.AlarmQuery = "\intouch!GroupA";
Remarks
AllowColumnResize Property
The AllowColumnResize property is a read-write Boolean
property that gets or sets the ability to resize the columns at
run time.
Syntax
result = AlarmClient.AllowColumnResize;
AlarmClient.AllowColumnResize = allowColResizing;
AutoResumeDuration Property
The AutoResumeDuration property is a read-write integer
property that gets or sets the time in seconds after which the
grid becomes unfrozen and resumes showing alarms.
Set this value to 0 to disable auto resume.
Syntax
result = AlarmClient.AutoResumeDuration;
AlarmClient.AllowColumnResize = timeout;
AutoScroll Property
The AutoScroll property is a read-write Boolean property
that gets or sets automatic scrolling to new alarms.
Syntax
result = AlarmClient.AutoScroll;
AlarmClient.AutoScroll = allowAutoscroll;
ClientMode Property
The ClientMode property is a read-write integer property
that gets or sets the client mode for the Alarm Control. Use
one of the following values:
Value
Client Mode
Current Alarms
Historical Alarms
Historical Events
Syntax
result = AlarmClient.ClientMode;
AlarmClient.ClientMode = clientMode;
Example
AlarmClient1.ClientMode = 2;
LogMessage("Alarm client set to Recent Alarms and
Events");
Remarks
ConnectStatus Property
The ConnectStatus property is a read-only string property
that gets the status of the connection to the Alarm Database.
Syntax
result = AlarmClient.ConnectStatus;
Return Value
ContextMenu.AckAll Property
The ContextMenu.AckAll property is a read-write Boolean
property that gets or sets the appearance of the Ack All option
on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckAll;
AlarmClient.ContextMenu.AckAll = AckAllVis;
Remarks
ContextMenu.AckOthers Property
The ContextMenu.AckOthers property is a read-write
Boolean property that gets or sets the appearance of the Ack
Others option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckOthers;
AlarmClient.ContextMenu.AckOthers = AckOthersVis;
Remarks
ContextMenu.AckSelected Property
The ContextMenu.AckSelected property is a read-write
Boolean property that gets or sets the appearance of the Ack
Selected option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckSelected;
AlarmClient.ContextMenu.AckSelected = AckSelectedVis;
Remarks
ContextMenu.AckSelectedGroups Property
The ContextMenu.AckSelectedGroups property is a
read-write Boolean property that gets or sets the appearance
of the Ack Selected Groups option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckSelectedGroups;
AlarmClient.ContextMenu.AckSelectedGroups =
AckSelGrpsVis;
Remarks
ContextMenu.AckSelectedPriorities Property
The ContextMenu.AckSelectedPriorities property is a
read-write Boolean property that gets or sets the appearance
of the Ack Selected Priorities option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckSelectedPriorities;
AlarmClient.ContextMenu.AckSelectedPriorities =
AckSelPriVis;
Remarks
ContextMenu.AckSelectedTags Property
The ContextMenu.AckSelectedTags property is a read-write
Boolean property that gets or sets the appearance of the Ack
Selected Tags option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckSelectedTags;
AlarmClient.ContextMenu.AckSelectedTags =
AckSelTagsVis;
Remarks
ContextMenu.AckVisible Property
The ContextMenu.AckVisible property is a read-write
Boolean property that gets or sets the appearance of the Ack
Visible option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.AckVisible;
AlarmClient.ContextMenu.AckVisible = AckVisVis;
Remarks
ContextMenu.Favorites Property
The ContextMenu.Favorites property is a read-write Boolean
property that gets or sets the appearance of the Query Filters
option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Favorites;
AlarmClient.ContextMenu.Favorites = FavsVis;
Remarks
ContextMenu.Freeze Property
The ContextMenu.Freeze property is a read-write Boolean
property that gets or sets the appearance of the Freeze option
on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Freeze;
AlarmClient.ContextMenu.Freeze = FreezeVis;
Remarks
ContextMenu.Hidden Property
The ContextMenu.Hidden property is a read-write Boolean
property that gets or sets the appearance of the Hidden
option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Hidden;
AlarmClient.ContextMenu.Hidden = HiddenVis;
Remarks
ContextMenu.HideAll Property
The ContextMenu.HideAll property is a read-write Boolean
property that gets or sets the appearance of the Hide All
option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideAll;
AlarmClient.ContextMenu.HideAll = HideAllVis;
Remarks
ContextMenu.HideOthers Property
The ContextMenu.HideOthers property is a read-write
Boolean property that gets or sets the appearance of the Hide
Others option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideOthers;
AlarmClient.ContextMenu.HideOthers = HideOthersVis;
Remarks
ContextMenu.HideSelected Property
The ContextMenu.HideSelected property is a read-write
Boolean property that gets or sets the appearance of the Hide
Selected option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideSelected;
AlarmClient.ContextMenu.HideSelected = HideSelVis;
Remarks
ContextMenu.HideSelectedGroups Property
The ContextMenu.HideSelectedGroups property is a
read-write Boolean property that gets or sets the appearance
of the Hide Selected Groups option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideSelectedGroups;
AlarmClient.ContextMenu.HideSelectedGroups =
HideSelGrpsVis;
Remarks
ContextMenu.HideSelectedPriorities Property
The ContextMenu.HideSelectedPriorities property is a
read-write Boolean property that gets or sets the appearance
of the Hide Selected Priorities option on the shortcut menu.
Syntax
result =
AlarmClient.ContextMenu.HideSelectedPriorities;
AlarmClient.ContextMenu.HideSelectedPriorities =
HideSelPrisVis;
Remarks
ContextMenu.HideSelectedTags Property
The ContextMenu.HideSelectedTags property is a read-write
Boolean property that gets or sets the appearance of the Hide
Selected Tags option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideSelectedTags;
AlarmClient.ContextMenu.HideSelectedTags =
HideSelTagsVis;
Remarks
ContextMenu.HideVisible Property
The ContextMenu.HideVisible property is a read-write
Boolean property that gets or sets the appearance of the Hide
Visible option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.HideVisible;
AlarmClient.ContextMenu.HideVisible = HideVisVis;
Remarks
ContextMenu.Requery Property
The ContextMenu.Requery property is a read-write Boolean
property that gets or sets the appearance of the Requery
option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Requery;
AlarmClient.ContextMenu.Requery = RequeryVis;
Remarks
ContextMenu.Reset Property
The ContextMenu.Reset property is a read-write Boolean
property that gets or sets the appearance of the Reset option
on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Reset;
AlarmClient.ContextMenu.Reset = ResetVis;
Remarks
ContextMenu.Sort Property
The ContextMenu.Sort property is a read-write Boolean
property that gets or sets the appearance of the Sort option
on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Sort;
AlarmClient.ContextMenu.Sort = SortVis;
Remarks
ContextMenu.Statistics Property
The ContextMenu.Statistics property is a read-write Boolean
property that gets or sets the appearance of the Statistics
option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.Statistics;
AlarmClient.ContextMenu.Statistics = StatsVis;
Remarks
ContextMenu.UnhideAll Property
The ContextMenu.UnhideAll property is a read-write
Boolean property that gets or sets the appearance of the
Unhide All option on the shortcut menu.
Syntax
result = AlarmClient.ContextMenu.UnhideAll;
AlarmClient.ContextMenu.UnhideAll = UnhideAllVis;
Remarks
Database.Authentication Property
The Database.Authentication property is a read-write string
property that gets or sets the authentication mode to connect
to the Alarm Database. Possible values are:
Windows Integrated
Windows Account
SQL Server
Remarks
Database.Name Property
The Database.Name property is a read-write string property
that gets or sets the name of the Alarm Database. The
default value is "WWALMDB".
If you change the Database.Name property at run time, you
need to call the Connect method to connect to the new alarm
database.
Syntax
result = AlarmClient.Database.Name;
AlarmClient.Database.Name = AlmDBName;
Remarks
Database.Password Property
The Database.Password property is a read-write string
property that gets or sets the password associated with the
user name to connect to the Alarm Database.
Syntax
result = AlarmClient.Database.Password;
AlarmClient.Database.Password = Psswrd;
Remarks
Database.ServerName Property
The Database.ServerName property is a read-write string
property that gets or sets the name of the server that hosts
the Alarm Database.
Syntax
result = AlarmClient.Database.ServerName;
AlarmClient.Database.ServerName = SrvName;
Remarks
Database.UserID Property
The Database.UserID property is a read-write string
property that gets or sets the name of user authorized to
access the Alarm Database.
Syntax
result = AlarmClient.Database.UserID;
AlarmClient.Database.UserID = UserName;
Remarks
Domain Property
The Domain property is a read-write string property that
gets or sets the domain name of the user to connect to the
Alarm Database.
Syntax
result = AlarmClient.Domain;
AlarmClient.Domain = DomName;
Remarks
Enabled Property
The Enabled property is a read-write Boolean property that
gets or sets the enablement of Alarm Control. When the
Alarm Control is disabled, alarm records are still updated,
but the operator cannot interact with the control.
The operator can still use scripting to interact with the
control.
Syntax
result = AlarmClient.Enabled;
AlarmClient.Enabled = EnableFlag;
EventColor.BackGround Property
The EventColor.BackGround property is a read-write color
property that gets or sets the background color of event
records.
Syntax
Color = AlarmClient.EventColor.BackGround;
AlarmClient.EventColor.BackGround = Color;
Parameters
Color
Color of background.
Example
AlarmClient1.EventColor.BackGround = Color.Blue;
Remarks
EventColor.ForeGround Property
The EventColor.ForeGround property is a read-write color
property that gets or sets the text color of event records.
Syntax
Color = AlarmClient.EventColor.ForeGround;
AlarmClient.EventColor.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.EventColor.ForeGround = Color.Blue;
Remarks
Favorite Property
The Favorite property is a read-write string property that
gets or sets the name of the current query filter favorite.
Syntax
QueryFilterName = AlarmClient.Favorite;
AlarmClient.Favorite = QueryFilterName;
Parameters
QueryFilterName
The name of a query filter favorite.
Example
Remarks
You can also use this property to reset the currently used
query filter to its default with the following script:
AlarmClient.Favorite = "Default";
FlashUnAckAlarms Property
The FlashUnAckAlarms property is a read-write Boolean
property that gets or sets the flashing of unacknowledged
alarm records.
Syntax
result = AlarmClient.FlashUnAckAlarms;
AlarmClient.FlashUnAckAlarms = FlashUnAckRecs;
Remarks
GridColor Property
The GridColor property is a read-write color property that
gets or sets the color of the grid lines.
Syntax
Color = AlarmClient.GridColor;
AlarmClient.GridColor = Color;
Parameters
Color
Color of the grid lines.
Example
AlarmClient1.GridColor = Color.Black;
Remarks
HeadingColor.BackGround Property
The HeadingColor.BackGround property is a read-write color
property that gets or sets the background color of the
heading.
Syntax
Color = AlarmClient.HeadingColor.BackGround;
AlarmClient.HeadingColor.BackGround = Color;
Parameters
Color
Color of background.
Example
AlarmClient1.HeadingColor.BackGround = Color.Blue;
Remarks
HeadingColor.ForeGround Property
The HeadingColor.ForeGround property is a read-write color
property that gets or sets the text color of the heading.
Syntax
Color = AlarmClient.HeadingColor.ForeGround;
AlarmClient.HeadingColor.ForeGround = Color;
Parameters
Color
Color of text.
Example
AlarmClient1.HeadingColor.ForeGround = Color.Blue;
Remarks
Height Property
The Height property is a read-write integer property that
gets or sets the height of the Alarm Control in pixels.
Syntax
result = AlarmClient.Height;
AlarmClient.Height = Hght;
HiddenAlarms Property
The HiddenAlarms property is a read-only integer property
that gets the number of hidden alarms.
Syntax
Result = AlarmClient.HiddenAlarms;
Example
LogMessage("There are " +
Text(AlarmClient1.HiddenAlarms,"#")+" hidden
alarms.");
HideErrors Property
The HideErrors property is a read-write Boolean property
that gets or sets the Hide Errors option.
Syntax
result = AlarmClient.HideErrors;
AlarmClient.HideErrors = SilentMode;
Remarks
MaxDatabaseRecords Property
The MaxDatabaseRecords property is a read-write integer
property that gets or sets the maximum database records to
retrieve. The valid range is 1 to 32766.
Syntax
result = AlarmClient.MaxDatabaseRecords;
AlarmClient.MaxDatabaseRecords = MaxRecs;
Remarks
NewAlarmEventMode Property
The NewAlarmEventMode property is an read-write integer
property that gets or sets the trigger behavior of the New
Alarm event.
Syntax
EMode = AlarmClient.NewAlarmEventMode;
AlarmClient.NewAlarmEventMode = EMode;
Parameters
EMode
Description
NoRecordsMessage.Enabled Property
The NoRecordsMessage.Enabled property is a read-write
Boolean property that gets or sets the visibility of a custom
message when no alarm records are available.
Syntax
result = AlarmClient.NoRecordsMessage.Enabled;
AlarmClient.NoRecordsMessage.Enabled = showMessage;
Example
AlarmClient1.NoRecordsMessage.Enabled = 1;
AlarmClient1.NoRecordsMessage.Message = "There are no
alarm records available";
Remarks
NoRecordsMessage.Message Property
The NoRecordsMessage.Message property is a read-write
string property that gets or sets the custom message text
when no alarm records are available and the
NoRecordsMessage.Enabled property value is TRUE.
Syntax
result = AlarmClient.NoRecordsMessage.Message;
AlarmClient.NoRecordsMessage.Message = myCustomMessage;
Example
AlarmClient1.NoRecordsMessage.Enabled = 1;
AlarmClient1.NoRecordsMessage.Message = "There are no
alarm records available";
Remarks
QueryStartup Property
The QueryStartup property is a read-write Boolean property
that gets or sets or sets the automatic update of the Alarm
Control on startup.
Syntax
result = AlarmClient.QueryStartup;
AlarmClient.QueryStartup = AutoQry;
Remarks
RetainHidden Property
The RetainHidden property is a read-write Boolean property
that gets or sets the retention of hidden alarms or events
when the alarm query or query filter to retrieve records
changes at run time.
Syntax
result = AlarmClient.RetainHidden;
AlarmClient.RetainHidden = RetainHddn;
Remarks
RowCount Property
The RowCount property is a read-only integer property that
gets the number of records shown in the Alarm Control grid.
For current alarms (and recent alarms and events), the
RowCount property value is always the same as the
TotalRowCount property value.
For historical alarms, if the Alarm Control retrieves more
alarm records than specified by the MaxDatabaseRecords
property value, it splits these into multiple pages.
The RowCount property shows how many alarm records are
currently shown on the current page. The RowCount
property value is the same as the MaxDatabaseRecords
property value, with exception of the last page.
Syntax
Result = AlarmClient.RowCount;
Example
NRows = AlarmClient1.RowCount;
LogMessage("There are " + Text(NRows, "#") + " alarm
records on the retrieved page.");
RowSelection Property
The RowSelection property is a read-write string property
that determines if row selection is allowed at run time. The
following values are possible:
Value
Description
No
Single
Multiple
Example
AlarmClient1.RowSelection = "Multiple";
Remarks
SelectedCount Property
The SelectedCount property is a read-only integer property
that gets the total number of selected alarm records.
Syntax
Result = AlarmClient.SelectedCount;
Return Value
ShowContextMenu Property
The ShowContextMenu property is a read-write Boolean
property that gets or sets the ability to open the shortcut
menu at run time.
Syntax
result = AlarmClient.ShowContextMenu;
AlarmClient.ShowContextMenu = ContxtMnuAvail;
ShowGrid Property
The ShowGrid property is a read-write Boolean property that
gets or sets the appearance of grid lines.
Syntax
result = AlarmClient.ShowGrid;
AlarmClient.ShowGrid = showGrid;
ShowGroupByHeader Property
The ShowGroupByHeader property is a read-write Boolean
property to show or hide the column grouping label at the top
of the run-time Alarm Control in the historical mode. Set the
ShowGroupByHeader property to true to show the label
"Drag a column header here to group by that column".
Syntax
result = AlarmClient.ShowGroupByHeader;
AlarmClient.ShowGroupByHeader = ShowGroupByHeader;
ShowHeading Property
The ShowHeading property is a read-write Boolean property
that gets or sets the visibility of the grid heading at run time.
Syntax
result = AlarmClient.ShowHeading;
AlarmClient.ShowHeading = showHeading;
ShowStatusBar Property
The ShowStatusBar property is a read-write Boolean
property that gets or sets the visibility of the status bar at
run time.
Syntax
result = AlarmClient.ShowStatusBar;
AlarmClient.ShowStatusBar = showStatusBar;
SortColumn.First Property
The SortColumn.First property is a read-write string
property that gets or sets the first sort column.
The default value is "Time (LCT)".
Syntax
result = AlarmClient.SortColumn.First;
AlarmClient.SortColumn.First = sortByFirst;
Example
AlarmClient1.SortColumn.First = "Class";
Remarks
SortColumn.Second Property
The SortColumn.Second property is a read-write string
property that gets or sets the second sort column.
The default value is blank.
Syntax
result = AlarmClient.SortColumn.Second;
AlarmClient.SortColumn.Second = sortBySecond;
Example
AlarmClient1.SortColumn.Second = "Type";
Remarks
SortColumn.Third Property
The SortColumn.Third property is a read-write string
property that gets or sets the third sort column.
The default value is blank.
Syntax
result = AlarmClient.SortColumn.Third;
AlarmClient.SortColumn.Third = sortByThird;
Example
AlarmClient1.SortColumn.Third = "State";
Remarks
SortOrder.First Property
The SortOrder.First property is a read-write Boolean
property that gets or sets the sorting direction of the first sort
column. The following values are possible:
Value
Description
FALSE
TRUE
Remarks
SortOrder.Second Property
The SortOrder.Second property is a read-write Boolean
property that gets or sets the sorting direction of the second
sort column. The following values are possible:
Value
Description
FALSE
TRUE
Remarks
SortOrder.Third Property
The SortOrder.Third property is a read-write Boolean
property that gets or sets the sorting direction of the third
sort column. The following values are possible:
Value
Description
FALSE
TRUE
Remarks
Time.Format Property
The Time.Format property is a read-write string property
that gets or sets the date and time formats of the alarm
records in the Alarm Control.
You can either use the .NET time format or the Wonderware
time format. Set the Time.Type property to determine which
time format type to use.
Syntax
result = AlarmClient.Time.Format;
AlarmClient.Time.Format = TmFormat;
Example
Remarks
Time.Type Property
The Time.Type property is a read-write Boolean property
that gets or sets the time format type of the alarm records.
The following values are possible:
Value
Description
FALSE
TRUE
Syntax
result = AlarmClient.Time.Type;
AlarmClient.Time.Type = TmType;
Example
Remarks
TimeSelector Property
The TimeSelector property gets the Time Range Picker object
used in the Alarm Control. You can use it in scripting to
shorten the code using its properties and methods.
For the individual properties and methods, see the following
properties, or the methods starting at
TimeSelector.GetStartAndEndTimes() Method on page 151.
Example 1
dim TRP as object;
TRP = AlarmClient1.TimeSelector;
Timeselect = TRP;
StartDate = TRP.StartDate;
EndDate = TRP.EndDate;
duration = TRP.TimeDuration;
Example 2
dim TRP as object;
TRP = AlarmClient1.TimeSelector;
TRP.SetStartAndEndTimes(StartDate, EndDate, Duration);
TimeSelector.DurationMS Property
The TimeSelector.DurationMS property is a read-write
integer property that gets the time duration measured in
milliseconds.
The start time of the Alarm control (TimeSelector.StartDate)
is calculated as the end time (TimeSelector.EndDate) minus
the new time duration (TimeSelector.DurationMS).
When you set the value of the TimeSelector.DurationMS
property, the TimeSelector.TimeDuration property is set to
0.
The default value is 3600000.
Syntax
result = AlarmClient.TimeSelector.DurationMS;
AlarmClient.TimeSelector.DurationMS = Value;
Example
AlarmClient1.TimeSelector.DurationMS = 1800000;
// The Alarm Control now retrieves alarms from the last
30 minutes.
TimeSelector.EndDate Property
The TimeSelector.EndDate property is a read-only string
property that gets the end date and time of the Alarm
Control.
The default value is the time the Alarm Control is placed on
the canvas. If the Update to Current Time option is enabled,
the TimeSelector.EndDate property is updated with the
current time.
Note To set the end date and time of the Alarm Control, use the
TimeSelector.GetStartAndEndTimes() Method.
Syntax
result = AlarmClient.TimeSelector.EndDate;
Example
LogMessage(AlarmClient1.TimeSelector.EndDate);
TimeSelector.StartDate Property
The TimeSelector.StartDate property is a read-only string
property that gets the start date and time of the Alarm
Control.
The default value is the time the Alarm Control is placed on
the canvas. If the Update to Current Time option is enabled,
the TimeSelector.StartDate property is updated as current
time minus duration.
Note To set the start date and time of the Alarm Control,use the
TimeSelector.SetStartAndEndTimes() Method.
Syntax
result = AlarmClient.TimeSelector.StartDate;
Example
LogMessage(AlarmClient1.TimeSelector.StartDate);
TimeSelector.TimeDuration Property
The TimeSelector.TimeDuration property is a read-write
integer property that gets or sets the time duration. The start
time of the Alarm control (TimeSelector.StartDate) is
calculated as the end time (TimeSelector.EndDate) minus
the new time duration.
The TimeSelector.TimeDuration can have one of the
following values:
Value
Description
Custom
10
11
Value
Description
12
13
14
15
16
17
One minute.
18
Five minutes.
19
Ten minutes.
20
15 minutes.
21
30 minutes.
22
One hour.
23
Two hours.
24
Four hours.
25
Eight hours.
26
12 hours.
27
24 hours.
28
Two days.
29
One week.
30
Two weeks.
31
One month.
32
Three months.
33
34
35
36
Syntax
result = AlarmClient.TimeSelector.TimeDuration;
AlarmClient.TimeSelector.TimeDuration = Value;
Example
AlarmClient1.TimeSelector.TimeDuration = 5;
// The Alarm Control now retrieves alarms from the last
30 minutes.
Remarks
TimeZone.TimeZone Property
The TimeZone.TimeZone property is a read-write string
property that gets or sets the time zone of the Alarm Control.
The default value depends on the current setting of the
operating system.
If you want to show time stamps using the local time of the
computer, set the TimeZone.TimeZone property to an empty
string.
Syntax
result = AlarmClient.TimeZone.TimeZone;
AlarmClient.TimeZone.TimeZone = TimeZone;
Example
AlarmClient1.TimeZone.TimeZone = "(GMT-09:00) Alaska";
Remarks
TotalRowCount Property
The TotalRowCount property is a read-only integer property
that gets the total number of alarm records in the Alarm
Control.
For current alarms (and recent alarms and events), the
RowCount property value is always the same as the
TotalRowCount property value.
For historical alarms, if the Alarm Control retrieves more
alarm records than specified by the MaxDatabaseRecords
property value, it splits these into multiple pages.
The RowCount property value shows how many alarm records
are currently shown on the current page, whereas the
TotalRowCount property value shows how many alarm
records are retrieved from the alarm database.
Syntax
Result = AlarmClient.TotalRowCount;
Return Value
UnAckAlarms Property
The UnAckAlarms property is a read-only integer property
that gets the number of unacknowledged alarm records in
the Alarm Control.
Syntax
Result = AlarmClient.UnackAlarms;
Return Value
UpdateToCurrentTime Property
The UpdateToCurrentTime property is a read-write Boolean
property that gets or sets the Update to Current Time option.
If you set this property to TRUE, the Alarm Control end time
is set to the current time and the start time is calculated as
the difference of end time and duration. Whenever you
refresh the Alarm Control, the end time is set as current
time.
If you set this property to FALSE, the Alarm Control uses
the end time, duration, and start time as defined by the Time
Range Picker control.
The default value is TRUE.
Syntax
result = AlarmClient.UpdateToCurrentTime;
AlarmClient.UpdateToCurrentTime = UpdToCurrTime;
Example
AlarmClient1.UpdateToCurrentTime = 1;
AlarmClient1.Requery();
Remarks
Visible Property
The Visible property is a read-write Boolean property that
gets or sets the visibility of the Alarm Control.
Syntax
result = AlarmClient.Visible;
AlarmClient.Visible = Boolean;
Width Property
The Width property is a read-write integer property that gets
or sets the width of the Alarm Control in pixels.
Syntax
result = AlarmClient.Width;
AlarmClient.Width = Wdth;
WindowColor Property
The WindowColor property is a read-write color property
that gets or sets the color of the Alarm Control background.
Syntax
Color = AlarmClient.WindowColor;
AlarmClient.WindowColor = Color;
Parameters
Color
Color of background.
Example
AlarmClient1.WindowColor = Color.FromARGB(240,200,198);
Remarks
X Property
The X property is a read-write integer property that gets or
sets the horizontal position of the Alarm Control in relation
to the left edge of the InTouch window in which it appears.
Syntax
result = AlarmClient.X;
AlarmClient.X = LeftPos;
Y Property
The Y property is a read-write integer property that gets or
sets the vertical position of the Alarm Control in relation to
the top edge of the InTouch window in which it appears.
Syntax
result = AlarmClient.Y;
AlarmClient.Y = TopPos;
AboutBox() Method
The AboutBox method shows the About dialog box of the
Alarm Control.
Syntax
AlarmClient.AboutBox();
Ack.All() Method
The Ack.All method acknowledges all alarms in the Alarm
Control, including those not shown.
Syntax
AlarmClient.Ack.All(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.All("Alarm is acknowledged");
Ack.Group() Method
The Ack.Group method acknowledges all alarms for a given
alarm source and group.
The alarm source and group names are case-insensitive.
Syntax
AlarmClient.Ack.Group(AlarmSource, Group, AckComment);
Parameters
AlarmSource
The name of the provider and optionally node providing
alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.Group("\\machine1\galaxy", "Area_001",
"All alarms in Area_001 acknowledged");
Ack.Priority() Method
The Ack.Priority method acknowledges all alarms for a given
alarm source, group, and priority range.
The alarm source and group names are case-insensitive.
Syntax
AlarmClient.Ack.Priority(AlarmSource, Group,
FromPriority, ToPriority, AckComment);
Parameters
AlarmSource
The name of the provider and optionally node providing
alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
AckComment
A string indicating the alarm acknowledgement comment.
Example
GrpName = "ValveGroup";
AlarmClient1.Ack.Priority("\intouch", GrpName, 250,
500, "All local InTouch alarms in the ValveGroup
alarm group with priorities from 250 to 500 are now
acknowledged.");
Ack.Selected() Method
The Ack.Selected method acknowledges all selected alarms.
Syntax
AlarmClient.Ack.Selected(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.Selected("This selected alarm is
acknowledged");
Ack.SelectedGroup() Method
The Ack.SelectedGroup method acknowledges all alarms
that have the same alarm sources and groups as one or more
selected alarms.
Syntax
AlarmClient.Ack.SelectedGroup(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.SelectedGroup("Alarm acknowledged");
Ack.SelectedPriority () Method
The Ack.SelectedPriority method acknowledges all alarms
that have the same alarm sources, groups, and within the
priority ranges as one or more selected alarms.
Syntax
AlarmClient.Ack.SelectedPriority(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.SelectedPriority("Alarm
acknowledged");
Ack.SelectedTag() Method
The Ack.SelectedTag method acknowledges all alarms that
have the same alarm sources, groups, tags, and within the
priority ranges as one or more selected alarms.
Syntax
AlarmClient.Ack.SelectedTag(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.SelectedTag("Alarm acknowledged");
Ack.Tag() Method
The Ack.Tag method acknowledges all alarms for a given
alarm source, group, tag name, and priority range.
The alarm source, group names, and tag names are
case-insensitive.
Syntax
AlarmClient.Ack.Tag(AlarmSource, Group, Tag,
FromPriority, ToPriority, AckComment);
Parameters
AlarmSource
The name of the provider and optionally node providing
alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Tag
The name of the alarm tag. For example, ValveTag1.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
AckComment
A string indicating the alarm acknowledgement comment.
Example
AckComment = "All ArchestrA alarm records of the
attribute Valve17 in the group (area) Vessel_25B of
the galaxy on machine25 with priorities from 1 to 99
are now acknowledged.";
AlarmClient1.Ack.Tag("\\machine25\galaxy",
"Vessel_25B", "Valve17", 1, 99, AckComment);
Ack.Visible() Method
The Ack.Visible method acknowledges all alarms currently
visible in the Alarm Control.
Syntax
AlarmClient.Ack.Visible(AckComment);
Parameters
AckComment
A string indicating the alarm acknowledgement comment.
Example
AlarmClient1.Ack.Visible("Alarm acknowledged");
Connect() Method
The Connect method connects the Alarm Control to the
Alarm Database.
Syntax
AlarmClient.Connect();
Disconnect() Method
The Disconnect method disconnects the Alarm Control from
the Alarm Database.
Syntax
AlarmClient.Disconnect();
Favorites.Export() Method
The Favorites.Emport method exports the list of query filter
favorites list to an XML file.
Syntax
AlarmClient.Favorites.Export(FilePath, FileName);
Parameters
FilePath
Name of the path to export the query filter favorites file.
FileName
Name of the query filter favorites file to export.
Example
AlarmClient1.Favorites.Export("c:\",
"MyFavorites.xml");
Favorites.Import() Method
The Favorites.Import method imports the list of query filter
favorites list from an XML file. You can either overwrite the
exisiting query filter favorites with the new favorites, or
append them.
Syntax
AlarmClient.Favorites.Import(FilePath, FileName,
OverwriteAppend);
Parameters
FilePath
Name of the path to the query filter favorites file to import.
FileName
Name of the query filter favorites file to import.
OverwriteAppend
String determining if the import of the query filter favorites
overwrites existing favorites, or appends to existing
favorites. Set to one of the following:
Example
AlarmClient1.Favorites.Import("c:\MyFavs\", "Favs.xml",
"Overwrite");
FreezeDisplay() Method
The FreezeDisplay method freezes or unfreezes the Alarm
Control. The following values are possible:
Value
Description
TRUE
FALSE
Syntax
AlarmClient.FreezeDisplay(FreezeFlag);
Parameters
FreezeFlag
Boolean value or expression (TRUE = freeze control,
FALSE = unfreeze control)
Example
AlarmClient1.FreezeDisplay($hour > 17 OR $hour<9 );
LogMessage("The Alarm Control is frozen between 6 PM
and 8 AM.");
GetItem() Method
The GetItem method returns the data at the given row and
column. The row is given as a zero-based index. You need to
specify 0 to retrieve data from the 1st row. The column name
can either be the original column name, or the displayed
column name.
Syntax
Result = AlarmClient.GetItem(RowNumber, ColumnName);
Parameters
RowNumber
An integer row number for the alarm record containing the
value you want to fetch.
ColumnName
Name of the column.
Return Value
Remarks
GetLastError() Method
The GetLastError method returns the last error message.
This is useful if the Hide Errors option is selected.
Syntax
ErrMsg = AlarmClient.GetLastError();
Return Value
GetSelectedItem() Method
The GetSelectedItem method returns the data at the
currently selected row and specified column. The column
name can either be the original column name, or the
displayed column name.
Syntax
Result = AlarmClient.GetSelectedItem(ColumnName);
Parameters
ColumnName
Name of the column.
Return Value
Remarks
To get alarm record data from a given column name and row
index, use the GetItem method.
Hide.All() Method
The Hide.All method hides all current alarms in the Alarm
Control, including future alarms.
Syntax
AlarmClient.Hide.All();
Hide.Group() Method
The Hide.Group method hides all alarms for a given alarm
source and group.
The alarm source and group names are case-insensitive.
Syntax
AlarmClient.Hide.Group(AlarmSource, Group);
Parameters
AlarmSource
The name of the provider and optionally node providing
alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Example
AlarmClient1.Hide.Group("\\machine1\galaxy",
"Area_001");
LogMessage("All alarms in Area_001 hidden.");
Hide.Priority() Method
The Hide.Priority method hides all alarms for a given alarm
source, group, and priority range.
The alarm source and group names are case-insensitive.
Syntax
AlarmClient.Hide.Priority(AlarmSource, Group,
FromPriority, ToPriority);
Parameters
AlarmSource
The name of the provider and optionally node providing
alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
Example
GrpName = "ValveGroup";
AlarmClient1.Hide.Priority("\intouch", GrpName, 250,
500);
LogMessage("All local InTouch alarms in the ValveGroup
alarm group with priorities from 250 to 500 are now
hidden.");
Hide.Selected() Method
The Hide.Selected method hides all selected alarms.
Syntax
AlarmClient.Hide.Selected();
Hide.SelectedGroup() Method
The Hide.SelectedGroup method hides all alarms that have
the same alarm sources and groups as one or more selected
alarms.
Syntax
AlarmClient.Hide.SelectedGroup();
Hide.SelectedPriority() Method
The Hide.SelectedPriority method hides all alarms that have
the same alarm sources, groups, and within the priority
ranges as one or more selected alarms.
Syntax
AlarmClient.Hide.SelectedPriority();
Hide.SelectedTag() Method
The Hide.SelectedTag method hides all alarms that have the
same alarm sources, groups, tag names, and within the
priority ranges as one or more selected alarms.
Syntax
AlarmClient.Hide.SelectedTag();
Remarks
None
Hide.Tag() Method
The Hide.Tag method hides all alarms for a given alarm
source, group, tag name, and priority range.
The alarm source, group name, and tag names are
case-insensitive.
Syntax
AlarmClient.Hide.Tag(AlarmSource, Group, Tag,
FromPriority, ToPriority);
Parameters
AlarmSource
The name of the provider and optionally node providing
alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Tag
The name of the alarm tag. For example, ValveTag1.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
Example
AlarmClient1.Hide.Tag("\\machine25\galaxy",
"Vessel_25B", "Valve17", 1, 99);
LogMessage("All ArchestrA alarm records of the
attribute Valve17 in the group (area) Vessel_25B of
the galaxy on machine25 with priorities from 1 to 99
are now hidden.");
Hide.Visible() Method
The Hide.Visible method hides all alarms currently visible in
the Alarm Control.
Syntax
AlarmClient.Hide.Visible();
MoveWindow() Method
The MoveWindow method scrolls the alarm records in the
control in a given direction.
Syntax
AlarmClient.MoveWindow(ScrollDir, Repeat);
Parameters
ScrollDir
String indicating the direction to scroll. This parameter is
case-insensitive. See the following table.
ScrollDir
Description
LineDn
LineUp
PageDn
PageUp
Top
Bottom
PageRt
PageLf
Right
Left
Home
Repeat
Number of times to repeat the scroll action.
Example
AlarmClient1.MoveWindow ("Bottom", 0);
Requery() Method
The Requery method refreshes the alarm records in the
Alarm Control.
For current alarms and recent alarms and events, the control
requeries the Alarm Manager. For historical alarms or
events, the control retrieves alarm records from the Alarm
Database.
Syntax
AlarmClient.Requery();
Reset() Method
The Reset method resets column widths and the column
order to their last known design-time settings. The Reset
method also resets the current query filter to the default
query.
Syntax
AlarmClient.Reset();
Select.All() Method
The Select.All method selects all alarms in the Alarm
Control.
Syntax
AlarmClient.Select.All();
Select.Group() Method
The Select.Group method selects all alarms for a given
provider and group.
Syntax
AlarmClient.Select.Group(AlarmSource, Group);
Parameters
AlarmSource
The name of the provider and optionally node providing
alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Example
AlarmClient1.Select.Group("\\machine1\galaxy",
"Area_001");
LogMessage("All galaxy alarms of group Area_001 from
machine1 are now selected.");
Select.Item() Method
The Select.Item method selects an alarm record at a given
zero-based row number.
Syntax
AlarmClient.Select.Item(RowNumber);
Parameters
RowNumber
An integer row number for the alarm record to select. The
first row in the control is 0.
Example
AlarmClient1.Select.Item(5);
LogMessage("The alarm record in the 6th row (index 5)
is now selected.");
Select.Priority() Method
The Select.Priority method selects all alarms for a given
alarm source, group, and priority range.
Syntax
AlarmClient.Select.Priority(AlarmSource, Group,
FromPriority, ToPriority);
Parameters
AlarmSource
The name of the provider and optionally node providing
alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
Example
GrpName = "ValveGroup";
AlarmClient1.Select.Priority("\intouch", GrpName, 250,
500);
LogMessage("All local InTouch alarms in the ValveGroup
alarm group with priorities from 250 to 500 are now
selected.");
Select.Tag() Method
The Select.Tag method selects all alarms for a given alarm
source, group, tag name, and priority range.
Syntax
AlarmClient.Select.Tag(AlarmSource, Group, Tag,
FromPriority, ToPriority);
Parameters
AlarmSource
The name of the provider and optionally node providing
alarms including backslash. For example:
\\node1\galaxy
\intouch
Group
The name of the alarm group. For example, $system.
Tag
The name of the alarm tag. For example, ValveTag1.
FromPriority
Starting priority of alarms. For example, 100.
ToPriority
End priority of alarms. For example, 900.
Example
AlarmClient1.Select.Tag("\\machine25\galaxy",
"Vessel_25B", "Valve17", 1, 99);
LogMessage("All ArchestrA alarm records of the
attribute Valve17 in the group (area) Vessel_25B of
the galaxy on machine25 with priorities from 1 to 99
are now selected.");
SetSort() Method
The SetSort method sets the level of sorting according to the
defined sort columns and sort orders.
Syntax
AlarmClient.SetSort(Level);
Parameters
Level
The level of sorting:
Value
Description
Example
AlarmClient1.SetSort(2);
Remarks
Use the Show.Sort method to open the Sort dialog box instead.
Show.Context() Method
The Show.Context method opens the shortcut menu at run
time. This method ignores the ShowContextMenu property
setting and always shows the context menu.
Syntax
AlarmClient.Show.Context();
Show.Favorite() Method
The Show.Favorite method opens the Query Filters dialog
box.
Syntax
AlarmClient.Show.Favorite();
Show.Hidden() Method
The Show.Hidden method opens the Hidden Alarms dialog
box.
Syntax
AlarmClient.Show.Hidden();
Show.Sort() Method
The Show.Sort method opens the Sort dialog box.
Syntax
AlarmClient.Show.Sort();
Show.Statistics() Method
The Show.Statistics method opens the Alarm Statistics dialog
box.
Syntax
AlarmClient.Show.Statistics();
TimeSelector.GetStartAndEndTimes() Method
The TimeSelector.GetStartAndEndTimes method gets the
start and end times for the query.
Syntax
AlarmClient.GetStartAndEndTimes(StartTime, EndTime);
Parameters
StartTime
String attribute, custom property, or element property to
retrieve the start time.
EndTime
String attribute, custom property, or element property to
retrieve the end time.
Example
dim SDate as string;
dim EDate as string;
AlarmClient1.TimeSelector.GetStartAndEndTimes(SDate,
EDate);
StartDate = SDate;
EndDate = EDate;
TimeSelector.RefreshTimes() Method
The TimeSelector.RefreshTimes method sets the time period
for the query by updating the end time to current time and
recalculates the start time based on the new end time and
duration.
If you set the Boolean parameter to TRUE, the OnChange
event is triggered if the time is updated.
Only use this method, if the Update to Current Time option is
cleared or the UpdateToCurrentTime property is FALSE.
Note This method does not work if the UpdatetoCurrentTime
property value is TRUE.
Syntax
AlarmClient.TimeSelector.RefreshTimes(TriggerEvent);
Example
dtag = 1;
AlarmClient.TimeSelector.RefreshTimes(dtag);
TimeSelector.SetStartAndEndTimes() Method
The TimeSelector.SetStartAndEndTimes method sets the
start and end times for the query.
You must specify one of the following parameter
combinations:
Syntax
AlarmClient.SetStartAndEndTimes(StartTime, EndTime,
Duration);
Parameters
StartTime
String value or expression indicating the start time.
EndTime
String value or expression indicating the end time.
Duration
Duration enum. For more information on possible values,
see TimeSelector.TimeDuration Property on page 129.
Example
AlarmClient1.TimeSelector.SetStartAndEndTimes("08/31/2
008 15:33:43","09/01/2009 15:33:43",0);
Toggle.All() Method
The Toggle.All method reverses the selection of all alarm
records. Selected alarms are cleared, and unselected alarms
are selected.
Syntax
AlarmClient.Toggle.All();
Toggle.Item() Method
The Toggle.Item method reverses the selection of a given
alarm record. If the given alarm record is selected, the
selection is cleared; otherwise, it is selected.
Syntax
AlarmClient.Toggle.Item(RowNumber);
Parameters
RowNumber
An integer row number for the alarm record to reverse the
selection. The first row in the control is 0.
Example
AlarmClient1.Toggle.Item(5);
LogMessage("The selection of the alarm record in the
6th row (index 5) is now reversed.");
UnhideAll() Method
The UnhideAll method unhides all hidden alarms.
Syntax
AlarmClient.UnhideAll();
UnSelectAll() Method
The UnSelectAll method unselects all alarm records.
Syntax
AlarmClient.UnSelectAll();
Configuring Events
You can execute an action script when the Alarm Control
triggers an event. Examples of basic events are:
Configuring Events155
Click OK.
.NET Colors
The following table is an overview of the color .NET color
names with hexadecimal code.
Color with Hex Code
AliceBlue #F0F8FF
AntiqueWhite #FAEBD7
Aqua #00FFFF
Aquamarine #7FFFD4
Azure #F0FFFF
Beige #F5F5DC
Bisque #FFE4C4
Black #000000
BlanchedAlmond
#FFEBCD
Blue #0000FF
BlueViolet #8A2BE2
Brown #A52A2A
BurlyWood #DEB887
CadetBlue #5F9EA0
Chartreuse #7FFF00
Chocolate #D2691E
Coral #FF7F50
CornflowerBlue #6495ED
Cornsilk #FFF8DC
Crimson #DC143C
Cyan #00FFFF
DarkBlue #00008B
DarkCyan #008B8B
DarkGoldenrod #B8860B
DarkGray #A9A9A9
DarkGreen #006400
DarkKhaki #BDB76B
DarkMagenta #8B008B
DarkOliveGreen #556B2F
DarkOrange #FF8C00
DarkOrchid #9932CC
DarkRed #8B0000
DarkSalmon #E9967A
DarkSeaGreen #8FBC8B
DarkSlateBlue #483D8B
DarkSlateGray #2F4F4F
DarkTurquoise #00CED1
DarkViolet #9400D3
DeepPink #FF1493
DeepSkyBlue #00BFFF
DimGray #696969
DodgerBlue #1E90FF
Firebrick #B22222
FloralWhite #FFFAF0
ForestGreen #228B22
Fuchsia #FF00FF
Gainsboro #DCDCDC
GhostWhite #F8F8FF
Gold #FFD700
Goldenrod #DAA520
Gray #808080
Green #008000
GreenYellow #ADFF2F
Honeydew #F0FFF0
HotPink #FF69B4
IndianRed #CD5C5C
Indigo #4B0082
Ivory #FFFFF0
Khaki #F0E68C
Lavender #E6E6FA
LavenderBlush #FFF0F5
LawnGreen #7CFC00
LemonChiffon #FFFACD
LightBlue #ADD8E6
LightCoral #F08080
LightCyan #E0FFFF
LightGoldenrodYellow
#FAFAD2
LightGray #D3D3D3
LightGreen #90EE90
LightPink #FFB6C1
LightSalmon #FFA07A
LightSeaGreen #20B2AA
LightSkyBlue #87CEFA
LightSlateGray #778899
LightSteelBlue #B0C4DE
LightYellow #FFFFE0
Lime #00FF00
LimeGreen #32CD32
.NET Colors157
Linen #FAF0E6
Magenta #FF00FF
Maroon #800000
MediumAquamarine
#66CDAA
MediumBlue #0000CD
MediumOrchid #BA55D3
MediumPurple #9370DB
MediumSeaGreen
#3CB371
MediumSlateBlue
#7B68EE
MediumSpringGreen
#00FA9A
MediumTurquoise
#48D1CC
MediumVioletRed
#C71585
MidnightBlue #191970
MintCream #F5FFFA
MistyRose #FFE4E1
Moccasin #FFE4B5
NavajoWhite #FFDEAD
Navy #000080
OldLace #FDF5E6
Olive #808000
OliveDrab #6B8E23
Orange #FFA500
OrangeRed #FF4500
Orchid #DA70D6
PaleGoldenrod #EEE8AA
PaleGreen #98FB98
PaleTurquoise #AFEEEE
PaleVioletRed #DB7093
PapayaWhip #FFEFD5
PeachPuff #FFDAB9
Peru #CD853F
Pink #FFC0CB
Plum #DDA0DD
PowderBlue #B0E0E6
Purple #800080
Red #FF0000
RosyBrown #BC8F8F
RoyalBlue #4169E1
SaddleBrown #8B4513
Salmon #FA8072
SandyBrown #F4A460
SeaGreen #2E8B57
SeaShell #FFF5EE
Sienna #A0522D
Silver #C0C0C0
SkyBlue #87CEEB
SlateBlue #6A5ACD
SlateGray #708090
Snow #FFFAFA
SpringGreen #00FF7F
SteelBlue #4682B4
Tan #D2B48C
Teal #008080
Thistle #D8BFD8
Tomato #FF6347
Transparent #FFFFFF
Turquoise #40E0D0
Violet #EE82EE
Wheat #F5DEB3
White #FFFFFF
WhiteSmoke #F5F5F5
Yellow #FFFF00
YellowGreen #9ACD32
159
Chapter 5
Transferring Alarm Configuration
from InTouch
InTouch option
ControlName
Visible
GUID
InTouch option
Perform Query
on Startup
Show Context
Sensitive Menu
Configure
Context Menus
Retain
Suppression
InTouch option
Show Heading
Resize Column
Row Selection
Use Extended
Selection
Show Grid
Silent Mode
Flash Unack
Alarms
Show Message
Font
Column Details
All the options of the Color tab in the InTouch Alarm Viewer
control can be set on the Colors page of the ArchestrA Alarm
Control.
The following table shows you some minor differences in
wording:
InTouch Alarm Viewer
control
Heading Text
Heading Background
Alarm Return
Alarm RTN
You can also set the background color in addition to the text
color for most of the alarm records.
You can set the alarm priority range breakpoints directly in
the table in the From Pri column.
InTouch option
Time Format
Displayed Time
Displayed Time
Zone
InTouch option
From Priority,
To Priority
Alarm State
Query Type
Alarm Query
InTouch option
Query Favorites
File, Edit Query
Favorites
Sort Column
Auto Scroll to
New Alarms
Secondary Sort
Column, Sort
Direction
Click
Shutdown
DoubleClick
StartUp
New Alarm
InTouch option
ControlName
Visible
InTouch option
GUID
InTouch option
Enable Refresh
Menu
Enable Sort
Menu
Enabled Reset
Menu
Enabled Filter
Menu
InTouch option
Display Mode
Column Details
Show Grid
Show Heading
Row Selection
Resize Column
Retrieve Buttons
Silent Mode
Font
InTouch option
Show Message
Forecolor
Text
Backcolor
Background
Alm
n/a
Return
RTN
Server Name
Database Name
User
Password
Test Connection
InTouch option
Use Specific
Time, Start
Time, End Time
InTouch option
Duration
UnAck Duration,
Alarm Duration
Query Time
Zone
Maximum
Records
InTouch option
Time Format
Displayed Time
Zone
Primary Sort
Column,
Secondary Sort
Column, Sort
Order
Click
Shutdown
DoubleClick
StartUp
NewAlarm
AboutBox()
AckAll()
AckAllMenu
ContextMenu.AckAll Property on
page 104
AckAlmBackColor
AlarmColor.Ack.BackGround Property
on page 90
AckAlmBackColorRange1
AlarmColor.Ack.BackGround Property
on page 90
AckAlmBackColorRange2
AlarmColor.Ack.BackGround Property
on page 90
AckAlmBackColorRange3
AlarmColor.Ack.BackGround Property
on page 90
AckAlmBackColorRange4
AlarmColor.Ack.BackGround Property
on page 90
AckAlmColorRange1
AlarmColor.Ack.ForeGround Property on
page 91
AckAlmColorRange2
AlarmColor.Ack.ForeGround Property on
page 91
AckAlmColorRange3
AlarmColor.Ack.ForeGround Property on
page 91
AckAlmColorRange4
AlarmColor.Ack.ForeGround Property on
page 91
AckAlmForeColor
AlarmColor.Ack.ForeGround Property on
page 91
AckAlmForeColorRange1
AlarmColor.Ack.ForeGround Property on
page 91
AckAlmForeColorRange2
AlarmColor.Ack.ForeGround Property on
page 91
AckAlmForeColorRange3
AlarmColor.Ack.ForeGround Property on
page 91
AckAlmForeColorRange4
AlarmColor.Ack.ForeGround Property on
page 91
AckGroup()
AckOthersMenu
ContextMenu.AckOthers Property on
page 105
AckPriority()
AckRtnBackColor
AlarmColor.RTN.BackGround Property
on page 94
AckRtnForeColor
AlarmColor.RTN.ForeGround Property
on page 95
AckSelected()
AckSelectedGroup()
AckSelectedGroupsMenu
ContextMenu.AckSelectedGroups
Property on page 105
AckSelectedMenu
ContextMenu.AckSelected Property on
page 105
AckSelectedPrioritiesMenu
ContextMenu.AckSelectedPriorities
Property on page 106
AckSelectedPriority()
Ack.SelectedPriority () Method on
page 137
AckSelectedTag()
AckSelectedTagsMenu
ContextMenu.AckSelectedTags Property
on page 106
AckTag()
AckVisible()
AckVisibleMenu
ContextMenu.AckVisible Property on
page 106
AlarmQuery
AlarmState
AlmRtnBackColor
AlarmColor.RTN.BackGround Property
on page 94
AlmRtnColor
AlarmColor.RTN.ForeGround Property
on page 95
AlmRtnForeColor
AlarmColor.RTN.ForeGround Property
on page 95
ApplyDefaultQuery()
ApplyQuery()
AutoConnect
AutoScroll
ColorPriorityRange1
ColorPriorityRange2
ColorPriorityRange3
ColumnResize
AllowColumnResize Property on
page 103
Connect()
ConnectStatus
CustomMessage
NoRecordsMessage.Message Property on
page 120
DefaultAckComment
AckComment.DefaultValue Property on
page 87
DisplayedTime
DisplayedTimeZone
TimeZone.TimeZone Property on
page 131
DisplayMode
Duration
TimeSelector.TimeDuration Property on
page 129
EndTime
TimeSelector.EndDate Property on
page 128
EventBackColor
EventColor.BackGround Property on
page 114
EventColor
EventColor.ForeGround Property on
page 115
EventForeColor
EventColor.ForeGround Property on
page 115
ExtendedSelection
FilterFavoritesFile
FilterMenu
ContextMenu.Favorites Property on
page 107
FilterName
FlashUnackAlarms
FlashUnAckAlarms Property on
page 116
FlashUnAckAlmColorRange1
AlarmColor.UnAck.Flash.ForeGround
Property on page 98
FlashUnAckAlmColorRange2
AlarmColor.UnAck.Flash.ForeGround
Property on page 98
FlashUnAckAlmColorRange3
AlarmColor.UnAck.Flash.ForeGround
Property on page 98
FlashUnAckAlmColorRange4
AlarmColor.UnAck.Flash.ForeGround
Property on page 98
Font
FreezeDisplay()
FreezeMenu
ContextMenu.Freeze Property on
page 107
FromPriority
GetItem()
GetLastError()
GetNext()
GetPrevious()
GetSelectedItem()
GridColor
GroupExactMatch
GroupName
MaxRecords
MaxDatabaseRecords Property on
page 119
MoveWindow()
NewAlarmEventMode
NewAlarmEventMode Property on
page 119
Password
Database.Authentication Property on
page 112
PrimarySort
ProviderExactMatch
ProviderName
QueryFavoritesFile
QueryFavoritesMenu
ContextMenu.Favorites Property on
page 107
QueryName
QueryStartup
QueryTimeZone
TimeZone.TimeZone Property on
page 131
QueryType
Refresh()
RefreshMenu
ContextMenu.Requery Property on
page 110
Requery()
RequeryMenu
ContextMenu.Requery Property on
page 110
Reset()
ResetMenu
ContextMenu.Reset Property on
page 110
RetainSuppression
RowCount
RowSelection
SecondarySort
SortColumn.Second Property on
page 124
SecondarySortColumn
SortColumn.Second Property on
page 124
SelectAll()
SelectedCount
SelectGroup()
SelectItem()
SelectPriority()
SelectQuery()
SelectTag()
ServerName
Database.ServerName Property on
page 113
SetQueryByName
SetSort()
ShowContext()
ShowContextMenu
ShowDate
ShowFetch
ShowFilter()
ShowGrid
ShowHeading
ShowMessage
NoRecordsMessage.Enabled Property on
page 120
ShowQueryFavorites()
ShowSort()
ShowStatistics()
ShowStatusBar
ShowSuppression()
SilentMode
SortColumn
SortMenu
SortOnCol()
SortOrder
SpecificTime
UpdateToCurrentTime Property on
page 132
StartTime
TimeSelector.StartDate Property on
page 129
StatsMenu
ContextMenu.Statistics Property on
page 111
SuppressAll()
SuppressAllMenu
ContextMenu.HideAll Property on
page 108
SuppressedAlarms
SuppressGroup()
SuppressionMenu
ContextMenu.Hidden Property on
page 107
SuppressOthersMenu
ContextMenu.HideOthers Property on
page 108
SuppressPriority()
SuppressSelected()
SuppressSelectedGroup()
Hide.SelectedGroup() Method on
page 144
SuppressSelectedGroupsMenu
ContextMenu.HideSelectedGroups
Property on page 109
SuppressSelectedMenu
ContextMenu.HideSelected Property on
page 108
SuppressSelectedPrioritiesMenu
ContextMenu.HideSelectedPriorities
Property on page 109
SuppressSelectedPriority()
Hide.SelectedPriority() Method on
page 144
SuppressSelectedTagsMenu
ContextMenu.HideSelectedTags
Property on page 109
SuppressSelectedTag()
SuppressTag()
SuppressVisible()
SuppressVisibleMenu
ContextMenu.HideVisible Property on
page 110
Time
TimeFormat
TitleBackColor
HeadingColor.BackGround Property on
page 117
TitleForeColor
HeadingColor.ForeGround Property on
page 118
ToPriority
TotalAlarms
TotalRowCount
UnAckAlarms
UnAckAlmBackColor
AlarmColor.UnAck.BackGround
Property on page 96
UnAckAlmBackColorRange1
AlarmColor.UnAck.BackGround
Property on page 96
UnAckAlmBackColorRange2
AlarmColor.UnAck.BackGround
Property on page 96
UnAckAlmBackColorRange3
AlarmColor.UnAck.BackGround
Property on page 96
UnAckAlmBackColorRange4
AlarmColor.UnAck.BackGround
Property on page 96
UnAckAlmColorRange1
AlarmColor.UnAck.ForeGround
Property on page 100
UnAckAlmColorRange2
AlarmColor.UnAck.ForeGround
Property on page 100
UnAckAlmColorRange3
AlarmColor.UnAck.ForeGround
Property on page 100
UnAckAlmColorRange4
AlarmColor.UnAck.ForeGround
Property on page 100
UnAckAlmForeColor
AlarmColor.UnAck.ForeGround
Property on page 100
UnAckAlmForeColorRange1
AlarmColor.UnAck.ForeGround
Property on page 100
UnAckAlmForeColorRange2
AlarmColor.UnAck.ForeGround
Property on page 100
UnAckAlmForeColorRange3
AlarmColor.UnAck.ForeGround
Property on page 100
UnAckAlmForeColorRange4
AlarmColor.UnAck.ForeGround
Property on page 100
UnAckOrAlarmDuration
UnSelectAll()
UnSuppressAll()
UnsuppressAllMenu
ContextMenu.UnhideAll Property on
page 112
UseDefaultAckComment
AckComment.UseDefault Property on
page 88
UserID
Visible
WindowColor
189
Index
A
about the ArchestrA alarm control 13
AboutBox 134
access to rows and columns, restricting
user 59
Ack.All 135
AckComment.DefaultValue 87
AckComment.UseDefault 88
Ack.Group 135
acknowledged alarms, setting colors
for 37
acknowledging alarms 17, 69
Ack.Priority 135
Ack.Selected 136
Ack.SelectedGroup 137
Ack.SelectedPriority 137
Ack.SelectedTag 137
AckSignature.MaxPriority 88
AckSignature.MinPriority 89
AckSignature.Required 89
Ack.Tag 138
Ack.Visible 139
adding a new query filter 46, 74
alarm configuration from InTouch,
transferring 159
alarm control
about 13
configuring 25
190Index
AlarmColor.Ack.ForeGround 91
AlarmColor.Ack.RTN.BackGround 92
AlarmColor.Ack.RTN.ForeGround 93
AlarmColor.Range 93
AlarmColor.RTN.BackGround 94
AlarmColor.RTN.ForeGround 95
AlarmColor.UnAck.BackGround 96
AlarmColor.UnAck.Flash.BackGround 9
7
AlarmColor.UnAck.Flash.ForeGround 9
8
AlarmColor.UnAck.ForeGround 100
AlarmColor.UnAck.RTN.BackGround 10
1
AlarmColor.UnAck.RTN.ForeGround 10
2
AlarmQuery 102
alarms and events, recent 14
alarms and events, showing current
alarms or recent 28
alarms and/or events, showing
historical 30
Alarms at run-time, Sorting 73
alarms or recent alarms and events,
showing current 28
alarms to flash, setting
unacknowledged 38
alarms, acknowledging 17, 69
alarms, current 14
alarms, filtering 45
alarms, hiding 79
alarms, historical 15
alarms, scrolling automatically to new 58
alarms, setting colors 37, 38
alarms, sorting 43
AllowColumnResize 103
ArchestrA alarm control, about 13
ArchestrA symbols, placing the alarm
control into 26
ArchestrA symbols, using the alarm
control in 16
automatically querying for alarms on
start up 58
AutoResumeDuration 103
AutoScroll 103
B
bar, status 23
C
changing alarm query filter 60
changing column order 42
changing the language of the No
Records message 61
client modes 14
switching between 15, 83
client-based filtering 76
ClientMode 103
color tab 163, 171
colors
setting alarm control 33
setting event record 33
setting return to normal record 34
colors for acknowledged alarms,
setting 37
colors for unacknowledged alarms,
setting 38
column headers, renaming 41
columns, changing the order of 42
columns, resizing 41
columns, restricting user access to rows
and 59
configuration
transferring query favorites 178
transferring the InTouch alarm DB
view control 168
transferring the InTouch alarm viewer
control 159
configuration from InTouch, transferring
alarm 159
configuring alarms to require ACK
signature 62
configuring events 154
configuring run-time behavior 56
configuring the alarm control 25
configuring the newalarm event 154
configuring the run-time shortcut
menu 63
Connect 139
ConnectStatus 104
constructing filters 48
ContextMenu.AckAll 104
ContextMenu.AckOthers 105
ContextMenu.AckSelected 105
ContextMenu.AckSelectedGroups 105
ContextMenu.AckSelectedPriorities 106
ContextMenu.AckSelectedTags 106
ContextMenu.AckVisible 106
Index191
ContextMenu.Favorites 107
ContextMenu.Freeze 107
ContextMenu.Hidden 107
ContextMenu.HideAll 108
ContextMenu.HideOthers 108
ContextMenu.HideSelected 108
ContextMenu.HideSelectedGroups 109
ContextMenu.HideSelectedPriorities 109
ContextMenu.HideSelectedTags 109
ContextMenu.HideVisible 110
ContextMenu.Requery 110
ContextMenu.Reset 110
ContextMenu.Sort 111
ContextMenu.Statistics 111
ContextMenu.UnhideAll 112
control colors, setting alarm 33
control configuration
transferring the InTouch alarm DB
view 168
transferring the InTouch alarm
viewer 159
control grid, refreshing the alarm 66
control name tab 160, 168
conventions, documentation 12
current alarms 14
current alarms, showing 28
current modes, using status bar
information of 66
current value and quality display 17
customizing the No Records
message 61
D
database tab, transferring configuration
of the 172
database, alarm 15
Database.Authentication 112
Database.Name 112
Database.Password 113
Database.ServerName 113
Database.UserID 113
DB view control configuration,
transferring the InTouch alarm 168
deleting a query filter 75
deleting a query filter favorite 50
Disconnect 139
display, current value and quality 17
Documentation conventions 12
Domain 114
E
Enabled 114
errors, hiding 59
event record colors, setting 33
EventColor.BackGround 114
EventColor.ForeGround 115
events 14
configuring 154
historical 15
events tab 167, 177
events, showing 28, 30
existing query filter, modifying 50, 75
existing query filter, using 46, 74
exporting query filter favorites 50, 76
F
Favorite 115
favorites, exporting query filter 50, 76
favorites, importing query filter 51, 76
Favorites.Export 139
Favorites.Import 140
filter
modifying an existing query 50, 75
retain hiding when changing alarm
query 60
using an existing query 46, 74
filter tab 176
filtering alarms 45
filtering alarms at run-time 74
filtering alarms with client-based
filtering 76
filtering, alarm 20
filters, constructing 48
flashing alarms 38
FlashUnAckAlarms 116
format
setting the Wonderware time 53
setting time zone and 52
format tab 164
FreezeDisplay 140
freezing the alarm control grid 22, 82
frozen grid, overriding the 60
G
general tab 161, 169
GetItem 141
GetLastError 142
GetSelectedItem 142
192Index
H
headers, renaming column 41
HeadingColor.BackGround 117
HeadingColor.ForeGround 118
Height 118
HiddenAlarms 118
Hide.All 142
HideErrors 119
Hide.Group 143
Hide.Priority 143
Hide.Selected 144
Hide.SelectedGroup 144
Hide.SelectedPriority 144
Hide.SelectedTag 144
Hide.Tag 145
Hide.Visible 145
hiding
errors 59
status messages 59
warnings 59
hiding alarms 21, 79
hiding when changing alarm query filter,
retain 60
historical alarms 15
historical alarms, showing 30
historical events 15
historical modes, using status bar
information of 68
I
importing query filter favorites 51, 76
InTouch alarm DB view control
configuration 168
InTouch alarm viewer control
configuration 159
InTouch, transferring alarm
configuration from 159
L
language, changing the No Records
message 61
languages, switching run-time 84
M
mapping properties 178
MaxDatabaseRecords 119
methods, alarm control 134
methods, mapping properties and 178
modes
switching between client 15, 83
using status bar information of
current 66
using status bar information of
historical 68
modes, client 14
modifying an existing query filter 50, 75
MoveWindow 146
N
name tab 160, 168
new alarms, scrolling automatically to 58
newalarm event, configuring 154
NewAlarmEventMode 119
NoRecordsMessage.Enabled 120
NoRecordsMessage.Message 120
normal record colors, setting return to 34
O
or recent alarms and events, showing
current alarms 28
overriding the frozen grid 60
P
placing the alarm control into an
ArchestrA symbol 26
priority ranges for alarm records,
setting 36
properties
alarm control 87
setting 27
properties and methods, mapping 178
properties tab 167, 177
providing signature to acknowledge
alarms 70
Q
queries, alarm 18
queries, using wildcards in 45
query favorites configuration,
transferring 178
Index193
query filter
adding 46, 74
deleting 75
modifying an existing 50, 75
retain hiding when changing alarm 60
translating from alarm queries 21
using an existing 46, 74
query filter favorite, deleting 50
query filter favorites
exporting 50, 76
importing 51, 76
query filter tab 176
query tab 165
querying for alarms on start up 58
QueryStartup 121
R
ranges for alarm records, setting
priority 36
recent alarms and events 14
recent alarms and events, showing 28
record colors
setting event 33
setting return to normal 34
refreshing the alarm control grid 66
renaming column headers 41
reordering column headers 40
Requery 147
Reset 147
resetting the grid 79
resizing column headers 40
resizing columns 41
restricting user access to rows and
columns 59
retain hiding when changing alarm query
filter 60
RetainHidden 121
return to normal record colors, setting 34
RowCount 121
rows and columns, restricting user access
to 59
RowSelection 122
run time, sorting alarms 73
run-time
filtering alarms 74
sorting alarms 73
using the alarm control 65
S
script configuration on the events tab,
transferring 167
scripting the alarm control 87
scripts configuration on the events tab,
transferring 177
scrolling automatically to new alarms 58
Select.All 147
SelectedCount 122
Select.Group 147
selection tab, transferring configuration
of the 173
Select.Item 148
Select.Priority 148
Select.Tag 149
SetSort 150
setting alarm control colors 33
setting colors for acknowledged
alarms 37
setting colors for unacknowledged
alarms 38
setting event record colors 33
setting heading, grid, and window
color 35
setting priority ranges for alarm
records 36
setting return to normal record colors 34
setting the alarm control properties 27
setting the time zone 52
setting the Wonderware time format 53
setting time zone and format 52
setting unacknowledged alarms to
flash 38
Show.Context 150
ShowContextMenu 122
Show.Favorite 150
ShowGrid 123
ShowGroupByHeader Property 123
ShowHeading 123
Show.Hidden 150
showing alarm statistics 81
showing current alarms or recent alarms
and events 28
showing historical alarms 30
194Index
T
technical support, contacting 12
time format tab 164
time format, setting the Wonderware 53
time zone and format, setting 52
time zone, setting 52
time, using the alarm control at run 65
time/sort tab, transferring configuration
of the 175
Time.Format 126
TimeSelector 127
TimeSelector.DurationMS 128
TimeSelector.EndDate 128
TimeSelector.GetStartAndEndTimes 151
TimeSelector.RefreshTimes 152
TimeSelector.SetStartAndEndTimes 152
TimeSelector.StartDate 129
TimeSelector.TimeDuration 129
Time.Type 127
ArchestrA Alarm Control Guide
TimeZone.TimeZone 131
Toggle.All 153
Toggle.Item 153
TotalRowCount 131
transferring alarm configuration from
InTouch 159
transferring configuration
color tab 163, 171
control name tab 160, 168
database tab 172
general tab 161, 169
properties tab 167, 177
query filter tab 176
query tab 165
selection tab 173
time format tab 164
time/sort tab 175
transferring query favorites
configuration 178
transferring script configuration on the
events tab 167, 177
transferring the InTouch alarm DB view
control configuration 168
transferring the InTouch alarm viewer
control configuration 159
translating alarm queries to query
filters 21
U
UnAckAlarms 132
unacknowledged alarms 38
unacknowledged alarms, setting colors
for 38
unfreezing the alarm control grid 82
UnhideAll 153
UnSelectAll 154
UpdateToCurrentTime 132
user access to rows and columns,
restricting 59
using an existing query filter 46, 74
using status bar information 66
using status bar information of current
modes 66
using status bar information of historical
modes 68
using the alarm control at run-time 65
using the alarm control in ArchestrA
symbols 16
using wildcards in queries 45
Index195
V
view control configuration, transferring
the InTouch alarm DB 168
viewer control configuration, transferring
the InTouch alarm 159
Visible 133
X
X property 134
warnings, hiding 59
welcome 11
when changing alarm query filter, retain
hiding 60
Width 133
Y property 134
Z
zone and format, setting time 52
zone, setting the time 52
196Index