Parameter binding with replace

I am using ignition to connect to a Kepware OPC server that have an "ISA95" model plant.


The OPC tag path uses '.' for every hierarchy level

The tag browser from Ignition follows the same hierarchy and I would like to use the parameter PathToTag to bind the OPC Item Path value. However, the parameter uses '' in the hierarchy levels.
Is there any way i can replace the '' with '.'
nsu=KEPServerEX;s=WinCC.PHARMAPCS7OS.{{PathToTag}.replace('\\', '.')}/{TagName}/I.{ProcessUnit}/{TagNamePLC}/I_PV_Out#Value

Thank you!

I am not following the question, but it sounds like you want to get the OPC item path for a tag given the Ignition tag path?

You can get it via an indirect tag binding {1}.OpcItemPath (that may not be syntactically correct).
Just drag/drop the OpcItemPath for a tag onto a binding and the open up the binding properties and change it to indirect.

1 Like