OPC Item Path Binding Issue

Trying the write to the OPC item path through the script console using the following script

system.tag.write("a/b/c/d/IO-01/SLOT1/ch0.OpcItemPath","{PLCPath}DB500,X0.0")

The path does not bind when written through the console. The tag is in error.

However when the OPC item path is manually edited, binding is successful.

Need to bind a lot of tags so thought this was a better way rather than doing is manually.

Appreciate any help in this regard.

Cheers,

Sameer

The curly braces are only interpreted as substitutions when entered into the tag editor by a human. If you want to set bindings programmatically, you need to construct a "bindType" object and assign with system.tag.configure(). Review a properly bound tag's JSON for reference on constructing a proper binding object.