LESSON

Pipeline – Filter on Alarm Priority

Description

Learn how to filter for alarm priority in alarm notification pipelines.

Video recorded using: Ignition 7.7

Transcript

(open in window)

[00:00] Let's create a notification pipeline that notifies a different list of people based on the alarm's priority. So we're going to filter on the alarm's priority here. Let's assume that all the alarms are already configured to come into this pipeline. Since we're filtering on the priority, we can either use the switch block or the expression block to make this happen. The switch block will allow me to switch on the priority, doing something different for every single priority that exists. The expression will allow me to check for a particular priority, and it returns true or false. I can do something if it's true, and I can do something different if it's false. So let's do that one here. So I'm going to bring the expression block into my pipeline. I'm going to hook up my start into the end of the expression. Now the expression's going to be turned true or false. So down here on the bottom left, I can type in what I want that expression to be. So I'm going to check for the alarm's priority. So I'm going to go and use the color braces here to go and bring in the priority of the alarm. I don't know what that priority's going to be, so I've put this place holder here, which is a curly brace, priority, end curly brace. When the alarm comes in for real, it's going to be replaced with the actual priority of that alarm. Here I want to check to see if that priority is critical, which is if it's equal to four. As zero is diagnostic, one is low, two is medium, three is high, and four is critical. So if the priority is critical, that equals four, then it will come to the output pin of true. If it is false, it will come to the output pin of false. So I can do something different for each of those conditions. So I'm going to bring a notification block in and hook up the true into the end of the notification. On the first one, I'm basically going to say I'm going to email, and the contacts I want to email are the critical ones. So it's going to be the critical is a different list of people than the noncritical. So if I take another notification block, bring it right down below, I can hook up the false into the end of the notification, and on here I can set that one to go to email, but this time go to a different list, a noncritical list. So as you can see, we're filtering on the priority. When it's critical, I email one list of people. If it's not critical, I email a different list of people.

You are editing this transcript.

Make any corrections to improve this transcript. We'll review any changes before posting them.

close

Share this video