I have 3 small gateway timer scripts on 300ms fixed delay running on dedicated threads. Their basic function is to keep int value alive, so plcs knows communication is working as intented. Two times now one of these scripts has stopped running after saving some small changes to project. They were working fine for months. After first one I added logger to exception, but it didn´t return anything.
It seems to run at least once, but then last execution time starts increasing
Example about what im running.
There is also several other timer scripts, but it seems to only affect this one.
server = ‘server’
path = ‘path’
oldQualifiedValue = system.opc.readValue(server, path)
newValue = oldQualifiedValue.getValue() + 1
if newValue > 10000:
newValue = 0
system.opc.writeValue(server, path, newValue)