Event Conditions - am I correct?

Discuss issues and ideas you have to configuring displays with PowerVision
robsinglehurst
Posts: 54
Joined: Fri Dec 12, 2014 6:57 am

Event Conditions - am I correct?

Post by robsinglehurst » Sat Feb 25, 2017 4:04 pm

I am using Fire on Change on a Digital Input variable to fire an event. I only want the event to fire when the particular variable has changed to 0 so in the event condition I am putting IO_DI1_FlowPulse = 0
EventConditions.jpg
EventConditions.jpg (246.69 KiB) Viewed 142 times

This is not working as I am expecting as the Event fires every time the variable changes i.e falling and rising edge.

Am I correct in thinking this is how the Event Condition works i.e if the condition is satisfied then the event will fire?

Just altered my program and I guess I am not correct, as in the activity program that this Event runs I added a decision to do the above and it works fine now.

I would be grateful if someone could explain how Event Conditions work.
Rob Singlehurst
Design Engineer

Briggs Irrigation
Boyle Road
Corby
Northants.
England
UK
JoakimMD
Posts: 20
Joined: Fri Oct 22, 2010 9:17 am

Re: Event Conditions - am I correct?

Post by JoakimMD » Mon Feb 27, 2017 2:02 am

Hi,

Which event are you using? "Flow Pulse Fire on Change" or "Flow Pulse Fire on Change Condition". I Think the later one would be correct.

Just my 5 cents. :)
robsinglehurst
Posts: 54
Joined: Fri Dec 12, 2014 6:57 am

Re: Event Conditions - am I correct?

Post by robsinglehurst » Mon Feb 27, 2017 2:51 am

Hi Joakim,
Thanks for your reply,
Ahhh! I see what you mean now, I was using the "Flow Pulse Fire on Change" event but having looked again I see that I can select the "Flow Pulse Fire on Change Condition" event as well to run the activity program! I didn't realise that the conditions created a new event! (to be fair though I haven't been on a training course - I'm entirely self taught).

Just tried using the "Flow Pulse Fire on Change Condition" to run the activity program though and the activity program never runs......

Am I understanding the above correctly though as in the Programming manual there is the following section regarding Events,

>>>>
• Event Conditions: Created to conditionally fire its parent event based on the result of an expression. For example, an event condition called Shutdown if Temperature > 250 degrees can be created that fires another event called Shutdown if the temperature gets too hot.
<<<<
This would indicate too me that it is the parent event i.e. in my case "Flow Pulse Fire on Change" that should be fired?
Rob Singlehurst
Design Engineer

Briggs Irrigation
Boyle Road
Corby
Northants.
England
UK
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Event Conditions - am I correct?

Post by boyce » Mon Feb 27, 2017 8:42 am

On your digital input variable IO_DI1_FlowPulse do you have it's Fire on Change event selecting the condition event "Flow Pulse Fire on Change Condition"?
Boyce Schrack
Enovation Controls
robsinglehurst
Posts: 54
Joined: Fri Dec 12, 2014 6:57 am

Re: Event Conditions - am I correct?

Post by robsinglehurst » Mon Feb 27, 2017 8:50 am

Hi Boyce,
Yes, I tried that
Just tried using the "Flow Pulse Fire on Change Condition" to run the activity program though and the activity program never runs......
and it didn't work. The only way I could get it to work was to have the activity program run on every fire on change and then use a decision block within the activity program. I assume that using the above should work though?
Rob Singlehurst
Design Engineer

Briggs Irrigation
Boyle Road
Corby
Northants.
England
UK
robsinglehurst
Posts: 54
Joined: Fri Dec 12, 2014 6:57 am

Re: Event Conditions - am I correct?

Post by robsinglehurst » Mon Feb 27, 2017 1:34 pm

Am I right in what I am thinking though with the Event Condition?

Also Can Event Conditions be nested several levels deep (if desired)?
Rob Singlehurst
Design Engineer

Briggs Irrigation
Boyle Road
Corby
Northants.
England
UK
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Event Conditions - am I correct?

Post by boyce » Mon Feb 27, 2017 2:05 pm

Checking for a condition in an Activity Program is probably the easiest way to do it.

Event conditions can be nested.
Boyce Schrack
Enovation Controls
robsinglehurst
Posts: 54
Joined: Fri Dec 12, 2014 6:57 am

Re: Event Conditions - am I correct?

Post by robsinglehurst » Mon Feb 27, 2017 4:05 pm

Thanks Boyce,
Rob Singlehurst
Design Engineer

Briggs Irrigation
Boyle Road
Corby
Northants.
England
UK