I am trying to create a UDT to show input status of a digital input card. I want to show not only the state of the digital input but also the description of the tag.
That would be a game changer if your driver supported them. While I'm assuming those are read only, it would provide a way to have consistent documentation between the PLC and HMI.
I haven't pushed hard because there's no easy way to expose them in the UA model. "Description" is an attribute already given over to browse text. It would have to be its own UA Node.
Yes, that's definitely the right approach for now.
I think in the future I should just get around to implementing generic system.opcua.read and system.opcua.write scripting functions that let you read/write any OPC UA attribute.
With those in place, if you want to map attributes to tag props, it's possible and you can figure out how/when to sync however works best for your project.
Agreed. The closest I’ve come to reading ‘live’ values of extended properties is via use of Logix SDK. Latest library permits uploading an entire project via Python, then saving as L5X, and parsing accordingly (newer firmwares only).
Ability to read extended props via opc.readValue would be handy!
Seems a little over my head...but if I understand correctly once you have the OPC UA server set up with the plc you can create a script and use system.opcua.read function to read in the description?