Create digital alarm objects and Boolean variables.
-
Create input variables:
-
In Project view, create two variables by right-clicking Model and selecting .
-
Rename the variables by hovering-over each variable, selecting
, and entering:
-
ErrorAlarmVariable
-
WarningAlarmVariable
-
Select ErrorAlarmVariable, and in Properties, select Int32 and select Boolean.
-
Select WarningAlarmVariable, and in Properties, select Int32 and select Boolean.
-
Create the alarms:
-
In Project view, create two alarms by right-clicking Alarms and selecting .
-
Rename the alarms by hovering-over an alarm, selecting
, and entering:
-
Configure the ErrorAlarm:
-
In Project view, select ErrorAlarm.
-
In Properties, create a dynamic link between Input variable and .
-
Set Message to Serious system malfunction.
-
Configure the WarningAlarm:
-
In Project view, select ErrorAlarm.
-
In Properties, create a dynamic link between the Input variable property and .
-
Set the Message property value to A module was not initialized correctly.
-
Set the Severity property value to 2.