Create alarms

Create digital alarm objects and boolean variables.
  1. Create input variables:
    1. In
      Project view
      , create two variables by right-clicking
      Model
      and selecting
      New
      Variable
      .
    2. Rename the variables by hovering-over each variable, selecting
      Edit
      Edit
      , and entering:
      • ErrorAlarmVariable
      • WarningAlarmVariable
    3. Select
      ErrorAlarmVariable
      , and in
      Properties
      , select
      Int32
      and select
      Boolean
      .
    4. Select
      WarningAlarmVariable
      , and in
      Properties
      , select
      Int32
      and select
      Boolean
      .
  2. Create the alarms:
    1. In
      Project view
      , create two alarms by right-clicking
      Alarms
      and selecting
      New
      Digital alarm
      .
    2. Rename the alarms by hovering-over an alarm, selecting
      Edit
      Edit
      , and entering:
      • ErrorAlarm
      • WarningAlarm
  3. Configure the ErrorAlarm:
    1. In
      Project view
      , select
      ErrorAlarm
      .
    2. In
      Properties
      , create a dynamic link between
      Input variable
      and
      ProjectName
      Model
      ErrorAlarmVariable
      .
      For more information about dynamic links, see Create dynamic links.
    3. Set
      Message
      to
      Serious system malfunction
      .
  4. Configure the WarningAlarm:
    1. In
      Project view
      , select
      ErrorAlarm
      .
    2. In
      Properties
      , create a dynamic link between the
      Input variable
      property and
      ProjectName
      Model
      WarningAlarmVariable
      .
      For more information about dynamic links, see Create dynamic links.
    3. Set the
      Message
      property value to
      A module was not initialized correctly
      .
    4. Set the
      Severity
      property value to
      2
      .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.