SendAlarmsUsingGroups_Simple is a project designed to demonstrate how to send alarm information to certain users based on the alarm group defined in the project. The alarm information can be sent via E-mail or SMS (text messages) as the alarms occur, end, get acknowledged.

In the Project Options dialog box, an alarm group named AlarmsToSend is defined (Project > Alarms > Groups).

A device named PLC1 is defined via the Device Manager. In the device, alarms named TrivialAlarm1, SeriousAlarm1, and CriticalAlarm1 are defined to be simulated through the buttons in the visualization window. On the Advanced page, each alarm's Alarm groups property determines whether the alarm belongs to the AlarmsToSend group depending on its severity (TrivialAlarm1 does not belong to this group because it is not severe).

Four users are defined via the User Manager. On the Notification page, each user's Alarm groups property determines whether the user should receive information on the alarms that belong to the AlarmsToSend group. The method of sending the information is specified by the Notify via E-mail and Notify via SMS options (the Notification page). Some users (technicians) are notified via E-mail and SMS, others (the directors and technical managers) are only notified via E-mail. For the users to be notified via E-mail, it is necessary to enter a valid E-mail address (the Basic page, the E-mail property). For the users to be notified via SMS, it is necessary to enter a valid phone number (the Basic page, the Phone number property).

A computer named PC1 is defined via the Project Structure Manager. On the Notification page, the Notify via E-mail, Notify via SMS, On start, and On end options are active. The Message text property contains the necessary information and doesn't have to be altered.

To send information via E-mail, it is necessary to configure the options on the E-mail page, especially the SMTP server address.

To send information via SMS, it is necessary to activate the Start SMS driver option on the SMS page and configure the other properties.
