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.

  1. Create a new numerical alarm type definition:

    1. In the Project Explorer, select node Alarms > Alarm types > Numerical.

    2. 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.

    3. 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.

  2. Create three new assignments within the numerical alarm type definition:

    1. In the Project Explorer, select the node of the bit block alarm type you have just created.

    2. To create three new assignments, click on the table editor and press F8 three times.

    3. For each assignment, indicate a Name, select the triggering Value (i.e. the error code issued by the converter), the Text, and the Alarm class on the Property Pages or in the table editor. Indicate the error cause in the Text parameter.

      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

  3. Create an alarm definition for each of the three converters:

    1. First, create an alarm group since alarms always require an alarm group. Indicate a name for the new alarm group in the Name parameter on the Property pages, e.g. Converters.

    2. Create an alarm definition for each of the three converters: Indicate a Name and select 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

    3. Indicate the alarm source in the Text parameter of the alarm definition (i.e. the converter name). You have already indicated the error cause in the Text parameter 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 the Text parameter or use the Edit Localizable Text dialog to insert the string.

      Ensure that the Text mode parameter 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.

  4. Bind the numerical alarm type to each of the three alarms:

    1. Select an alarm definition, open the drop-down menu in the Type parameter and select Numerical.

    2. 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