Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataType of i=17292 in Opc.Ua.NodeSet2.xml #12

Closed
basyskom-jvoe opened this issue Jul 19, 2018 · 1 comment
Closed

DataType of i=17292 in Opc.Ua.NodeSet2.xml #12

basyskom-jvoe opened this issue Jul 19, 2018 · 1 comment

Comments

@basyskom-jvoe
Copy link

The node with the id i=17292 has the "String" DataType and a HasTypeDefinition reference to i=16309.

<UAVariable NodeId="i=17292" BrowseName="TransportProfileUri" ParentNodeId="i=14417" DataType="String">
    <DisplayName>TransportProfileUri</DisplayName>
    <References>
      <Reference ReferenceType="HasProperty">i=17706</Reference>
      <Reference ReferenceType="HasTypeDefinition">i=16309</Reference>
      <Reference ReferenceType="HasModellingRule">i=78</Reference>
      <Reference ReferenceType="HasComponent" IsForward="false">i=14417</Reference>
    </References>
  </UAVariable>

The DataType of i=16309 is i=862

  <UAVariableType NodeId="i=16309" BrowseName="SelectionListType" DataType="i=862" ValueRank="-2">
    <DisplayName>SelectionListType</DisplayName>
    <References>
      <Reference ReferenceType="HasProperty">i=17632</Reference>
      <Reference ReferenceType="HasProperty">i=17633</Reference>
      <Reference ReferenceType="HasProperty">i=16312</Reference>
      <Reference ReferenceType="HasSubtype" IsForward="false">i=63</Reference>
    </References>
  </UAVariableType>

Which is a structured type.

  <UADataType NodeId="i=862" BrowseName="ServerStatusDataType">
    <DisplayName>ServerStatusDataType</DisplayName>
    <References>
      <Reference ReferenceType="HasSubtype" IsForward="false">i=22</Reference>
    </References>
    <Definition Name="ServerStatusDataType">
      <Field Name="StartTime" DataType="i=294" />
      <Field Name="CurrentTime" DataType="i=294" />
      <Field Name="State" DataType="i=852" />
      <Field Name="BuildInfo" DataType="i=338" />
      <Field Name="SecondsTillShutdown" DataType="i=7" />
      <Field Name="ShutdownReason" DataType="i=21" />
    </Definition>
  </UADataType>

Is this an error in the schema file or is an instance permitted to override the DataType attribute of its type definition node?

@opcfoundation-org
Copy link
Contributor

Instances can override with a subtype of the datatype in the type definition.
What you report here seems to be an error which has already been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants