?>
Alarm Is Main Function Or Tools In Automation, Process. Basically Alarm Is Concept Of Warning Of Any Process. You Can Define Various Alarm Events Of Process And These Alarm Events Helps The Operator To What Happens In Process.
For Configuration Of Alarm First Make a simple project.. If You New In Codesys Click On The link So You Can Understand How To Make A Simple Project In Codesys. after making a project make some logic of your program. i am adding a simple logic of timer.
in above program when i set a bit to "stat_timer" than timer start. "timer_done" bit set to true when Elapsed Time (ET) is equal to preset time (PT) T#20s. for more information of codesys timer goto this link.
in second rung Elapsed Time (ET) is converted to integer value. for more about codesys data type press to link.
in third rung Elapsed Time (ET) Converted to integer data type.
in fourth rung i am division block . if you know more about codesys arithmetic instrunction block got to this link.
after making a ladder logic i am going to create Visualization of for making of Visualization in codesys got this link. here i am adding a "dip switch" for starting timer and "lamp" to show when timer done bit is true.
after making ladder logic, and visualization next to define alarm configuration for project. for this Select an application in the device tree and than Add Object > Alarm configuration.
The Add Alarm Configuration dialog opens. click the Add button.
alarm management is created with classes Error, Info, and Warning and the AlarmStorage below the alarm configuration.
after creating alarm management next step to configure alarm classes for this we three class
define following parameter for your alarm class.
so i am configure all these class look like below image
alarm is structur of alarm to how and when alarm show in the table. In the editor of the alarm group object, you define the individual alarms of the group with their properties in a table. Each alarm belongs to exactly one alarm group. for adding alarm group goto alarm configuration > add object > alarm group.
after add an alarm group open alarm group and add parameter,variable and statement of alarm.
Name of the text list where the alarm message text is saved. "codesys automatic generated if not available."
Selection of the alarm storage object for the alarm group. When you specify an alarm storage object, CODESYS activates the alarm storage.
Boolean variable that deactivates all alarms in this group. CODESYS does not trigger these alarms any longer, even if the alarm condition is fulfilled. Alarms that are already active are not affected by this.
individual alarms properties of variable in the corresponding table columns.
ID: it is unique ID to associated text list. if change the ID in the ID field of the table the alarm table also directly causes a change in the text list.
Observation Type: this field of table defines the condition of the alarm trigger.
Details: in this field you set the conditional settings of variable.
Deactivation: set the Variable for deactivating the alarm.
Class: set the alarm class which you defined(error,info,warning).
Message: set the message of an alarm. this message show when your alarm is triggered.
after settings all the parameter go to visualization and add alarm table by selecting from toolbox.open visualization and add alarm table form alarm manager
after adding all the parameter and settings run your project. as per logic and ladder logic you see when timer is not running a alarm table display an error message "start your timer" when we made dipswitch off to on timer start running when value of timer_value value is in between 1 to 6 alarm message display an warning alarm to "timer value is to low". when value between 7 to 16 info alarm triggered with message "timer value is ok". when value is greater than 17 error message triggered. so these are basic function of alarm management in codesys we discuss in more details like database of alarm and data logging in next article.