Changing OPC tag to memory tag and vice versa dynamically in run-time

Hello
How I can change OPC tag to memory tag dynamically in run-time?
I need this because I want to define a simulation mode in project so by changing this mode to all tag update by a script that simulate process behavior and write simulate value to tags. this needs disabling tag update data from OPC UA server and after switch back from memory to OPC tag the OPC item data data remain the same.
Making OPC tag Item path empty and write value to to it is NOT working and value is always null.
Using sim driver also not a good idea because I have around 1500 tags.
I want a method to disable temporally read from OPC and write value by script.

Thanks.
Nader

1 Like