Hello! Here is a problem I have been struggling with in the project I am implementing.
Basically I have two PLC’s at two separate IP addresses that have identical data in them. Ideally the project will read from one of them, then if it goes down it will switch to the other one and read from it.
My basic plan to implement this was to create a tag that specified the current PLC address. Then have a script change it to the secondary PLC address if the first one lost connection. Then I was going to make all my tags have a dynamic path like this: ns=1;s=[CurrentSite]10.MHR351 where CurrentSite was the tag that held the current PLC to read from.
However I cannot find a way to make a tag’s OPC item path indirect without using a UDT, and I don’t think it seems like a good idea to wrap my entire project’s tags up in a UDT.
Is there another way to implement this that i am missing. Thanks! -Josh