Dear,
I wrote Qaction1 program which populate table when one trigger parameter changing its state. When the trigger parameter changes its state from 0 to 1 Qaction1 adds new row in the table and write current time in the “start” column. When the trigger parameter changes its state from 1 to 0, Qaction1 write current time in the “stop” column of current row. From time to time (every few days) QAction1 is executed without visible reason - the trigger parameter didn’t change its state. I know that trigger parameter didn’t change its state because use this parameter for alarming when have value 1. It is evident that in this problem situations parameter state is never changed from 0 to 1 because Qaction1 didn’t add new row, but new time is written in “stop” column. Qaction1 overwrite old value in “stop” column and this is proved that value of the trigger parameter was “0” in moment when Qaction1 was executed.
What can be cause for triggering Qaction1? Is it normal that Qaction1 is triggered from time to time, so must store last trigger parameter value and check was it changed?
Have Dataminer Server version: 10.1.0.0-11319.
Thank you!
Hello Jurica,
How is the trigger parameter getting updated? From what you described it sounds like the parameter is not polled from a device but instead, the protocol is updating the value of the parameter e.g. another QAction is setting the value to zero.
Performing internal sets to parameters will make QActions to run, even if the value is the same.
If that's the case, I would consider adding an extra condition before setting the parameter to the same value.
Dear Sebastian,
The trigger parameter is one bit from MODBUS byte. MODBUS communication get byte from which we take up bit. There is no extra Qactions which use this trigger parameter.
Today I discover that Dataminer was restarted in that time, so suppose the Qaction1 was invoked after restart. The trigger parameter has property save=”true” but this didn’t help.
It seems that will must add an extra condition like you suggest.
Thank you!