Example: Numerical alarm type
The following example illustrates the use of the numerical alarm type:
A system contains three motors, each of which is equipped with a frequency inverter. The frequency inverters are identical in construction and output a numerical error code in the event of a fault. Each error code output should be able to trigger an alarm. As the three frequency inverters are identical, the project planning steps can be simplified using a numerical alarm type.
-
This is how you proceed:
-
Create a new numerical alarm type definition:
-
In the project explorer, select the Alarms > Alarmtypes > Numeric node.
-
To create a new alarm type definition, right-click and select New from the context menu or click once on the table editor and press F8.
-
In the Property pages window, specify the name for the new definition, e.g. "Converter". In the Reset mode parameter, specify how the alarm is reset. The correct setting depends on the specific frequency inverter and the PLC programme.
-
-
Create three new assignments in the numerical alarm type definition:
-
In the project explorer, select the node of the numerical alarm type definition you have just created.
-
Click on the table editor and press F8 three times in succession to create new assignments.
-
Specify the "Name", the triggering "Value" (i.e. the error number that is output by the frequency inverter), the "Text" and the "Alarm class" for each assignment on the properties pages or directly in the table editor. Specify the cause of the error in the Text parameter.
Use the following values for these parameters, for example:
Parameter 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 frequency inverters:
-
First create a new alarm group for the alarms, as alarms must always belong to an alarm group. Specify the name for the new alarm group in the Name parameter on the properties pages, e.g. "Converters".
-
In the new alarm group, create an alarm definition for each of the three frequency inverters. Specify the "Name" and the "Event variable" for each alarm definition:
Name
Event variable
Converter1
Ch1.Converters.1.Error
Converter2
Ch1.Converters.2.Error
Converter3
Ch1.Converters.3.Error
-
Specify the respective alarm source (i.e. the frequency inverter name) in the Text parameter of the alarm definition. You have already specified the cause of the error in the Text parameter in the assignments (step 2.c). Now include the text of the assignment (cause of error) in the text of the alarm definition (error source) using the formatting instruction "@J@":
Name
Text
Converter1
Converter 1: @J@
Converter2
Converter 2: @J@
Converter3
Converter 3: @J@
Type the formatting instruction "@J@" directly into the Text parameter or use the Edit localizable text dialogue to insert the formatting instruction.
Make sure that the "Use text from alarm definition" option is selected in the Text mode parameter of the numerical alarm type definition (default setting).
At runtime, the formatting instruction "@J@" is replaced by the text of the respective assignment. This combines the source and cause of the error in an alarm text. If, for example, error code 1 is output during the runtime of frequency inverter 1, the text "Converter 1: Output current too high" appears in the alarm list or alarm line.
-
- Link all three alarms to the numerical alarm type:
Open the selection list in the Type parameter of the alarm definition and select "Numeric".
Under "Numerical types", open the numerical alarm type created in step 1.
The alarm type definition contains 3 assignments that link the various bits with alarm information. For each of the 3 motors, an alarm has been defined that uses this alarm type. There can therefore be a total of 9 alarms 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 |