Charmed Quark Systems, Ltd. - Support Forums and Community
Triggered Event on Timer Question - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: CQC Support (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=9)
+--- Thread: Triggered Event on Timer Question (/showthread.php?tid=10959)



Triggered Event on Timer Question - znelbok - 11-29-2019

I need help on a timer and a triggered event.

I have the run time driver installed and a triggered event on two fields.  <name>_RuntTimeElapse and <name>_TimeSince LastRan, with  the trigger set as follows

"Send a trigger if the Expression is True"
IsGtThan
<value>

Its the last field that I cant work out and the doc's are no help.

I have tried the last two and both have the same result.

If the timer is running and is then reset, a triggered event is sent, even when the time is less than the defined value.

The first option unlatched should send a trigger every time the value changes when GT the trip point.

How do I set up a trigger for when the time exceeds the nominated value?


RE: Triggered Event on Timer Question - znelbok - 11-29-2019

Just to elaborate, it does trigger when the time exceeds the value, but it also triggers when the time is reset and has not exceeded the trigger time. - So it works but has an issue on a normal reset


RE: Triggered Event on Timer Question - Dean Roddey - 11-30-2019

Hmm... sounds like it could be a bug maybe. It obviously should be latching. But it should be one way latching. Two way latching will trigger if it changes state in either direction. One way latching should only trigger when the expression goes false to true.


RE: Triggered Event on Timer Question - znelbok - 12-01-2019

Yeah, it feels like there is a bug there


RE: Triggered Event on Timer Question - Dean Roddey - 12-01-2019

What version are you on? So far I've not reproduced this. There was a lot of work put into this latching stuff a while back. I'm guessing you are on a version past that, but just in case... And by reset I assume you mean writing to the RunTimerX_Reset field, right?


RE: Triggered Event on Timer Question - znelbok - 12-04-2019

I'm on version 5.3.956

By reset I mean the value is returning back to zero by what ever method. I think when the input goes high it resets the timer and times from 0 (i.e. not accumulative)


RE: Triggered Event on Timer Question - Dean Roddey - 12-04-2019

There are shortcomings with the latching back that been reworked since then. So there's a good chance that's the issue. Most of these improvements were done in 5.4 which introduced bidirectional latching. At that point, I and someone else dug pretty heavily into this and got it really well worked out.


RE: Triggered Event on Timer Question - znelbok - 12-09-2019

OK, I'll put some time aside to do an upgrade and re-test.