BiancoRoyal / node-red-contrib-iiot-opcua

deprecated - very new developed by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-iiot-opcua
BSD 3-Clause "New" or "Revised" License
34 stars 9 forks source link

Variables from generated XML file of FreeOPCUA/opcua-modeler do not have set value types #47

Closed w4tsn closed 6 years ago

w4tsn commented 6 years ago

I'm submitting a ... (check one with "x")

Problem

screenshot from 2018-04-01 16-53-38

Expected behavior The XML file is interpreted correctly and provides the variables with read/write-able Value components.

Minimal reproduction of the problem with instructions

  1. Download the FreeOpcUa/opcua-modeler
  2. use the modeler to create a TestObject node and under that a variable TestDouble of type Double and value 0.0
  3. use the saved XML-file in a fresh node-opcua server node under XML-Sets
  4. download a client to verify like FreeOpcUa/opcua-client-gui)
  5. use a client to connect to the server and open the TestDouble variable
  6. try to read/write values to the TestDouble-variable

Following already created and used XML-contents (skip step 1-2):

<?xml version='1.0' encoding='utf-8'?>
<UANodeSet xmlns="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd" xmlns:uax="http://opcfoundation.org/UA/2008/02/Types.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <NamespaceUris />
  <Aliases>
    <Alias Alias="Double">i=11</Alias>
    <Alias Alias="Organizes">i=35</Alias>
    <Alias Alias="HasTypeDefinition">i=40</Alias>
    <Alias Alias="HasComponent">i=47</Alias>
  </Aliases>
  <UAObject BrowseName="0:TestObject" NodeId="i=20001" ParentNodeId="i=85">
    <DisplayName>TestObject</DisplayName>
    <Description>The base type for all object nodes.</Description>
    <References>
      <Reference IsForward="false" ReferenceType="Organizes">i=85</Reference>
      <Reference ReferenceType="HasTypeDefinition">i=58</Reference>
      <Reference ReferenceType="HasComponent">i=20002</Reference>
    </References>
  </UAObject>
  <UAVariable BrowseName="0:TestDouble" DataType="Double" NodeId="i=20002" ParentNodeId="i=20001">
    <DisplayName>TestDouble</DisplayName>
    <Description>TestDouble</Description>
    <References>
      <Reference IsForward="false" ReferenceType="HasComponent">i=20001</Reference>
      <Reference ReferenceType="HasTypeDefinition">i=63</Reference>
    </References>
    <Value>
      <uax:Double>0.0</uax:Double>
    </Value>
  </UAVariable>
</UANodeSet>

Your Environment

Please tell us about your environment:

biancode commented 6 years ago

feel free to contribute and send your pull request