Example: Numerical alarm type
This example shows how to use the numerical alarm type.
Example scenario
A facility includes three identical motors, each of which is equipped with a frequency converter. The converters are identical in construction and issue a numerical code in case of error. It must be assured that each error code could trigger an alarm. Since the three converters are identical in construction, the definition process can be simplified by defining a numerical alarm type.
-
Create a new numerical alarm type definition:
-
In the Project Explorer, select node Alarms > Alarm types > Numerical.
-
To create a new alarm type definition, right-click on the node and select New from the context menu or click on the table editor and press F8.
-
Indicate a name for the new definition in the Property Pages window, e.g. Sensor. Set the Reset mode (system module parameter) parameter according to the requirements of the converter and the PLC program.
-
-
Create three new assignments within the numerical alarm type definition:
-
In the Project Explorer, select the node of the bit block alarm type you have just created.
-
To create three new assignments, click on the table editor and press F8 three times.
-
For each assignment, indicate a
Name, select the triggeringValue(i.e. the error code issued by the converter), theText, and theAlarm classon the Property Pages or in the table editor. Indicate the error cause in theTextparameter.Use the following values, for example:
Name
Value
Text
Alarm class
Overcurrent
1
Output current too high
Alarm
Overvoltage
2
Intermediate circuit voltage too high
Alarm
Overtemperature
3
Heat sink temperature too high
Alarm
-
-
Create an alarm definition for each of the three converters:
-
First, create an alarm group since alarms always require an alarm group. Indicate a name for the new alarm group in the
Nameparameter on the Property pages, e.g. Converters. -
Create an alarm definition for each of the three converters: Indicate a
Nameand select theEvent variablefor each alarm definition:Name
Event variable
Converter1
Ch1.Converters.1.Error
Converter2
Ch1.Converters.2.Error
Converter3
Ch1.Converters.3.Error
-
Indicate the alarm source in the
Textparameter of the alarm definition (i.e. the converter name). You have already indicated the error cause in theTextparameter in the assignments (step 2.C). Bind the assignment text (error cause) to the alarm definition text (error source) using the@J@format string:Name
Text
Converter1
Converter 1: @J@
Converter2
Converter 2: @J@
Converter3
Converter 3: @J@
Type the
@J@string into theTextparameter or use the Edit Localizable Text dialog to insert the string.Ensure that the
Text modeparameter of the numerical alarm type definition ist set to Use text of alarm definition (default setting).At runtime, the
@J@format string will be replaced by the text of the respective assignment. This approach allows to combine error cause and error source in a single alarm text. For example, if at runtime Bit 1 is set by Converter 1, then the alarm list or alarm line will show the following text: Converter 1: Output current too high.
-
-
Bind the numerical alarm type to each of the three alarms:
-
Select an alarm definition, open the drop-down menu in the
Typeparameter and select Numerical. -
Under Numerical types, select the bit block alarm type you created in step 1.
-
The alarm type definition now contains 3 assignments that bind alarm information to individual bits. An alarm that uses that alarm type has been defined for each of the 3 converters. This results in a total of 9 alarms that may be issued at runtime:
|
Event variable |
Value |
Alarm text at runtime |
|---|---|---|
|
Ch1.Converters.1.Error |
1 |
Converter 1: Output current too high |
|
Ch1.Converters.1.Error |
2 |
Converter 1: Intermediate circuit voltage too high |
|
Ch1.Converters.1.Error |
3 |
Converter 1: Heat sink temperature too high |
|
Ch1.Converters.2.Error |
1 |
Converter 2: Output current too high |
|
Ch1.Converters.2.Error |
2 |
Converter 2: Intermediate circuit voltage too high |
|
Ch1.Converters.2.Error |
3 |
Converter 2: Heat sink temperature too high |
|
Ch1.Converters.3.Error |
1 |
Converter 3: Output current too high |
|
Ch1.Converters.3.Error |
2 |
Converter 3: Intermediate circuit voltage too high |
|
Ch1.Converters.3.Error |
3 |
Converter 3: Heat sink temperature too high |