2016-06-15 3 views
0

내 기본 시스템에서 클라이언트를 통해 서버로 문자열을 보내려고합니다. 나는 OPCModeler (통합 자동화)에서 모델을 만들었습니다. OPC Model in OPCModelerOPC UA 문자열을 서버에서 클라이언트로

이제 기본 시스템을 nodemanager에 연결하려면 다음 xml 코드를 사용하십시오. Int32의 변수는 모두 올 Y 른 것입니다. 문자열 BadNodeIdUnknown 오류가 발생합니다.

나는 누군가가

<UnderlyingSystem.Configuration 
xmlns="http://yourcompany.com/underlyingsystem" 
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> 
<GModel> 
<Name>GMaschine</Name> 
<Type>1</Type> 
<Properties> 
    <Name>actChannelNo</Name> 
    <DataType>i=6</DataType> 
    <Value>0</Value> 
    <Range>0:10000000</Range> 
</Properties> 
<Properties> 
    <Name>axisName</Name> 
    <DataType>i=12</DataType> 
    <Value>"0"</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>axisNo</Name> 
    <DataType>i=6</DataType> 
    <Value>0</Value> 
    <Range>0:10000000</Range> 
</Properties> 
<Properties> 
    <Name>axisType</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>cleaningProgramPath</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>connection</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>feed_value</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>guid</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>hardware_SN</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>hardwarePlatform</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>id</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>ipAddress</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>loadUnloadProgramPath</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>location</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>machineReady</Name> 
    <DataType>i=1</DataType> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>motionStatus</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>name</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>platformVersion</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>timezone</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
<Properties> 
    <Name>type</Name> 
    <DataType>i=12</DataType> 
    <Value>0</Value> 
    <Writeable>false</Writeable> 
</Properties> 
</GModel> 
</UnderlyingSystem.Configuration> 

답변

0

어쩌면 조금 라떼

안부 에게 나에게 S.Tek을 도울 수 있기를 바랍니다 있지만 향후 참조를 들어, nodeIds가 아니라 XML로 CSV 파일에 저장됩니다 파일.

xml에있는 각 노드에 대해 csv에 해당 노드가 있습니다. 시작하기 좋은 곳은 OPCU Foundation이며 여기에서 기본 모델을 볼 수 있습니다 : https://opcfoundation.org/UA/schemas/

관련 문제