11/07/2019
How to give default values for variable nodes with complex data types. For example, how to give a default value for a property of Range type, where it has two values, one for low and one for high. I tried the following, but it doesn’t work with the model compiler.
<Property SymbolicName=”mymodel:EURange” TypeDefinition=”ua:PropertyType” DataType=”ua:Range” ValueRank=”Scalar”>
<DefaultValue>
<uax:Range>
<uax:Low>0</uax:Low>
<uax:High>60</uax:High>
</uax:Range>
</DefaultValue>
</Property>
05/30/2017
You need to add XML encoded structure values. e.g:
<opc:Property SymbolicName=”EngineeringUnits” DataType=”EUInformation” ModellingRule=”Mandatory”>
<opc:DefaultValue>
<uax:ExtensionObject>
<uax:TypeId>
<uax:Identifier>i=888</uax:Identifier>
</uax:TypeId>
<uax:Body>
<uax:EUInformation>
<uax:NamespaceUri>http://www.opcfoundation.org/U…..ri>
<uax:UnitId>4337968</uax:UnitId>
<uax:DisplayName>
<uax:Locale>en</uax:Locale>
<uax:Text>bit/s</uax:Text>
</uax:DisplayName>
<uax:Description>
<uax:Locale>en</uax:Locale>
<uax:Text>bit per second</uax:Text>
</uax:Description>
</uax:EUInformation>
</uax:Body>
</uax:ExtensionObject>
</opc:DefaultValue>
</opc:Property>
1 Guest(s)