西门子的是S7:connection_1[db10]类似的。
我要连wincc,格式是什么样的

解决方案 »

  1.   

    那你用的是什么格式,是不是不同的opc server有不同的Item格式,在哪儿能查到呢?反正wincc是找不到。kepware的itemid是什么格式的?能给个例子吗?谢谢了
      

  2.   

    群号:54256083
     有很多研究OPC的 
      

  3.   

    OPCSiemensDAAutomation.dll
    OPCAutomation;
    OpcRcw.Da;
    OpcRcw.Comm;
    连wincc,连KEPServerEX5.0,都不行,能建立Group,但不能建立Item,
    语句一执行就报错:异常来自HRESULT:0xC0040007

    用的是vs2005 C#
      

  4.   

    myGroup = myOPC.OPCGroups.Add("testGroupsIn");
    myOPCItem1 = myOPC.OPCGroups.Item("testGroupsIn").OPCItems.AddItem("testGroupsIn.K100", 1);
    第一句执行成功,第二句就不行,报错。我查过错误代码,说是
    OpcUnknownItemID 
    0xC0040007 
    The item ID is not defined in the server address space (on add or validate) or no longer exists in the server address space (for read or write).
    我就奇怪了,我要的是添加一个新的item,服务器上当然没有这个item了