Forum Home › Forums › Understanding the Software › Delay before creating an event
- This topic has 9 replies, 4 voices, and was last updated 1 year ago by Mikhail.
-
AuthorPosts
-
October 12, 2023 at 8:59 am #13490DonRapidParticipant
Hi,
I’d like there to be a delay before some events are created. In other word a value must not only exceed the limit but exceed it for 1 minute before an event is created.
Is there a way to do this?
If it requires script writing, how whould such a script look?
Thanks in advance
October 12, 2023 at 10:08 am #13491manjey73Participantonly the calculation channel with a timer TON of 60 seconds comes to mind. It should start when an excess has occurred in the desired channel.
At the same time, in the channel that we control, we need a formula for the status, which at the same time will check this timer, and if it worked, then change the status, otherwise set the default channel status.
October 12, 2023 at 10:09 am #13492manjey73ParticipantAccordingly, if the signal returns to the range, the timer will be reset
It is probably possible to make a formula (script) just for the channel, the excess of which must be controlled in this way
- This reply was modified 1 year, 1 month ago by manjey73.
October 12, 2023 at 1:28 pm #13496MikhailModeratorHi,
In Rapid SCADA 6 you can set a deadband for a limit. It’s not a time delay but also can be helpful. To make a time delay, you need to develop a formula and change channel status from the formula.October 15, 2023 at 5:51 pm #13508JWParticipantI am also looking for a solution to this.
One temporary solution I’m using is:
create a channel (X-raw) to acquire the real-time data but not disable events.
create another channel (c) as counter. the counter has a initial value of 10*delay_in_sec, decrease if the value exceeded the limit, reset if the value with limit.
Note: the channel values updates roughly 8-9 times per second.create another channel (X) and enable events. the value of this channel only updates if not exceeding the limit, or exceeded limit and counter decrease to 0.
October 15, 2023 at 5:55 pm #13509JWParticipantThe difficult / inconvenience is that the events can only be trigger by changing the value to exceed the limits.
Is it possible to have a formula to write an event? That will be very helpful to allow user to decide when to create an event in formula.
October 16, 2023 at 9:07 am #13512MikhailModeratorAutomatic Control Module can activate trigger with timeout. But currently the module cannot generate events. If we add to the module a feature to generate events on trigger, does it solve the issue?
November 3, 2023 at 5:14 am #13580JWParticipantIn my use case, delay event is mainly to reduce false alarms, instead of simply triggering events with delay.
Sometimes the signal from sensor can be flickering or missing for a very short time, user don’t want to have the event of these flickers.
So I set a counter to trigger the event, to make sure the event only will be triggered only the condition last for longer than a certain period of time.The purpose is similar to the deadband, which reduce event numbers when the value wiggling around the limits.
As Mikhail suggested, adding feature to generate events on trigger to Automatic Control Module can partially solve the issue. but not very convenient.
Currently I’m only creating triggers channels for some critical data channels to achieve delay alarms.
Creating triggers for many channels and setting up auto control module for many channels are a little troublesome.November 3, 2023 at 5:37 am #13581JWParticipantThe purpose is similar to the deadband.
while the deadband reduce event numbers when the value wiggling around the limits;
this feature is to reduce the event numbers when the value occasionally flickers above the limit or loss of communication, then resume shortly (less than a few seconds).
if there is a feature in the limits, say “hold” or “delay”, which controls the event only will be triggered if the value exceeded the limit consecutively for a certain amount of time, it would be very helpful.
It can be very complicated to implement.
Even if it can only hold the value and stat for a period of time before changing to undefine, it will be very useful.
November 3, 2023 at 10:56 am #13588MikhailModeratorThank you for the detailed description.
I’m thinking about development of a separate module for event generating. This approach can be more configurable and flexible than trying to add all possible features in the Server app. -
AuthorPosts
- You must be logged in to reply to this topic.