Reading UDT Parameter Value?

You will need to read and parse the UDT instance’s extended properties.

# The name of the parameter to be read
paramName = "MyUDTParam"

path = "%s.ExtendedProperties" % myUDTInstanceFullPath
props = system.tag.read(path)
if props.value is not None:
		for prop in props.value:
			if prop.getProperty().name.lower() == paramName.lower():
				print prop.value
				break
3 Likes