You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing training@inductiveautomation.com.
Version:
LESSON LIST
Supplemental Videos
Description
Learn how to filter on alarm associated data in Alarm Notification pipelines.
Video recorded using: Ignition 8.1
Transcript
(open in window)[00:00] In this video, we will look at how we can filter an alarm notification pipeline based on associated data that we've added to an alarm. Remember from previous lessons, it's possible for you to add associated data to an alarm that can be static or dynamic. I've added associated data called Group to a few of my alarms that has a value of either A, B, or C. After I've added the associated data, it's possible for me to use that same associated data in filtering my notification pipeline. I can use either the switch block or the expression block to filter. The switch block will allow me to have a different output for each group, while the expression does something similar but I can really only check to see if the alarm matches a single type of group. I'm going to use the switch block this time. So I'll bring in a switch block into my pipeline, and I'm going to hook up the start into the switch input.
[01:04] On the switch block in the bottom left, when you configure the block, you need to specify the expression that will return the possible values. You won't find any of the associated data properties here in the alarm properties button, because only built in properties are listed in this dropdown. You must manually type in the name of your associated data property, surrounded by curly brackets. Then down below, I can add as many values that I need for possible return values from my expression. I know my group can either be A, B, or C, so I'm going to add possible values that correspond to those. Once I add those three, you'll see an output for each possible value, as well as a catch all. From there, I can then notify a different list of people based on the group that the alarm is associated with. I'll set up some notification blocks here, with each group notifying a different roster. My catch all is then for any groups that aren't recognized or any alarms that don't have a group assigned.
[02:07] So I will just put a roster of all. This is how we can filter our alarm notification based on an associated data property.