We have some gateway tag change scripts that are periodically missing tag change events. In an attempt to mitigate stale tag values we are using the following method to trigger data processing in the gateway script. We use an integer for the trigger for the script, plc sets it to value 1 when data is available, gateway change script then changes it to 3, plc then immediately changes it to 7. Once gateway tag change script sees a 7 if processes the data as needed. We are seeing some sporadic but fairly repeatable instances where data change is missed. Is there a better way?