In the original file (MyInstances.xml) file I have an extension object :
<Variable SymbolicName="ns239:MaxPollingTime" TypeDefinition="ns237:AnalogItemType" DataType="ns237:Double" AccessLevel="ReadWrite" Historizing="true">
<DisplayName>Max Polling Time (in milliseconds)</DisplayName>
<Children>
<Property SymbolicName="ns237:EngineeringUnits" ModellingRule="Mandatory" DataType="ns237:EUInformation" AccessLevel="None">
<DefaultValue>
<ExtensionObject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">
<TypeId>
<Identifier>i=888</Identifier>
</TypeId>
<Body>
<EUInformation xmlns="">
<NamespaceUri>http://www.nist.gov</NamespaceUri>
<UnitId>0</UnitId>
<DisplayName>
<Locale p5:nil="true" xmlns:p5="http://www.w3.org/2001/XMLSchema-instance" />
<Text>ms</Text>
</DisplayName>
<Description>
<Locale p5:nil="true" xmlns:p5="http://www.w3.org/2001/XMLSchema-instance" />
<Text>milliseconds</Text>
</Description>
</EUInformation>
</Body>
</ExtensionObject>
</DefaultValue>
</Property>
</Children>
<DefaultValue>
<Double xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">30000</Double>
</DefaultValue>
</Variable>
When I generate the file, I have an issue in the Text :
<UAVariable NodeId="ns=1;i=319" BrowseName="EngineeringUnits" DataType="i=887">
<DisplayName>EngineeringUnits</DisplayName>
<References>
<Reference ReferenceType="HasTypeDefinition">i=68</Reference>
<Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=314</Reference>
</References>
<Value>
<ExtensionObject xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">
<TypeId>
<Identifier>i=888</Identifier>
</TypeId>
<Body>
<EUInformation>
<NamespaceUri p4:nil="true" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance" />
<UnitId>0</UnitId>
<DisplayName>
<Locale p5:nil="true" xmlns:p5="http://www.w3.org/2001/XMLSchema-instance" />
<Text p5:nil="true" xmlns:p5="http://www.w3.org/2001/XMLSchema-instance" />
</DisplayName>
<Description>
<Locale p5:nil="true" xmlns:p5="http://www.w3.org/2001/XMLSchema-instance" />
<Text p5:nil="true" xmlns:p5="http://www.w3.org/2001/XMLSchema-instance" />
</Description>
</EUInformation>
</Body>
</ExtensionObject>
</Value>
</UAVariable>
It should be :
<UAVariable NodeId="ns=1;i=319" BrowseName="EngineeringUnits" DataType="i=887">
<DisplayName>EngineeringUnits</DisplayName>
<References>
<Reference ReferenceType="HasTypeDefinition">i=68</Reference>
<Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=314</Reference>
</References>
<Value>
<ExtensionObject xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">
<TypeId>
<Identifier>i=888</Identifier>
</TypeId>
<Body>
<EUInformation>
<NamespaceUri p4:nil="true" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance" />
<UnitId>0</UnitId>
<DisplayName>
<Locale p5:nil="true" xmlns:p5="http://www.w3.org/2001/XMLSchema-instance" />
<Text>ms</Text>
</DisplayName>
<Description>
<Locale p5:nil="true" xmlns:p5="http://www.w3.org/2001/XMLSchema-instance" />
<Text>milliseconds</Text>
</Description>
</EUInformation>
</Body>
</ExtensionObject>
</Value>
</UAVariable> |