[BUG-7038] OPC path inconsistently working in UDT definition

In my UDT instances, some tags in the definition show null in the OpcItmePath while others are not. They are all configured the same way

All the parameters being passed are valid OPC paths

This tag is showing null in the OPC path

This tag is working correctly

Can someone please tell me how to fix this please?

On the OPC Item Path have you configured them to be expressions that link to your parameters.
It looks like the first has no path and has errored while the second you’ve selected the OPC path correctly.

Can you show the expression in UDT

Okay, I figured out what the issue was, If the parameter name contains a - then the value does not get passed through. This has to be a bug that needs to be fixed.

No, not a bug. Or rather the bug is that Ignition allowed you to use a hyphen in a parameter name.

3 Likes

Maybe the documentation can be updated to include a list of characters that should be avoided when creating parameter names.

Just make your parameter names (and any other names) in Ignition follow the typical rule for variable names in programming and you will be fine. (Alphanumeric plus underscore, but no leading decimal digit.)