I am trying to calculate how many seconds a machine has been broken down in a gateway script. I have made the code increment a tag by 1 each second, but it is not working. Does anyone know why?
Thanks.
I am trying to calculate how many seconds a machine has been broken down in a gateway script. I have made the code increment a tag by 1 each second, but it is not working. Does anyone know why?
Thanks.
sleep()
in your scripts you know you're lost.system.tag.readBlocking
which accepts a list of tags.Instead:
now(1000) - the stop time tag value
.I am indeed lost, as I am not an avid programmer. Thank you for pointing me in the right direction, I will try this method.