Question related to an issue I’m trying to work through…
We have boolean OPC tags set to boolean PLC logic to go TRUE when quality test passes and another for the opposite of when the test fails.
To record when either pass or fail occurs, the boolean OPC tags have event scripts that start like below:
if currentValue.value == True:
code for recording to SQL database
Question: The boolean OPC tags change to TRUE for only about 1-2 seconds, so could the code for recording to SQL database potentially not complete due to internet speed or a backup in ignition execution since the currentValue.value no longer == TRUE?
This may be a simple answer, but my worry is that we are setting our self up for random ‘misses’ since the value change event script should run when the boolean OPC tag == TRUE anyway, without adding an if statement like above into the value change event script.
For context: We are experiencing random moments (sometimes over multiple hours) where many ‘misses’ occur.
Thanks!