BM Cimplicity Alarms and Messages Master
BM Cimplicity Alarms and Messages Master
BM Cimplicity Alarms and Messages Master
CIMPLICITY 2022
Alarms and Messages
No part of this publication may be reproduced in any form, or stored in a database or retrieval system, or transmitted or distributed in any
form by any means, electronic, mechanical photocopying, recording or otherwise, without the prior written permission of General Electric
Company. Information contained herein is subject to change without notice.
Trademark Notices
GE, the GE Monogram, and Predix are either registered trademarks or trademarks of General Electric Company.
Microsoft® is a registered trademark of Microsoft Corporation, in the United States and/or other countries.
We want to hear from you. If you have any comments, questions, or suggestions about our documentation, send them to the following email
address:
doc@ge.com
Chapter 1. Alarm Configuration........................................................................................................7
About Alarms................................................................................................................................. 7
4. Add/Remove/Modify Alarms.......................................................................................... 24
Chapter 3. Alarm Classes Configuration........................................................................................ 27
Step 3. Use the OPC Alarm and Event Client and Server at Runtime.............................. 183
OPC Alarm and Event Server Technical Notes........................................................................ 187
Chapter 1. Alarm Configuration
About Alarms
CIMPLICITY software generates alarms for:
• Alarm messages about system events, such as device failures, program terminations, system
startups, and system shutdowns. You create and modify system event alarms in the Alarm
Definition dialog box through the Alarms folder.
• Points that are in an alarm state. You create point alarms in the Point Properties dialog box. You
can modify them in the Point Properties dialog box or through the Alarms folder.
Feature Description
Alarm classes (page 7) Group alarms with similar characteristics.
Alarm printer (page 51) Print alarms and/or events as they occur.
Alarm OPC client (page 159) Send and receive data through an Alarm and Event OPC server.
Alarm blocking (page 19) Configure a hierarchy of alarms to receive the most important alarms first.
Alarms and Messages | 1 - Alarm Configuration | 8
Feature Description
Alarm translator (page 62) Offer language and text string options for configuration.
$HIST_COLLECTOR Indicates that the Historian Collector has stopped collecting data.
$LOGOUT Specified user has logged out from a specified CIMPLICITY project.
Note: Alarms that are logged to the event log are treated as OPC
A&E events by the OPC server. OPC events received by the OPC
client are logged to the event log by default.
In most cases you will create and configure alarms through the Point Propertiesdialog box or through
scripting. CIMPLICITY places the alarms in the Alarms folder, where you can conveniently modify
them.
It is recommended that you do not create event alarms. In almost all cases, CIMPLICITY creates and
configures these alarms for you.
These steps are available if there is some reason that you must create or configure an event alarm.
Alarms and Messages | 1 - Alarm Configuration | 10
CIMPLICITY provides several methods to open a new Alarm Definition dialog box.
Either Or
3. Enter the name of the new event alarm in the Alarm ID field.
4. Click OK.
The system verifies that the Alarm ID does not already exist, and that no invalid characters have been
used.
If the Alarm ID you entered is valid, the Alarm Definition dialog box for the new alarm opens.
CIMPLICITY provides several methods to open an existing Alarm Definition dialog box.
Either Or
The selected alarm's Alarm Definition dialog box opens when you use any method.
Field Description
Description Describes the alarm so a user can identify it more
easily. Can display in the Workbench and the Alarm
Viewer.
Alarm Class (page 27) Selection groups this alarm with alarms that have
similar characteristics.
Help file A text help file that users can display when they click
the Help button in the Alarm Viewer.
Alarms and Messages | 1 - Alarm Configuration | 14
Field Description
Severity A number from 1 through 1000. The higher the number
the more severe the alarm is considered. CIMPLICITY
treats more severe alarms with a higher priority.
Alarm message Message that displays in the Alarm Viewer when the
alarm displays.
• Generate
• Acknowledge
• Delete
• Reset
Note: Many fields on the Alarm tab in the Alarm Definition dialog box is the same as the
Advanced Alarm tab in the Point Properties dialog box.
Alarm Routing lets you select the roles that can view any alarms generated for the selected event
alarm.
Configuration for Alarm Routing , which is done on the Alarm Routing tab in the Alarm Definition
dialog box, is the same for event alarms and as alarm routing configuration for point alarms.
Alarms and Messages | 1 - Alarm Configuration | 15
Configuration for the features included on the Alarm Options tab in the Alarm Definition dialog
box is the same for both event alarms and point alarms.
Change approval provides the functionality to maintain an audit trail of user performed alarm
operations.
Note: CIMPLICITY v9.0 clients will not support acknowledging or resetting alarms from
a CIMPLICITY v6.1 or earlier server. (CIMPLICITY v6.1 and earlier versions are no longer
supported.)
Alarms and Messages | 1 - Alarm Configuration | 16
You can choose to store runtime alarm comments that a user enters while the alarm is being
displayed in the Alarm Viewer. Normally, these comments are deleted when the alarm is deleted.
CIMPLICITY saves the 20 most recent alarm comments in a file in the project's alarm_help
directory.
3. Select Alarms.
4. Click Settings.
Alarms and Messages | 1 - Alarm Configuration | 17
Checkbox Description
Store alarm Check Save up to 20 alarm comments beyond the life of alarms.
comments
Filter A&E Check Filter alarms and events that go to the Alarm & Event OPC server. The filter is
OPC alarms determined by the resources that are allotted to the Alarm & Event OPC server user.
by user Note: The user is specified in the Alarm & Event OPC server's Project Properties (page
163) dialog box.
Clear All alarms and events go to the Alarm & Event OPC server.
Unfilterable An alarm that has a severity (page 44) that is equal to or greater than the entered value
severity cannot be filtered out. Even if the value dips below the alarm severity threshold, the alarm will
continue to display in the Alarm Viewer until it is deleted. Once deleted, the cycle will begin again.
If the value again goes into an alarm state that is equal to or greater than the entered severity the
alarm will display until it is deleted.
5. Click OK.
• Overview
• Assign alarms
• Choose blocking modes
• Assign alarm priorities
• Alarm blocking guidelines
Overview
Monitoring and control systems do an excellent job of informing operators of problem conditions
through alarms. However, there are times when operators can be overwhelmed by numerous alarms
that are the result of one major problem. For example, when a process conveyor stops, it affects all
machines feeding into it. The operator needs to know that the major problem is the stopped conveyor
and not waste valuable time looking through all the other resulting alarms. Alarm Blocking lets you
configure a hierarchy of alarms for your process so users see the important alarms first.
Each Alarm Blocking group works independently. This means that the high priority alarms in one
group do not block the high priority alarms in another group.
Before you implement Alarm Blocking, you need to plan how you want to group and prioritize your
alarms for your project. You need to decide:
Alarms that you do not assign to Alarm Blocking groups are not affected by Alarm Blocking.
Alarms and Messages | 2 - Alarm Blocking Configuration | 20
Assign alarms
CIMPLICITY software generates two types of alarms; point alarms and system alarms. Each point
alarm is uniquely identified by its Alarm ID. Each system alarm is uniquely identified by its Alarm
ID and Resource ID.
For example:
Note: A possible exception is for $DEVICE_DOWN. You can use the Global parameter
DEVICE_DOWN_DEVICE_REF to put only the Device ID as the alarm reference.
For Alarm Blocking, you can assign a uniquely identified alarm to only one group. This means:
This means that you can have more than one instance of a system alarm in a blocking group or you
may have system alarms in more than one blocking group, provided that the Resource ID you assign
to each instance is unique across all Alarm Blocking groups.
• Peer Blocking mode: Only the first alarm in a set of alarms with equal priority displays.
• Non-Peer Blocking mode: All alarms in a set of alarms with equal priority display.
• If there is a current alarm with higher priority in the group, the newly generated alarm is
blocked.
• For Peer Blocking, if there is a current alarm with equal priority in the group, the newly
generated alarm is blocked. In other words, only one alarm in a set of alarms with equal priority
displays at any given time.
• For Non-Peer Blocking, all current alarms with equal priority display at any given time.
• For Peer Blocking, if alarms of equal priority exist, the oldest one displays and becomes the new
blocking alarm.
• For Non-Peer Blocking, all alarms with the next lower priority display and become the new
blocking alarms.
If lower priority alarm is the current blocking alarm and a higher priority alarm is generated, the
lower priority alarm remains on the list of alarms and the higher priority alarm becomes the new
blocking alarm.
If an alarm already exists in Normal state and it returns to Alarm state, the alarm is not blocked.
4 Add/remove/modify alarms.
(page
24)
CIMPLICITY provides several methods to open a new Alarm Blocking dialog box.
Alarms and Messages | 2 - Alarm Blocking Configuration | 22
Either Or
A new Alarm Blocking dialog box opens when you use any method.
CIMPLICITY provides several methods to open an existing Alarm Blocking dialog box.
Either Or
An Alarm Blocking dialog box associated with the selected alarm blocking group opens when you
use any method.
Field Description
Group ID Enter a new, unique Alarm group name. The group name can be up to 32 characters long.
Description Enter a description of the Alarm group. The description can be up to 40 characters long.
Peer block
• Check to enforce Peer Blocking mode (page 20) for this group.
• Clear if you want to use Non-Peer Blocking mode (page 20).
The Blocking Mode and alarm priorities determine the alarm blocking hierarchy at run-time.
Alarms Displays the current list of alarms in the Alarm block group; Alarm ID, Priority (page 20) and Resource
ID. Change an alarm on the list by directly editing its Alarm ID, Priority or Resource ID or by selecting the
Alarm ID and clicking Set attributes .
Note: You can resize the width of the Alarm ID, Priority and Resource ID fields to suit your
needs.
Button Description
Add Select an Alarm ID from the Browser dialog box.
Set Attribute (page 24) Open the Set Attributes dialog box for a selected alarm ID.
OK Close the Alarm Blocking dialog box and save the configuration.
Cancel Cancel the configuration done while the Alarm Blocking dialog box was
open.
4. Add/Remove/Modify Alarms
• Add an alarm.
• Remove an alarm.
• Modify an alarm.
Add an alarm
You can enter the name of an Alarm ID in the Alarm ID field in the Alarm Blocking dialog box in
any of the following ways:
• Click Add to open the Browser dialog box and browse for the Alarm ID you want.
• Click the Browser button to the right of the input field to open the Browser dialog box and
browse for the Alarm ID you want.
Alarms and Messages | 2 - Alarm Blocking Configuration | 25
• Click the Popup menu button to the right of the input field to create a new Alarm ID, modify
the current Alarm ID or browse for an Alarm ID.
Enter the priority of the Alarm ID in the Priority field. This can be a number from 0 to 32767. The
higher the number you enter, the higher the blocking priority for the alarm. For example, if you have
alarm XXX with priority set to 10 and alarm YYY with priority set to 100 in the same group, when
alarm YYY generates, it blocks alarm XXX.
If the Alarm ID does not have a Point ID, you must assign a Resource ID to the alarm. You can
click the Browser button to the right of the input field to open the Browser dialog box and browse
for the Resource ID you want. You can also use the Pop-up menu button to create a new Resource
ID, modify the current Resource ID or browse for a Resource ID. Remember that each Alarm ID/
Resource ID combination must be unique within a group and across all groups.
Remove an alarm
1. Select the alarm from the list in the group's Alarm Blocking dialog box.
2. Click Delete.
Modify an alarm
1. Select the alarm ID you want to edit in the selected group's Alarm Blocking dialog box.
2. Type in your changes.
If you are changing an Alarm ID or Resource ID, you can also use the Browser and Popup menu
buttons in the field to search for a new one.
To set a number of alarms to the same priority and/or Resource ID at the same
time:
1. Select the alarms whose priority and/or Resource ID you want to set. You can use the Shift and
Ctrl keys while making your selection.
2. Click Set Attributes.
4. Click OK.
All the selected alarms will be assigned the new priority. Non-point alarms will be assigned the new
Resource ID.
Chapter 3. Alarm Classes Configuration
• An order or priority to each Alarm Class. The order is a number from 0 to 99, where 0 is the
highest priority and 99 is the lowest priority.
• Colors and blinking that provide immediate visual recognition of different levels in the alarm
class state.
For example, an alarm class may be defined as a high priority alarm. The alarm state may be in
a High state.
• Audio support that provides immediate recognition when an alarm in the class is generated.
Important: The default number of alarm classes is 550. This number can be changed by adding
a MAX_ALARM_CLASSES parameter to a globals.ini file.
CIMPLICITY provides several methods to open a new Alarm Class configuration dialog box.
A Click File > New > Object on the Workbench menu bar.
Either Or
An Alarm Class Configuration dialog box that includes information for the selected alarm class
opens when you use either method.
Alarms and Messages | 3 - Alarm Classes Configuration | 29
CIMPLICITY provides several methods to open an existing Alarm Class configuration dialog box.
Either Or
The Alarm Class Configuration dialog box for the selected alarm class opens when you use either
method. The Class ID field is read-only.
Step 2.2 Select colors and blink rates for the alarm states.
(page
32)
Alarms and Messages | 3 - Alarm Classes Configuration | 31
General specifications on the Alarm Class tab in the Alarm Class Configuration dialog box include
the following.
Field Description
Class ID Alarm class name.
The Class ID field is read/write when the alarm class is created. The class ID:
◦ Can be up to 5 characters in length.
◦ Must be unique.
◦ Cannot include the $ or | characters.
Description
• Can be up to 64 characters in length
• Displays in the Class Description field in the Workbench right pane.
Alarms and Messages | 3 - Alarm Classes Configuration | 32
Field Description
Order Priority number
• Alarms with a 0-order number have the highest priority. The higher the number, the
lower the priority.
• Alarms use these priorities internally and to prioritize occurrences, such as alarm
sound.
• If you assign the same order to more than one class, the classes are alphabetized
within the order.
Example
You assign order 0 to High, Medium and Low alarm classes. When you select to sort
classes in the CIMPLICITY AMV Control Properties dialog box, the Alarm Viewer will
sort by the selected order, descending or ascending.
◦ High
◦ Low
◦ Medium
Step 2.2. Select Colors and Blink Rates for Alarm States
Selected foreground (font) and background colors display in the Alarm Viewer for each of the
following states and levels.
Other States
Field Description
State Normal
Unavailable
Blink rate in tenths of a second Alarms in either or both Other states can blink when the
state is active.
20
Field Description
Blink background color Blackground blink color.
Alarm state
Field Description
Alarm level Levels map to the point alarm limits defined in the Point
Properties dialog box, which use the alarm string indices.
Use the same settings for all alarm levels When clicked, uses the Foreground and Background for
the selected Alarm level.
Acknowledged state
Specifications for alarm levels when the alarms are acknowledged.
You can configure an alarm class to use audio alarming on the Audio tab in the Alarm Class
Configuration dialog box.
Beep
• No requirements for:
◦ A beep
◦ (Supported Windows versions) the frequency, duration and number of beeps
• Sound card for:
Important: Sounds only play if the CIMPLICITY® Alarm Sound Manager is running.
Select the Audio tab in the Alarm Class Configuration dialog box.
Alarms and Messages | 3 - Alarm Classes Configuration | 35
Note: You can open the Alarm Class Configuration dialog box and configure the audio for a
point alarm through the Point Properties dialog box.
Note: Alarm levels (page 32) map to the point alarm limits defined in the Point
Properties dialog box, which use the alarm string indices.
Alarm levels for sound use the alarm conditions and sub-conditions as follows.
HiHi
Hi
Lo
LoLo
Option Description
No sound There is no sound
when the selected
level is reached.
Option Description
Beep A defined beep
sounds when the
selected level is
reached.
Frequency
Duration
No of
beeps
Delay
If you define an rgb.dat file and change the colors in indexes 0 through 15 of the, you need to
change colors displayed in the Alarm Class dialog box to match them.
• Import screens from a CIMPLICITY System-I/U, -D/V, -H/U or -RS/U system that do not use
the default color mappings.
1 255 0 0 Red
2 0 255 0 Lime
3 0 0 255 Blue
4 128 0 0 Maroon
5 0 128 0 Green
11 32 64 64 Dark
The first line in the file must contain only the |-* characters.
Each succeeding line contains an index number (0 through 15) followed by a vertical bar ( | )
and the color name.
2. Use the same rgb.dat and am_colors.cfg files for all projects.
Alarms and Messages | 3 - Alarm Classes Configuration | 39
Important: The file that is used to display colors is the file for the project in which Alarm
Viewer or CimView was started in, not the file for the project where the alarm classes or
CimView screens were configured.
am_colors.cfg file
The colors listed in this sample file match the default colors.
|-*
0|Black
1|Red
2|Lime
3|Blue
4|Maroon
5|Green
6|Purple
7|White
8|Teal
9|Gray
10|Olive
11|Dark
12|Rose
13|Fuchsia
14|Aqua
15|Yellow
Chapter 4. Alarm Strings Configuration
Alarm messages are configured in the Point Properties and Alarm Definition dialog boxes.
Greater than or equal to Warning High and Less than Alarm High. Warning High Warning High Msg
Less than or equal to Warning Low and Greater than Alarm Low. Warning Low Warning Low Msg
Less than Warning High and Greater than Warning Low. Normal Normal Msg
The CIMPLICITY default configuration includes a set of alarm strings for Index number 1. The
Index number 1 alarm string is the default when you add a device point. This string may be modified
but should never be deleted.
The Workbench displays a project's existing alarm strings (message groups) in the right pane.
Select Project > Alarms > Alarm Strings in the Workbench left-pane.
The Workbench right pane displays the following fields for each Alarm String Index:
Note: Use the Workbench Field Chooser to remove or re-display any of the fields, except the
Index. The Index is required.
The Alarm Definition list is initially sorted by Index. You can click on any of the other column titles
at the top of the list to sort the list by that attribute.
CIMPLICITY provides several methods to open a new Alarm String Definition dialog box.
Either Or
CIMPLICITY provides several methods to open an existing Alarm String Index dialog box.
Either Or
2 String values
(page
45)
3 Severity
(page
46)
4 Example 1
(page
46)
5 Example 2
(page
48)
The next available number displays in the Alarm string index field when the alarm string is
created. The field is read/write.
If the default number is changed, the new alarm string index number:
◦ Must be from 1 to 99 and
◦ Cannot conflict with an existing Alarm String Index.
The Class ID field is read-only for previously created alarm string sets.
The index number is selected for an alarm to associate an alarm string set with that alarm.
2. String Values
Alarms and Messages | 4 - Alarm Strings Configuration | 46
Alarm high
Warning high
Warning low
Alarm low
Normal
• Corresponds to Normal and Alarm State levels in the Alarm Class Configuration dialog box.
• Displays on the Alarm tab in the Point Properties dialog box when the string index is selected.
• Displays when specified as %STATE in a point's alarm message when the point is in the related
alarm state.
3. Severity
A number from 1 through 1000. The higher the number the more severe the alarm is considered.
CIMPLICITY treats more severe alarms with a higher priority.
Note: The Severity for the Alarm String Index must conform to the OPC UA specification
guidelines. If you are using Operations Hub with CIMPLICITY, be sure to read the "Alarm
Microservice" topic or search for "alarm severity" in the Operations Hub documentation. It's
important to configure this severity correctly so that you get the results that you want to see in
Operations Hub. For example, events of high urgency can be mapped into the OPC severity range of
667-1000, events of medium urgency can be mapped into the OPC severity range of 334 to 666, and
events of low urgency can be mapped into the OPC severity of 1 to 333.
Note: You can select and display the Severity in the Alarm Viewer.
This example shows how the alarm string value for alarm string index 2 displays in the Alarm
1 String values are entered in the Alarm String Index dialog box.
Normal NORMAL
Empty Empty
Alarms and Messages | 4 - Alarm Strings Configuration | 48
3 Message is selected as
a field in an Alarm Viewer
configuration.
This example shows configurations for the Alarm String 2 index severity displays in the Alarm
Viewer.
1 An alarm severity is entered for each string value in the Alarm String Index dialog box.
Empty 250
NORMAL 0
The fields inherently include the severity levels defined for the alarm string set.
Empty Empty
Class NORTH
200 Hi and Lo
Note: Foreground and background colors for each alarm correspond to the alarm class configuration.
Chapter 5. Alarm Printer Configuration
Important: Before you start, make sure that the printer is not configured in Windows.
The Alarm Printer dialog box enables you to define the device, and the types of alarms handled by it.
You can configure local and network printers.
Note: You can also configure redundant alarm printers if your project supports the Host
Redundancy option.
When you are finished defining the alarm printer properties, click OK to close the Alarm Printer
dialog and create the new alarm printer, or click Cancel to close the property sheet without creating
the new alarm printer.
Step 1 Open an Alarm Printer dialog box.
(page
52)
CIMPLICITY provides several methods to open a new Alarm Printer dialog box.
1. Select Project > Alarms > Alarm Printer in the Workbench left pane.
A Click File > New > Object on the Workbench menu bar.
3. Enter the name of the new alarm printer, or the name of the file you want to write alarms to in
the Name field.
You may enter a maximum of 11 characters.
4. Click OK.
The system verifies that the alarm printer name does not already exist, and that no invalid characters
have been used.
If the alarm printer name you entered is valid, the Alarm Printer dialog box for the new alarm printer
opens.
Option 1.2. Open the Dialog Box for an Existing Alarm Printer
CIMPLICITY provides several methods to open an existing Alarm Printer dialog box.
Note: If you clear this check box, the Alarm logging are dimmed.
Alarm Logging These options are available only when you select the Log alarms check box. Use these fields to
Options specify the types of alarms, and alarms classes that will be printed on this alarm printer:
Important: You must either check All alarm classes or select an Alarm Class.
All alarm Check to log messages for all alarm classes. When you do, the Alarm Class field will be dimmed.
classes
Alarm This field is available when you uncheck the All alarm classes check box. If you want log alarms for a
Class particular Alarm Class, enter that class name in this field. You can also:
• Display the Select Alarm Class browser and use it to select the Alarm Class.
• Click the Popp Menu button to create a new Alarm Class, edit the current Alarm Class, or
browse for an Alarm Class.
2. Enter the device name for the alarm printer in the Output field. You can do any of the
following:
• Enter the name of a local port on the project's computer (e.g. LPT1 or COM1) where you
have attached the alarm printer.
Note: If you are connecting to serial port COM10 and above, the format is \\.
\COM<n>.
• Enter a file name to write alarms to a file. If you wish, you may also enter a period
followed by a three character file extension (e.g. alarms.fil).
If you do not enter a file extension, none is automatically provided. The file is placed in the
project directory (not in the project's log directory) .
Example
I:\testplans\systest
• Enter the path for a network printer (e.g. \\M_005ad4\d5prn1).
Note: If the printer is connected locally on your computer, use the local port name
instead of the network path.
Tip: You can associate more than one alarm printer with a network printer or file on a
network disk. If you use a network printer or file, clear the Print header field in the Layout tab
of the Alarm Printer dialog box.
Alarms and Messages | 5 - Alarm Printer Configuration | 56
The Layout tab of the Alarm Printer dialog box enables you to determine whether a header should be
printed at the top of a page.
Specifications include:
Field Description
Print Check to print a header at the top of each page. If you have more than one alarm printer process sending
Headers messages to the same printer or file, uncheck this check box. When you uncheck the check box, the Page
length field is disabled.
Page Enter the number of lines per page that can be printed. The number must be an integer between 1 and
Length 999.
Page Enter the number of characters that can be printed on a line. The number must be an integer between 80
Width and 157.
Important: If the printer is configured as 80 characters wide then AMLP will print on two lines
regardless of the actual width of the printer.
Redundant This field is enabled if your project has the Host Redundancy option.
Alarm
Printing • Check for both the Active and Standby computers to print alarms.
(page • Uncheck for only the Active computer to print alarms.
59)
Alarms and Messages | 5 - Alarm Printer Configuration | 57
Use the Date/Time Format tab on the Alarm Printer dialog box to choose how the alarm printer will
print the date and time.
Alarm Date/Time Select the format you want to use to print the date and time of each alarm.
A sample for the format you choose displays in the Sample field in this
box. You may select one of the formats from the list, or construct your own
format.
y Last two digits of year. For digits 00 through 09, only the last digit is displayed.
yy Last two digits of year. For digits 00 through 09, both digits are displayed.
If you enter dddd dd mmmm yyyy, the sample date will be Saturday 05March 1994.
You may use spaces, dashes, slashes or any other delimiter of your choice to separate the date fields.
P, A, p, or a AM/PM indicator.
You may use colons, spaces or any other delimiter of your choice to separate the time fields.
If you are configuring a serial printer, its printer baud rate, parity, and data length will have to be set
each time your system is rebooted. You can do this by creating a file called cimp_port.bat in the
top-level directory on the disk where your project is located. The file will be called by the Alarm
Printer program when it initiates printing on the printer. The file contains:
@echo off
mode <port> baud=<rate> parity=<set> data=<n> stop=<m>
Where
<port> Is the serial port to which the printer is connected.
Example
If you have a printer on COM1: port that communicates at 9600 baud, no parity, 8 data bits and 1
stop bit, the file would look like this:
@echo off
mode COM1: baud=9600 parity=n data=8 stop=1
If you have more than one serial printer, you will need one mode line per printer.
In a redundant configuration, both the active and standby computer have the same configuration.
When you perform a Configuration Update, the configuration data for the project on the active
computer is copied to the project on the standby computer.
The information you enter in the Redundant alarm printing and Output fields determine where
alarms will be printed.
Alarms and Messages | 5 - Alarm Printer Configuration | 60
1. For a redundant configuration where each computer has a local line printer (LPT1) configured.
• If you enter LPT1 in the Output field and check Redundant alarm printing, the active
project on COMP1 sends alarm messages to LPT1 on COMP1 and the standby project
on COMP2 sends alarm messages that it generates while in standby mode to LPT1 on
COMP2.
When the project on COMP2 becomes the active project, it continues to send alarm printer
messages to LPT1 on COMP2.
• If you enter LPT1 in the Output field and uncheck Redundant alarm printing, the active
project on COMP1 sends alarms to LPT1 on COMP1. The standby project on COMP2
sends no alarms until it becomes the active project.
When the project on COMP2 becomes the active project, it sends alarm messages to LPT1
on COMP2.
2. For a redundant configuration with a network line printer (\\ABC\NET1). The primary
computer is COMP1 and the secondary computer is COMP2.
• If you enter \\ABC\NET1 in the Output field and check Redundant alarm printing,
the active project on COMP1 sends alarm messages to \\ABC\NET1 and the standby
project on COMP2 sends alarm messages that it generates while in standby mode to \\ABC
\NET1.This may result in duplicate messages.
When the project on COMP2 becomes the main project, it sends alarm messages to \\ABC
\NET1.
Alarms and Messages | 5 - Alarm Printer Configuration | 61
Note: Check Redundant alarm printing on the Layout tab in the Alarm Printer dialog box
if you want both the active and standby computers to print alarms.
When you print directly to a network printer the Alarm Page functionality does not print alarm
messages as they happen, by default. Instead, it waits until there is a full page of alarms to send to the
printer.
2. Enter amlp_flush.exe.
Note: You can also initiate amlp_flush.exe from scripts within the CIMPLICITY environment.
This will trigger printing whenever the specified conditions (for example an alarm going off) are met.
1. The Alarm Line Printer program (AMLP) assumes that there is no restriction for the size of the
alarm message queue. If the output device is disabled, a virtual memory overflow can result.
You can use the AMLP_MAX_QUEUE global parameter to restrict the size of the alarm
message queue.
2. The Alarm Line Printer program (AMLP) assumes that the time to be printed when an alarm is
acknowledged or deleted is the time the alarm was generated.
You can use the AMLP_USE_GEN_TIME global parameter to select whether you want the
generation time or the action (acknowledge or delete) time to be printed.
Chapter 6. CIMPLICITY Language Mapper
Tip: CIMPLICITY Language Mapping also provides an efficient method for using the same
screen in different locations when it will require different text strings for the same messages, e.g. Call
the North Tank supervisor or Call the South Tank Supervisor instead of Call the Tank Supervisor.
Text strings for each screen version can be mapped as a different language.
The following steps demonstrate CIMPLICITY language mapping configuration and runtime use.
Step 1 (page 63) Review alarm messages that are
available for translation.
2 Menu bar
3 Toolbar
4 Status bar
6 Translated strings
Step 1. Review Alarm Messages and Strings that are Available for
Translation
The CIMPLICITY Language Mapper automatically makes all of a project's alarm messages available
for translation.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 64
Step 1.1 Open the CIMPLICITY Language Mapper Window to View Existing Alarms
(page
64)
1. Select Project > Alarms > Alarm Translator in the Workbench left pane.
The CIMPLICITY Language Mapper window opens displaying the project's default file,
AlarmTranslation.clm.
C Alarm strings
(page
67)
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 66
Note: The alarm manager uses %s to substitute strings into the alarm message. This is changed
in a key to %1, %2, … %n so that a fixed order of substitution parameters can be passed but the
actual order they appear in the message can be dictated by the location of the substitution.
This allows for different orders that are dependant on the needs for a specific language.
CAUTION: Do not change the name or location of the AlarmTranslation.clm file. If you do,
before it is restored, the CIMPLICITY Language Mapper will not be able to find the translations.
The next time you open the CIMPLICITY Language Mapper window, a new AlarmTranslation.clm
will be automatically created and your translation configuration will be lost.
Step 1.2. Make New Point Alarm Messages Available for Translation
Point alarm messages that were created after the last project configuration update will be
automatically entered into the AlarmTranslation.clm file when the next project configuration update
is performed.
1. Create a new point or select an existing point that does not have an alarm.
The message you entered in the Alarm message field in the Point Properties dialog box displays in
Alarm strings that were created after the last project configuration update will be automatically
entered into the AlarmTranslation.clm file when the next project configuration update is performed.
The string values you entered in the String values fields in the Alarm String Index dialog box
You add text to CimEdit translation files differently from how text is added to Alarm translation
files.
Alarm messages are automatically entered into an automatically created translation file.
First, CimEdit text needs to be selected; second a translation file has to be created or opened through
the Ambient Properties tab in the Properties - Screen dialog box for the text to be entered into the
file.
This step shows the logical sequence for selecting the text, then adding it to a translation file.
Step 2.1 Select text strings on CimEdit Screens.
(page
68)
Step 2.2 Automatically enter CimEdit text strings into a translation file.
(page
80)
Important: When you design your CimEdit screen make sure that you allow enough space to
accommodate all selected languages for each text string.
For example, a message that will display is TANK LEVEL IS TOO HIGH.
Chinese #######
Japanese ############
Option Expressions
2.1.4 (page
75)
The following options make the text on the button available for translation.
B Font
(page
70)
C Translate
(page
71)
D Multiline
(page
71)
A String
Text that will display on the CimView screen and can be translated into selected languages.
B Font
Opens the Font dialog box to select the font, style and size for this string in the CimEdit/
CimView screen.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 71
Important: Select a font that will accommodate the characters for the translated languages.
For example, Arial Unicode MS is a very complete Unicode font.
C Translate
D Multiline
Options are:
Clear Multiline
Check Multiline
Do the following.
1 Click the Text Box button to the right of the String field.
Note: If you want to emit this text selection (or selections) to a CimEdit translation file
before you make other text selections, go to Step 2.2. Otherwise, continue with the Step 2.1
options.
The text string is available to be emitted to the translation file (page 82).
The following options make the text on the button available for translation.
B Font
(page
73)
C Auto size
(page
73)
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 73
D Translate
(page
73)
E Multiline
(page
73)
A String
Opens the Font dialog box and select the font, style and size for this string in the CimEdit/
CimView screen.
Note: Select a font that will accommodate the characters for the translated languages. For
example, Arial Unicode MS is a very complete Unicode font.
C Auto size
When checked, the button automatically resizes to fit the text length.
This can create a jagged affect if different languages are used on the CimView screen.
Give the button an exact length that will be able to fit the characters for any of the selected
languages.
D Translate
E Multiline
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 74
Options are:
Clear Multiline
Check Multiline
Do the following.
1 Click the Text Box button to the right of the String field.
The text entered as the button label is available to be emitted to the selected translation file (page
82).
1. Create or select a text object; the object will display animated text during runtime.
Option Description
Text Translate
String
Note: If you want to omit this text selection (or selections) to a CimEdit translation file
before you make other text selections, go to Step 2.2. Otherwise, continue with the Step 2.1
options.
The text that is checked for translation is available to be emitted to the selected translation file. The
text for each expression will display on a single line in the translation file (page 82).
Example
IF (TANKLEVEL GT 55000) Then "CLOSE Valve In. CALL MANAGER." Else "If
alarm state, call manager."
The text strings are available to be emitted to the selected translation file. Each string, surrounded by
double-quotes, will be placed on a single line in the translation file (page 82).
When you emit text (page 80) for a CimEdit screen all values that have been configured for point
enumerationare automatically entered in the selected translation file.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 77
Example
An enumeration set named FLOW is configured to be available for selected pipe points.
• PIPE: OPEN
• PIPE: OPEN 3/4
• PIPE: MAINTAIN
• PIPE: CLOSE TO 1/4
• PIPE: CLOSE
When text is emitted to a selected translation file (page 82) the FLOW text values are emitted to
that file.
The following options make an execution condition text message available for translation.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 78
B Translate message Checked makes the text string available for translation.
The text entered as the execution condition message is available to be emitted to the selected
translation file (page 82).
3. Select Procedures.
4. Open the Procedure Information dialog box for an existing or new procedure.
6. Check the accompanying Translate… checkbox for text message entries that should be
available for translation, as follows.
Field Check
A Success Translate success message
Field Check
C Message Translate message
D Execution condition
The text strings that are entered in checked message fields is available to be emitted to the translation
file. Each message will display on a single line in the translation file (page 82).
CimEdit automatically sends standard Popup menu items to the translation file when text is emitted.
Items include:
• Full Screen
• Help
• Menu
• Properties
• Point View
• Point Control Panel
• Quick Trends
3. Select Menu.
The following options make the text on the Popup menu available for translation:
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 80
The text string that is entered in the Menu text field is available to be emitted to the translation file
(page 82).
Step 2.2. Automatically Enter CimEdit Text Strings into a Map File
Step 2.2. Automatically Enter CimEdit Text Strings into a Translation File
Follow this procedure if you are starting a Language Mapping file for your CimEdit screens or want
to create a file exclusively for the screen you are working on.
1. Right-click the CimEdit screen to open the Properties- Screen dialog box.
3. Do the following:
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 81
Enter the path and name of a new file that you want to have created.
Tip: The Browser button to the right of the Map File field will help you specify the name
and exact location.
a. Click the Browser button to the right of the Map File field.
B Emit Text
Result:
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 82
selected location.
b. CIMPLICITY Language Mapper exports the selected CimEdit text into the selected
translation file.
1 Plain text
(page
69)
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 83
2 Text buttons
(page
72)
3 Animated text
(page
74)
4 Expressions
(page
75)
Tip: If you have several screens with unique static text performance may be improved
if you use several translation files among your screens instead of just one.
Use this procedure if you want to continue working in an existing translation file in order to share it
with two or more of your CimEdit screens.
This enables sharing of common strings and makes translation for all screens the easiest to maintain.
1. Right-click the CimEdit screen to open the Properties- Screen dialog box.
A Enter the path and name of an existing file in the Map File field.
a. Click the Browser button to the right of the Map File field.
The select path and name display in the Map File field.
d. Click Emit Text.
• Emit text without entering a path
a. Click Emit Text without entering a path and name in the Map File field.
The select path and name display in the Map File field.
c. Click Emit Text.
The text strings on the CimEdit screen that are checked for translation are created as keys in the
selected translation file.
If the key is already in the file, it is not overwritten. This is particularly important because the
existing key may already have associated translated strings.
A New keys from text strings in current CimEdit screen that are not already in the translation file.
B Keys from text strings from a previous CimEdit screen, already translated.
Note:
• You can select the default AlarmTranslation.clm. However, if you anticipate that there will be
several strings, or unique strings it may be more efficient to use a different translation file for
your CimEdit/CimView screens. If you create an AMV Control on a CImEdit/CimView screen,
you can copy strings, such as headings, buttons, from other CimEdit screens. You can also copy
keys and translations from one translation file to another.
• If the source screen for a linked object has a translation file configured it will use that file at
runtime, instead of the file defined in the destination screen. If both screens use the same file,
this is not an issue.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 86
Important: Alarm messages are loaded only when the Alarm Manager Resident Process
(AMRP) starts. Therefore any configuration changes, e.g. a new translation, made after the AMRP
start up will not show up in the Alarm Viewer. You will have to stop the AMRP and restart it for
changes to take affect.
• Open the CIMPLICITY Language Mapper Window through the Workbench (page 64).
• Click Edit File on the Ambient Properties tab in CimEdit's Properties - Screen dialog box.
When you open the CIMPLICITY Language Mapper window, the default translation file,
alarmtranslation.clm, is loaded.
• Click the New button on the CIMPLICITY Language Mapper window toolbar.
• Click File>New on the CIMPLICITY Language Mapper window menu
bar.
Important: If you are configuring a host redundant system, make sure the file is located in the
same place on both computers or use a static path for the filename.
If you do not do this and the directory structures are not the same on both computers, the translation
file will not be found by CimView.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 89
3. Click Open.
3. Enter a file name in the folder where you want the file to be located.
file.
1. Click Edit>Select Font on the CIMPLICITY Language Mapper window menu bar.
2. Select a font that will accommodate all of the languages you plan to use.
Important: If you select a font that cannot be used in a language you select, the words will
not display correctly.
Any UNICODE font, e.g. Arial UNICODE MS, can be used for all languages.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 91
A English keys.
A English keys.
2. Click Add.
The Add Language dialog box opens.
B Local ID Select the language/dialect that the label identifies in the drop-down list.
4. Click OK.
Your selection displays in the Language Editor list.
5. Repeat the procedure until all of the required languages are listed.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 93
6. Click Done.
The Language Editor window closes. The selected locales head columns in the CIMPLICITY
Language Mapper window and are available for translation.
bar.
The Translation Editor window opens for the selected key.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 94
2. Double-click a language.
A Translated Text Editor dialog box opens for the selected language.
3. Enter the string that you want to display when the text should display in the selected language.
Note:
• The text may display on a CimEdit/CimView screen or in the Alarm Viewer.
• The Text Editor accepts multi-line entries.
4. Click OK.
5. Repeat the procedure for all the languages you want to include in the translation.
The translated strings display in the Translation Editor window.
7. Continue translating all of the strings that should by displayed in multiple languages.
The strings display in the language columns in the CIMPLICITY Language Mapper window.
At runtime, when the translation file is used, the string entered for the selected runtime language
displays.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 95
1. Click Translations > Add New Key... on the CIMPLICITY Language Mapper window menu
bar.
Note:
• This key can be used for alarms and on CimEdit/CimView screens.
• The key can be multi-line.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 96
3. Click OK.
The key is added to the file that is open in the CIMPLICITY Language Mapper window.
Important: You can paste copied keys to a mapper file opened in a CIMPLICTY Language
Mapper window. However, pasting keys into a different program, e.g. Notepad, is not supported.
Option 4.2.1. Copy and Paste a Key from another Translation File
Note: Hold down Shift for adjacent keys and Ctrl for scattered
keys.
• Click the Copy button on the CIMPLICITY Language Mapper window toolbar.
• Click Edit>Copy on the CIMPLICITY Language Mapper window menu bar.
• Press Ctrl+C on the keyboard.
The key with any associated translations is pasted into the target file.
Option 4.2.2. Copy and Paste a Key in the Same Translation File
The key with associated translations is pasted into the list with an _n tag to differentiate it from the
copied key. You can copy and paste as many times as you want. The _n value corresponds to the
key's position in the copy/paste sequence.
2. Select one or more keys to delete (use the Ctrl or Shift keys to select more than one line).
a. Either:
• Click the Cut button on the CIMPLICITY Language Mapper window toolbar.
• Click Edit>Cut on the CIMPLICITY Language Mapper window menu bar.
A message displays asking you to confirm if you want to delete the file.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 99
b. Click Yes.
a. Either:
• Click the Delete button on the CIMPLICITY Language Mapper window toolbar.
• Click Edit>Delete on the CIMPLICITY Language Mapper window menu bar.
A message displays asking you to confirm if you want to delete the file.
b. Click Yes.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 100
1. Click File>Print Preview on the CIMPLICITY Language Mapper window menu bar.
A preview of the printed document opens in a Print Preview window.
Note: The preview will display either one or two pages, depending on the display the last
time the Print Preview window was closed.
One Page/Two One Page displays during a two-page display; two page displays during a one-page
Page display.
Zoom In Magnifies the preview to make the text legible; has a two-click magnification.
Zoom Out Returns the preview to display the entire page in the window.
D Print preview zoomed in; The key displays with the translated strings listed underneath.
Note: If you need to change the printer setup, e.g. your setup is set to landscape orientation
and you want portrait, close the Print Preview window and click File>Print Setup on the
CIMPLICITY Language Mapper window menu bar.
The Print Setup dialog box will open for setup changes.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 102
The CIMPLICITY Language Mapper provides you with an Object Model. You can use the objects,
properties and methods to create scripts that determine translation options.
A simple way to enable CimView users to change languages or English text strings during runtime is
to create a button for each language you want to substitute.
4. Label the button (page 72) to notify a user what language or English string the CimView
text will change to.
Note: Check Translate if you want the button label to be emitted to the translation file.
c. Click the Popup button to the right of the Action field to open an Edit Script window.
d. Create a new script as the action for the mouse up event as follows.
Sub OnMouseUp(x As Long, y As Long, flags As Long)
CimGetScreen.Application.Language = "String Description"
End Sub
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 104
Where
If the entry is not exactly the same, the default language will display instead of the selected
language.
7. Continue to create buttons until you have created as many as the screen should have.
Tip: If you are configuring a screen with buttons to change languages, add a button that
enables the operator to re-select the default language after another language is selected.
Example
If English is the default language, add an English button. You do not need to create a column in
the translation file. If there is no entry, the default language displays.
8. Optional: Emit the text labels (page 80) on the text buttons and translate them in the
translation file selected for the screen.
Results
• Entries in the CIMPLICITY Language Mapper display for a language display when its button is
clicked.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 106
• Alternative text in the CIMPLICITY Language Mapper for the default or any language,
displays when its button is clicked.
• Popup menu items display in the selected language when the Popup is opened, if they have been
translated in the CIMPLICITY Language Mapper.
The CIMPLICITY Language Mapper provides you with an Object Model. You can use the objects,
properties and methods to create scripts that determine translation options.
For example, a simple way to enable Alarm Viewer Control users to change languages or English
text strings during runtime is to create a button for each language you want to substitute.
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 107
2. Do one of the following to place buttons on the screen that will enable users to select another
language or text string:
3. Do one of the following to make sure the button labels and other text strings that should be
translated are translated:
If you are sharing a translation file that already has the translations
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 108
If you are using a translation file that does not have the keys and translations
a. Emit (page 80) the text to the file.
b. Enter the translations (page 93).
2. Click language buttons to view the text changes, based on text that is translated in CimEdit's
selected translation file.
The text that is translated in the CIMPLICITY Language Mapper replaces the text that currently
displays on the screen.
Examples
Japanese translation
Alarms and Messages | 6 - CIMPLICITY Language Mapper | 109
French translation
Chapter 7. Historical Alarm Viewer Control
• Review logged alarm data through CimView in an easy-to-read table format and
• Print one or more pages of the display at any time during a session.
The user will view logged data that passes specifications including filters, time frames and several
condition types.
You, an applications engineer, can simply place the control on a CimEdit screen and follow the next
steps to customize it.
Important: Viewers displaying a Historical Alarm Viewer that is pulling logged point and/or
alarm data from the SQL Server must have the same SQL driver version installed that is being used
on the CIMPLICITY Server. If the SQL driver is a different version the data will not display.
Step 2 (page Open the CIMPLICITY Historical Alarm Viewer Properties dialog box.
114)
Step 4 (page Configure connection options for the CIMPLICITY Historical Alarm Viewer.
117)
DCOM configuration and Windows security are complex technical topics and beyond the scope of
this document. For an introduction to DCOM security configuration, see Configuring the GagePort
Mitutoyo OPC server DCOM (About DCOM Security) in the CIMPLICITY documentation. For
more advanced DCOM configuration issues, please refer to Microsoft documentation.
Important: Put CimEdit in 100% zoom mode before you begin configuring or editing the
Historical Alarm Viewer control.
Use the following buttons to insert an Historical Alarm Viewer control on a CimEdit screen:
OLE Button
Click Historical Alarm Viewer in the Drawing>Objects group on the CimEdit Ribbon bar.
A Historical Alarm Viewer control is placed on the CimEdit screen. The top left corner is located at
the top left corner of the screen.
OLE Button
3. Place the ActiveX Placement cursor where you want the top left corner of the control to be
located.
screen.
You can perform a quick resize or a precise resize to resize the Historical Alarm Viewer Control.
Grab one of the object's handles and move it to enlarge or reduce the HAV Control.
3. Select Geometry.
Field Enter
Top Number of points starting from the bottom of the screen where the HAV Control top is located.
Left Number of points starting from the left of the screen where the left side of the HAV Control is located.
The Historical Alarm Viewer Control enlarges/ reduces and moves to the size you specify.
Note: Hold the right-button down and drag the object to where you want it positioned on the
CimEdit/CimView screen.
The CIMPLICITY Historical Alarm Viewer Properties dialog box opens when you use any
method.
Enter and select the following on the General tab in the CIMPLICITY Historical Alarm Viewer
Properties dialog box.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 115
3 Show toolbar.
(page
115)
5 Font guideline.
(page
116)
1 Caption
The caption is a title that will identify the control during runtime.
Note: If the caption includes an ampersand, Windows will not display the ampersand. Use a
double ampersand to get a single ampersand to display. && will display as & in the runtime title.
Check Use Ambient Properties to use the CimEdit ambient properties for the Historical Alarm
Viewer.
3 Show Toolbar
Note: Filters applied during runtime are in addition to any filters configured on the SQL tab
in the CIMPLICITY Historical Alarm Viewer Properties dialog box. The UF button removes the
runtime filters only.
Check Show Date/Time Pickers to display a Start Date-Time and End Date-Time.
A user can select the starting and ending time of the logged data that the CIMPLICITY Historical
Alarm Viewer will display.
If the user clicks the down arrow to the right of each field a calendar will open to aid in making the
selection.
Note: You can specify the amount of time the Historical Alarm Viewer will display at one time.
This specification is on the SQL tab in the CIMPLICITY Historical Alarm Viewer Properties dialog
box.
The runtime Historical Alarm Viewer control will display the options that you selected and
configured.
5 Font Guideline
If an alarm message that needs to use non-Western characters (e.g. Cyrillic, Chinese) displays ????
instead of the message, the following procedure may correct the issue.
Note: If this procedure does not resolve the issue, other factors might be affecting font display
on your system. Consult Microsoft documentation also.
This procedure applies to values/text from SQL Server. Cyrillic and other non-western characters are
not available for data from Historian.
The Connection tab in the Historical Alarm Viewer Properties dialog box provides several
connection selections. The selections you make on this tab determine what fields you can select to
display during runtime.
Enter and select the following on the Connection tab in the CIMPLICITY Historical Alarm Viewer
Properties dialog box.
2 Connection String.
(page
118)
3 Table to View.
(page
118)
4 Refresh Rate
(page
120)
Options include:
<none> A Connection String (page 118) field displays in the dialog box for you to specify the connection.
<local> Selects the local project in which the HAV is configured. The HAV displays all of the data from that project's
Historian server, not just the data logged from the selected project.
Project Enables you to select any project running in the network, including any projects running on the local
name computer. The HAV displays all of the data from the selected project's Historian server, not just the data
logged from the selected project.”
2 Connection String
A Connection String field displays when <none> is selected in the CIMPLICITY Project to
connect to field.
Click the button to the right of the Connection String field to open a Data Link Properties dialog
box and configure the connection.
Important: When you select this option the password will display in the field; any user who has
access to the Historical Alarm Viewer control configuration will know what the password is.
Choosing other options sets the data link properties, but hides the information.
3 Table to View
Options depend on
<default
historian> Note: Table to View options are available for a default Historian (page 119)
connection even if Historian is not enabled. However, The Historical Alarm Viewer will not
display data until the Historian is enabled.
<local> ALARM_LOG
DATA_LOG
EM_LOG
EVENT_LOG
<Project ALARM_LOG
name>
DATA_LOG
EM_LOG
EVENT_LOG
<default IhAlarms
historian>
ihArchives
ihCalculationDependencies
ihCollectors
ihComments
ihMessages
ihQuerySettings
ihRawData
ihTags
ihTrend
Historian Data
Note: ALARM_LOG is also listed. If you select it a message will report that is cannot
be found. You can select it; however, the Historical Alarm Viewer will not display data until
the Database Logger is enable.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 120
Note: ALARM_LOG is also listed. If you select it a message will report that is cannot
be found. You can select it; however, the Historical Alarm Viewer will not display data until
the Database Logger is enable.
Database All of the above options are available when both the Database Logger and Historian are enabled in the
Logger and Project Properties dialog box.
Historian
4 Refresh Rate
Example
Once you have selected the connection the Historical Alarm Viewer will make, you can more
specifically select what data will be displayed.
2. Enter specifications that determine what data will be displayed and highlighted.
Step 5.2 Select the fields that will display in the HAV.
(page
122)
Alarms and Messages | 7 - Historical Alarm Viewer Control | 121
The Status box at the bottom of the tab displays your selections. During runtime these selections will
be implemented.
General specifications on the Historical Alarm Viewer Properties dialog box SQL tab apply to all
connection selections.
A Record Limit
If the log contains more records than the maximum number of records, the HAV deals with the first
records up to the limit.
The filter and the sort specified through the SQL tab influence the records that are initially used.
Default 5000
The logged data that displays starts when the Historical Alarm Viewer Control is opened.
• Check Enable Most Recent
Enter the time span for the Historical Alarm Viewer display as follows.
Time Amount Number of selected units, e.g. 5 (seconds).
• Click the right-mouse button over the text; select Select all on the Popup menu.
• Click the right-mouse button over selected text; select Copy on the Popup menu.
You can paste the selection the same way you paste a text selection in the Windows environment.
Step 5.2. Select the Fields that will Display in the HAV
Tip: Check Show Toolbar (page 115) on the General tab so a runtime user can influence the
record selection by adding a filter and changing the record sort order.
Click Select Fields on the SQL tab in the Historical Alarm Viewer Properties dialog box.
You can quickly select to display all of the columns in the Historical Alarm Viewer, as follows.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 123
Feature Description
1 Select all fields in the (Default) Check to select all of the fields at one time.
table.
2 Available Fields The list of available fields is disabled; their static position in the Historical Alarm
Viewer cannot be changed.
Note: The fields that are available (page 143) are based on selections on the Connection
tab's CIMPLICITY Project to connect to field and Table to View drop down list
You can select the columns that will display in the Historical Alarm Viewer, as follows.
Feature Description
1 Select all fields Clear to select individual fields.
in the table.
Tip: If you want to change the static position of the fields in the Historical Alarm
Viewer, clear the checkbox and select the fields individually.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 124
Feature Description
2 Available Fields Check the fields that should display in the Historical Alarm Viewer.
4 SQL Clause (Read-only) The SELECT statement displays the selected fields in the order they will
display in the Historical Alarm Viewer.
Click More Filters on the SQL tab in the Historical Alarm Viewer Properties dialog box.
The fields that display in the Fields dialog box are based on your Connection tab CIMPLICITY
Project to connect to and Table to View selections.
The Edit Filters dialog box provides the tools to define all filters, as follows.
Add conditions.
A Add conditions.
Note: If you are going to construct statements such as AND, OR, select the fields for those
statements in the order they will be used.
A Select Values dialog box opens with fields that relate to your selection.
3. Enter the value(s) against which data will be evaluated and filtered.
Time Criteria
A Select Values dialog box provides the following options for fields that require date and time
specifications.
Data that meets the date and time specifications passes the filter.
Check Displays
One of the following: Displays a single date and time field for the date that will be referenced.
• Less Than
• Greater Than
Check Displays
• Between Two date and time fields for the date/time range that will be referenced.
Note: Click the down arrow to the right of a date field to display a calendar.
Alarm State criteria are available for the Database Logger ALARM_LOG table.
Data is evaluated alphanumerically. Data that meet the specifications passes the filter.
Check Displays
One of the following: Displays a criterion field for the value that will be referenced.
• Equals
• Less Than
• Greater Than
• Between Two criteria fields for the value range that will be referenced.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 128
Check Displays
• Null No criteria fields are required.
By default, each field is added to the Select records where box as an AND criteria. The alarm will
have to fulfill that criteria and others on the list.
You can create statements to change how the list will be filtered.
Remove
And
Or
NOT
Parentheses
The SQL Clause that you create displays in the read-only SQL Clause box.
When you close the Edit Filters dialog box, the clause also displays in the read-only box on the SQL
tab.
Click Sort on the SQL tab in the Historical Alarm Viewer Properties dialog box.
The fields that display in the Sort by dialog box are based on your Connection tab CIMPLICITY
Project to connect to and Table to View selections.
Sort
Feature Description
Criterion
A Sort by Check the fields that will be included in the criteria for sorting.
C Up/Down Moves a selected field up or down in the list. The sort begins with the first selected field in
the list; the next sort is the second selected field; sorts continue until the last selected field
is sorted.
D SQL (Read-only) The clause that defines the sorting priority displays.
Clause
Alarms and Messages | 7 - Historical Alarm Viewer Control | 130
The default Historical Alarm Viewer column justification is right, the standard justification for
numbers. You can change the default or re-select the default.
General Justification
Left Justification
Alarms and Messages | 7 - Historical Alarm Viewer Control | 131
Right Justification
If you want rows that meet certain conditions to display differently, you can select the Row Styles
tab.
2. Continue to add as many styles as you think you need to highlight different runtime conditions.
As soon as a row style is added, its colors (page 133) can be selected and conditions (page
135) defined for runtime display.
1. Select the Row Style <n> line for the row style you want to remove.
d. Click OK.
The color that displays in the Select Foreground Color is the font color for that row style.
Select Background Color and repeat the process above to specify the background color for the
selected Row Style.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 135
You can highlight selected conditions in the Historical Alarm Viewer by assigning them colors, as
follows.
3. Select a condition.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 136
4. Click OK.
The condition displays in the Row Style tree.
5. Do the following:
A Select the condition. An Enter Value field displays on the Row Styles tab.
6. Repeat this procedure for Row Style 2 if you want to display a second customized row style.
During runtime rows that meet the specified conditions displays the row style for that condition.
• Available conditions depend on your CIMPLICITY Project to connect to and Table to View
selections on the Historical Alarm Viewer Properties' Connection tab.
• You can add more than one condition to a row style. The list of conditions will be included in an
AND clause. Runtime values will have to meet all criteria to display the row style.
• When you select a condition, a Remove Condition button displays; click Remove Condition to
remove the selected condition from the list.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 137
• If a value meets all the conditions for more than one row style, the last row style with conditions
that are met is applied to the row.
• The alarm HEAT101 meets the condition for both row styles.
• The row for HEAT101 displays the Row Style 2
style.
The Runtime tab contains viewer options that you can enable for runtime.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 138
E Enable Printing
(page
142)
Enable Export
A Enable Export
Runtime users can save the Historical Alarm Viewer screen as a .txt or .csv file.
Note: The file is saved by default as a .txt file. If you want to save it as a .csv file, enter the
full name with the extension in the File name field.
The report is saved in the format you specify and can be opened in a .txt or .csv application.
A Select fields to view dialog box opens. Fields can be added, removed, moved to the left or right on
the screen.
The SQL clause can be modified to change the criteria for which alarms display in the Historical
Alarm Viewer.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 141
Note: Review a required SQL query if the Historian ihRawData table is selected.
Enable Printing
E Enable Printing
3. Select print criteria that reflect your Historical Alarm Viewer size and printer specifications.
4. Click OK.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 143
5. Click the Print button on the Preview window toolbar when you are ready to print one or more
pages.
A Print dialog box opens.
The Historical Alarm Viewer provides several options for displaying data during runtime.
Fields that are available are based on your CIMPLICITY Project to connect to and Table to View
selections on the Historical Alarm Viewer Properties' Connection tab.
1 Default Historian tables and field options
(page
143)
Table views that are available when you select Default Historian in the CIMPLICITY Project to
connect to on the Historical Alarm Viewer Properties dialog box Connection tab, are as follows.
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihAlarms are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 145
EndTime
AckTime
Timestamp
Other AlarmID
ItemID
Source
DataSource
Tagname
AlarmType
EventCategory
Condition
SubCondition
Message
Acked
Severity
Actor
Quality
RowCount
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihArchives are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
EndTime
LastBackup
LastModified
Alarms and Messages | 7 - Historical Alarm Viewer Control | 146
ArchiveStatus
FileName
IsCurrent
IsReadOnly
FileSizeCurrentDisk
FileSizeCurrent
FileSizeTarget
LastBackupUser
LastModifiedUser
TimeZone
DaylightSavingTime
RowCount
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihCalculationDependencies are selected on the Connection tab in the Historical
Alarm Viewer Properties dialog box.
DependentTagname
RowCount
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihCollectors are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
CollectorDescription
Comment
ComputerName
Status
CollectorType
MinimumDiskFreeBufferSize
MaximumMemoryBufferSize
ShouldAdjustTime
ShouldQueueWrites
CanBrowseSource
CanSourceTimestamp
StatusOutputAddress
RateOutputAddress
HeartbeatOutputAddress
ColllectorGeneral1
CollectorGeneral2
CollectorGeneral3
CollectorGeneral4
CollectorGeneral5
LastModifiedUser
SourceTimeInLocalTime
CollectionDelay
DefaultTagPrefix
DefaultCollectionInterval
DefaultCollectionType
DefaultTimeStampType
DefaultLoadBalancing
DefaultCollectorCompression
DefaultCollectorCompressionDeadband
DefaultCollectorCompressionTimeout
DefaultCollectorAbsoluteDeadbanding
DefaultCollectorAbsoluteDeadband
DisableOnTheFlyTagChanges
DefaultSpikeLogic
DefaultSpikeMultiplier
DefaultSpikeInterval
RedundancyEnabled
PrincipalCollector
IsActiveRedundantCollector
FailoverOnCollectorStatus
Alarms and Messages | 7 - Historical Alarm Viewer Control | 148
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihComments are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
StoredOnTimeStamp
CommentTimeStamp
Other Tagname
SuppliedUsername
Username
Comment
DataTypeHint
SamplingMode
Direction
NumberofSamples
IntervalMilliseconds
CalculationMode
FilterTab
FilterMode
FilterComparisonMode
FilterValue
TimeZone
DaylightSavingTime
RowCount
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihMessages are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
Username
MessageNumber
MessageString
TimeZone
DaylightSavingTime
RowCount
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihQuerySettings are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
EndTime
Other SamplingMode
Direction
NumberOfSamples
IntervalMilliseconds
CalculationMode
FilterTag
FilterMode
FilterComparisonMode
FilterValue
TimeZone
DaylightSavingTime
RowCount
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihRawData are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
Alarms and Messages | 7 - Historical Alarm Viewer Control | 150
Other Tagname
Value
Quality
OPCQualityValid
OPCQuality
SamplingMode
Direction
NumberOfSamples
IntervalMilliseconds
CalculationMode
FilterTag
FilterMode
FilterComparisonMode
FilterValue
TimeZone
DaylightSavingTime
RowCount
Important: If you choose the ihRawData table, modify the Query (Data filters) to the
following.
Example
SELECT * FROM "ihRawData" WHERE "timestamp">='2008-05-17 20:01:09' and
("SamplingMode"='''interpolated''') ORDER BY "timestamp" DESC
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihTags are selected on the Connection tab in the Historical Alarm Viewer Properties
dialog box.
Description
EngUnits
Comment
DataType
FixedStringLength
CollectorName
SourceAddress
CollectionType
CollectionInterval
CollectionOffset
LoadBalancing
SpikeLogic
SpikeLogicOverride
TimeStampType
HiEngineeringUnits
LoEngineeringUnits
InputScaling
HiScale
LoScale
CollectorCompression CollectorDeadbandPercentRange
ArchiveCompression
ArchiveDeadbandPercentRange
CollectorGeneral1
CollectorGeneral2
CollectorGeneral3
CollectorGeneral4
CollectorGeneral5
ReadSecurityGroup
WriteSecurityGroup
AdministratorSecurityGroup
Calculation
LastModifiedUser
CollectorType
StoreMilliseconds
UTCBias
AverageCollectionTime
CollectionDisabled
CollectorCompressionTimeout
ArchiveCompressionTimeout
TimeZone
Alarms and Messages | 7 - Historical Alarm Viewer Control | 152
The following fields (for display and sorting) and filter criteria are available when <default
Historian> and ihTrend are selected on the Connection tab in the Historical Alarm Viewer Properties
dialog box.
Direction
NumberOfSamples
IntervalMilliseconds
CalculationMode
FilterTag
FilterMode
FilterComparisonMode
FilterValue
TimeZone
DaylightSavingTime
RowCount
TagID.Value
TagID.Quality
TagID.Tagname
TagID.Description
TagID.EngUnits
TagID.Comment
TagID.DataType
TagID.FixedStringLength
TagID.CollectorName
TagID.SourceAddress
TagID.CollectionType
TagID.CollectionInterval
TagID.CollectionOffset
TagID.LoadBalancing
TagID.SpikeLogic
TagID.SpikeLogicOverride
TagID.TimeStampType
TagID.HiEngineeringUnits
TagID.LoEngineeringUnits
TagID.InputScaling
TagID.HiScale
TagID.LoScale
TagID.CollectorCompression
TagID.CollectorDeadbandPercentRange
TagID.ArchiveCompression
TagID.ArchiveDeadbandPercentRange
TagID.CollectorGeneral1
TagID.CollectorGeneral2
TagID.CollectorGeneral3
Alarms and Messages | 7 - Historical Alarm Viewer Control | 154
Table views that are available when you select <local> or a project name in the CIMPLICITY
Project to connect to on the Historical Alarm Viewer Properties dialog box Connection tab, are as
follows.
The following fields (for display and sorting) and filter criteria are available when <local> or
<Project Name> and ALARM_LOG are selected on the Connection tab in the Historical Alarm
Viewer Properties dialog box.
timestamp_utc
generation_time
generation_time_utc
Alarms and Messages | 7 - Historical Alarm Viewer Control | 155
log_action
final_state
Other sequence_number
alarm_id
alarm_class
resource
logged_by
reference
prev_state
log_action
alarm_message
The following fields (for display and sorting) and filter criteria are available when <local> or
<Project Name> and DATA_LOG are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
Other point_id
_VAL
The following fields (for display and sorting) and filter criteria are available when <local> or
<Project Name> and EM_LOG are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
time
event_type
event_source
action_type
action_target
The following fields (for display and sorting) and filter criteria are available when <local> or
<Project Name> and EVENT_LOG are selected on the Connection tab in the Historical Alarm Viewer
Properties dialog box.
generation_time
Other sequence_number
alarm_id
alarm_class
resource
logged_by
reference
alarm_message
The following fields (for display and sorting) and filter criteria are available when <local> or
<Project Name> and Historian Alarms are selected on the Connection tab in the Historical
Alarm Viewer Properties dialog box.
EndTime
ActTime
Timestamp
Alarms and Messages | 7 - Historical Alarm Viewer Control | 157
ItemID
Source
DataSource
Tagname
AlarmType
EventCategory
Condition
SubCondition
Message
Acked
Severity
Actor
Quality
RowCount
The following fields (for display and sorting) and filter criteria are available when <local> or
<Project Name> and Historian Data are selected on the Connection tab in the Historical Alarm
Viewer Properties dialog box.
Value
Quality
OPCQualityValid
OPCQuality
SamplingMode
Direction
NumberOfSamples
IntervalMilliseconds
CalculationMode
FilterTag
FilterMode
FilterComparisonMode
FilterValue
TimeZone
DaylightSavingTime
RowCount
Chapter 8. OPC Alarm and Event Server and
Client
Note: The CIMPLICITY OPC Alarm and Event Server and Client are most commonly used to
send data to and receive data from non-CIMPLICITY OPC Alarm and Event Clients and Servers.
1 OPC Alarm and Event Client (clients) starts and starts the OPC Alarm and Event Server (OPC servers), if it is not
already running.
2 Server requests data from the Alarm Managers in all connected source projects.
Note: Source projects are selected in the server configuration and need to be running in order to be
connected.
5 Clients display the data in the Alarm Viewer and notify the server if alarms are acknowledged..
3-6 continues with data being passed back and forth through the OPC Alarm and Event Server.
Step 3 Use the OPC Alarm and Event Client and Server at runtime.
(page
183)
Tip: CIMPLICITY also provides the powerful CIMPLICITY Enterprise functionality to send
and receive alarm and point data between CIMPLICITY projects.
Text messages come from the alarm strings definition used by the alarm.
Text messages come from the alarm strings definition used by the alarm.
Non-point alarms have a configurable severity. This severity is used by the OPC server as the sub-
condition System severity.
Step 3 Use the OPC Alarm and Event Client and Server at runtime.
(page
183)
Following are steps for configuring the OPC Alarm and Event Server.
Step 1.1 Open the OPC Alarm and Event Server Window.
(page
161)
Step 1.3 Apply the changes to the OPC Alarm and Event Server.
(page
164)
Step 1.4 Configure the OPC Alarm and Event Server sampling rate.
(page
165)
Step 1.1. Open the OPC Alarm and Event Server Window
1. Click Settings on the OPC Alarm and Event Server window menu bar.
Button Click to
OK Close the Security Dialog.
Add Add a new project to the OPC Alarm and Event Server.
Field Description
Project name Project that will be connected to the OPC Alarm and Event Server.
Field Description
User name CIMPLICITY project user selected to access data on the OPC Alarm
and Event Server.
3. Click OK.
The OPC Alarm and Event Server will collect data from the configured project that displays in
4. Continue to add projects until all the projects that should be connected to this server are
connected.
Step 1.3. Apply the Changes to the OPC Alarm and Event Server
1. Click OK in the Security Dialog when you have completed adding projects to the OPC Alarm
and Event Server.
2. Click OK.
The message closes.
Important: This list is for Server projects only. Do not add the client project to the Security
dialog.
Step 1.4. Configure the OPC Alarm and Event Server Sampling Rate
1. Click Settings on the OPC Alarm and Event Server menu bar.
2. Select Options...
Field Description
Statistics sample period Number of milliseconds the server waits between samples
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 166
Field Description
Namespace delimiter The character inserted in the fully qualified alarm name to
define a space between elements. Alarms that an OPC A & E
server collects must be configured on an OPC Client in order
for the values to display in the client's Alarm Viewer. The fully
qualified name is Source Project/Factory Resource/Reference
ID/Alarm ID
Display server window Do either of the following: Select the Display the Server check
box when it is started by the client, or clear the Hide the Server
check box when it is started by the client.
1. Select Trace on the OPC Alarm and Event Server window menu bar.
The Trace menu displays.
2. Select Exit.
When you restart the Server the security configuration will be applied.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 167
Note: The connection to the OPC Alarm and Event Server is controlled using COM security.
Alarms and events from OPC servers are created dynamically based on configuration for the
following alarms.
$OPC_MODEL_EVENT Events
You can:
Step 2.2 Create a new connection to an OPC Alarm and Event Server.
(page
169)
Step 2.3 (Optional) Modify source alarms logging and deletion requirements for the client display.
(page
176)
CIMPLICITY provides several methods to open a new OPC A&E Client dialog box.
1. Select Project > Alarms > Alarm OPC Client in the Workbench left pane.
2. Do the following.
D
In the Workbench right pane:
a. Right-click any OPC Client.
b. Select New on the Popup menu.
The name will be used as the reference id for alarms gathered by the client.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 169
4. Click OK.
CIMPLICITY provides several methods to open an existing OPC A&E dialog box.
1. Select Project > Alarms > Alarm OPC Client in the Workbench left pane.
3. Do the following.
D In the Workbench right pane, double click an OPC A&E client configuration.
The selected OPC A&E Client dialog box opens when you use any method.
Step 2.2.1 Create a new connection to an OPC Alarm and Event Server.
(page
170)
Step 2.2.2 Filter alarms that display in the A & E OPC client Alarm Viewer.
(page
171)
Step 2.2.3 Change attribute display in the Alarm Viewer message field.
(page
172)
Step 2.2.1. Create a New Connection to an OPC Alarm and Event Server
1. Fill in the fields in the OPC A&E Client dialog box as follows.
Option Description
Server The OPC Alarm and Event Server that this client connects to. The server can be selected by double-
clicking one of the configured OPC Alarm and Event Servers that display in the Server list in the
bottom half of the OPC A&E Client dialog box.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 171
Option Description
Node The computer name on which the server is located.
Note:
• If the OPC Alarm and Event Server is on the local computer, the Node field can be blank.
• One client can connect to one OPC Server. If you have multiple OPC Servers, create multiple
OPC clients.
Resource Factory resource the OPC Alarm and Event Server will use to collect alarm data.
ID
Filter Opens the OPC Filter window (page 171) to select alarm filter criteria.
Message Attribute entries configure the alarm message that displays for the source alarms.
Fields Opens the OPC Fields browser (page 172) to list the attributes that can be selected for the
Message field.
2. Click OK.
Alarms from projects that are configured for the OPC Alarm and Event Server will display in the
client's Alarm Viewer.
When there is no filter all of the alarms generated on the source and client computers display in the
Alarm Viewer.
Step 2.2.2. Filter Alarms that Display in the A & E OPC Client Alarm Viewer
1. Click the Filter button in the OPC A&E Client dialog box.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 172
Window
Description
area
Areas and Are created dynamically as the alarms are generated. If the alarms have not been generated then
Sources they will not show in the list of areas and sources. If there are no selections, all alarms display in
the Alarm Viewer. You can select sources or areas for which you want to receive alarms.
Categories Check which categories to receive. If there are no selections all categories will display.
Event Type Types of alarms and events the should display: Simple, Condition, Tracking.
Severity Lowest and highest limits in the severity range (page 42) in which displayed alarms fall.
Range
Your selections determine which alarms will display in the Alarm Viewer control.
Step 2.2.3. Change the Display in the Alarm Viewer Message Field
You can enhance or change the information that displays in the source projects message field.
1. Make sure that dynamic configuration is turned on in the client project, if the project is running.
Important: You can make multiple entries in the Message field. If you do leave spaces
between each selection, the spaces will display during runtime. However, the maximum alarm
message length is 73 characters, including the point ID (and spaces). If the message is longer,
the message will be truncated after 73 characters.
Add an attribute
The following attributes are available for the OPC Alarm and Event Client use.
• Category
• Condition
• Message
• Subcondition
When you enter an attribute in the Message field, make sure the attribute is enclosed in <>, e.g.
<Category>
Tip: Click the Fields button to open the OPC Fields browser and select an attribute.
Values for the selected attributes will display in the message field during
runtime.
1 Fields and spaces configured for the OPC Alarm and Event Server alarm messages.
2 OPC Alarm and Event Server alarm fields and spaces display in the runtime Message column.
Add text
The entered text will display in the alarm's Message field during
runtime.
1 Actual text that will display as the OPC Alarm and Event Server alarm message.
2 Actual text that displays as the OPC Alarm and Event Server alarm message during runtime
Note: The number of spaces between the text and sub-condition value correspond to the number of spaces
entered in the Message field during configuration.
You can enter text and one or more attributes in the Message field.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 175
The entered text and values for the attributes display in the alarm's Message field during
runtime.
1 Actual text and sub-condition whose value will display as the OPC Alarm and Event Server alarm message.
2 Actual text and sub-condition value that display as the OPC Alarm and Event Server alarm message during runtime
Note: The number of spaces between the text and the sub-condition value correspond to the number of
spaces entered in the Message field during configuration.
displays.
1 The Client has no configuration to override the original message for Server alarms.
2 Alarm messages configured in the Server projects display for the Server alarms during runtime
Step 2.3. Modify Source Alarms Default Logging and Deletion Requirements for the Client
Display
Alarms and events from OPC servers are created dynamically based on the following alarms in the
client computer Alarms folder.
$OPC_MODEL_EVENT Events
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 177
You can modify these alarms to change the default behavior for the source alarms.
$OPC_MODEL_EVENT Alarm Event alarms are logged to the Event log for All check boxes are
Logging checked options. clear.
Acknowledge Checked
Reset Checked
B Automatic actions
D Maximum stacked 0
Acknowledge Checked
Reset Clear
B Automatic actions
D Maximum stacked 0
Important:
• If you change any of these requirements, e.g. check Manual reset allowed, you can delete
the Alarm from the client Alarm Viewer display. However, this action is not sent back
through the OPC server to the source project.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 179
You can also configure source alarms on the client computer if you know the following:
• Project names
• Factory resource IDs
• Alarm reference IDs
• Alarm IDs
2. Enter a fully qualified name for a source project alarm that will be viewed in the client's Alarm
Viewer.
Example
SNORTH/AANDE/SN5/SN5
Note: If a reference ID has not been specifically specified for the point it is the same as the
point ID.
1. Select the Alarm Definition tab in the Alarm Definition dialog box.
Options descriptions are:
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 181
Field Description
Description Used to describe the alarm in the client project, e.g. in the Workbench right pane.
Alarm Colors for states in the class that are recognized by the OPC A & E configuration display in the
class Alarm Viewer.
Note: The class name does not have to be the same as the class used on the OPC A & E
server.
Help file (Optional) Name of a text file that users can display when they click the Help button in the Alarm
Viewer. You can enter a filename of up to 67 characters.
Severity A number the identifies the importance of the alarm; the higher the number, the more severe the
state. This enables you to prioritize alarms.
Alarm Alarms are recorded in the client project's Alarm log, based on the checked conditions.
Logging
3. Make sure the alarms are routed to the role for the A & E OPC server user.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 182
The qualified alarm displays the source alarm data that is recognized by the OPC Alarm and Event
configuration.
2 The class assigned to the alarm ID in the client project is one of the following:
Alarm type
Client alarms
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 183
3 The sub-condition that displays in the Sub-condition column reflects the alarm limits assigned in the alarm's source
project. The color assigned to the alarm ID (page 184) is based on the sub-condition for the assigned class and
the alarm state.
Alarm type
Client alarms
Step 3. Use the OPC Alarm and Event Client and Server at Runtime
Step 3. Use the OPC Alarm and Event Client and Server at Runtime
Step 3.2 Use the OPC Alarm and Event Client Alarm Viewer.
(page
184)
Step 3.3 Review runtime statistics in the OPC Alarm and Event server window.
(page
185)
The OPC Alarm and Event Server window opens on the server computer, if it is not already running.
Step 3.2. Use the OPC Alarm and Event Client Alarm Viewer
Open an Alarm Viewer control or the stand alone Alarm Viewer on the client computer.
Step 3.3. Review Runtime Statistics in the OPC Alarm and Event Server Window
The OPC Alarm and Event Server window (page 161) displays statistics to inform you of client/
source projects alarm activity.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 186
Num Event Server Internal events and alarms currently supported by the server.
Objects
Num Subscriptions Clients that are running and being sent data from the server.
Note: CIMPLICITY OPC Alarm and Event Server supports clients with browsing
functionality.
Num Events Generated Changes of states; changes include alarms being activated and alarms acknowledged.
Num Events Last Events the server collected during the specified sample period.
Sample Period
Example
The server collected 19 events during the last 1000 milliseconds, the length specified for the
server's sample period.
1. Click File on the OPC Alarm and Event Server window menu bar.
All clients connected to the OPC Alarm and Event Server are disconnected for the sample period.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 187
• Redundant environments.
• DCOM configuration.
• OPC Alarm & Event server shortcut icon.
Redundant Environments
The OPC Alarm and Event Server should be run on a third computer in a redundant environment.
The OPC server will then fail over correctly
Note: If you try to configure an OPC Alarm and Event Server on the primary and secondary
computers, you will create a feedback loop that will fail.
DCOM Configuration
When you want the OPC Alarm and Event Clients to communicate with an off-node OPC Alarm and
Event Server, configure the same DCOM configuration for the OPC Alarm and Event Server and
OPCEnum as you do for the CIMPLICITY OPC Server.
Alarms and Messages | 8 - OPC Alarm and Event Server and Client | 188
• Reads project configuration at startup and populates the server configuration database.
• Sets its status to OPCAE_STATUS_NOCONFIG until all configuration information is
processed.
• Sets the status to OPCAE_STATUS_RUNNING when it is ready.
• Updates its configuration as projects are added and removed and in addition processes dynamic
configuration notifications from the projects to keep its own configuration database up-to-date.
Important: A&E OPC Clients should not use the A&E OPC Server while the status is
OPCAE_STATUS_NOCONFIG.
Make sure the server status is OPCAE_STATUS_RUNNING before attempting to set a filter.