Hi,
Using Ignition 8.03,
Connected with a Siemens S71500 OPCUA Server.
When I download PLC Software into the PLC, the opcua server get rebooted.
Connection and tags take aprox 20 seconds to get available to ignition.
I have timer script running in which I basically do 2 things:
-Read few tags with system.opc.read : operation take something like 3/4 sec
-some code
-Write with system.opc.write operation take something like 5 sec
I have 2 timer script like the above, running every 15 sec, with fixed delay, shared thread,
then a third one just to write a watchdog every 500 ms .
( I know I should open new topic for this, if I put my 2 task on fixed delay, dedicated as suggested by the manual, the status page from the ignition server is not accessible any more, so I guess it is not a good idea, but I would like to understand why )
When I do the opc read, if I get any bad quality on tags, I can abort the script and wait next iteration, not a big deal.
I can not do the same With the Write process. When it is started I can not manage to interrupt it, so I ended up place that part inside a while loop, checking if all tags return a good status, otherwise repeat as it need (by declaring the task as fixed delay it should not be a problem if I get this right)
Is there a way to make this while loop disappear, and manage this situation in a better way then the one I did?
When I lost connection I see lots of error for the watchdog tag, is there a way to check if the opcua server is actually connected before even try to write against it?
Thanks for your time,
I should split my topic I know, but i don’t have time now, hope someone could help me