--- alias: user-guide-automation-task-secsgem-equipmentalarm tags: - automation tasks description: "This task monitors equipment alarms, emitting event and code data" --- # Equipment Alarm ![1562146163273](images/onalarm-lg.svg) The `Equipment Alarm` task will subscribe to all the *S5F1* (Alarm Occurrence Report) SECS/GEM messages the equipment sends. ![1562146284808](./images/image10.png) ## Inputs | Name | Data Type | Description | | -------- | --------- | ----------------- | | Enable/Disable | `Boolean` | Activates the task | ## Outputs | Name | Data Type | Description | | --------- | ------------------ | ------------------------------------------------------------ | | alarm | `Automation Event` | Emits the MES Entity `Automation Event` that contains the triggered event | | alarmId | `String` | Emits the id for this alarm | | alarmCode | `Integer` | Emits the code for this alarm | | alarmText | `String` | Emits the text that describes the alarm | | timeStamp | `DateTime` | Emits the timestamp of when the task was triggered | | Success | `Boolean` | Triggered when the task is executed with success | | Error | `Error` | Triggered when the task failed for some reason | ## Settings On the `General` tab, you have the usual settings. ![1562145376562](./images/image8.png) ## Behavior In this task you choose a driver when dropping it into the workflow (if you have more than one driver associated with the controller). This task will subscribe to all the S5F1 (Alarm Messages) of the equipment driver, that have been configured as automation events. It will then treat the reply and break it down to alarm code and text, and will emit them accordingly. ## Remarks {% include-markdown 'includes/pages/automation_zones_note.md' %}