private Opc.Da.Subscription subscription = null; //定义组对象 public COpcServerCOM() { m_Discovery = new OpcCom.ServerEnumerator(); }
/// <summary> /// OPC访问数据类构造函数 /// </summary> public COPCAccessTimer() { m_discovery = new OpcCom.ServerEnumerator(); }
/// <summary> /// OPC访问数据类构造函数 /// </summary> public COPCAccess(int rate) { m_discovery = new OpcCom.ServerEnumerator(); m_updateRate = rate; }
/// <summary> /// OPC访问数据类构造函数 /// </summary> public COPCAccess(string ipOrHostName, int rate) { m_discovery = new OpcCom.ServerEnumerator(); m_ipOrHostName = ipOrHostName; m_updateRate = rate; }
/// <summary> /// OPC访问数据类构造函数 /// </summary> public COPCAccess(string ipOrHostName) { m_discovery = new OpcCom.ServerEnumerator(); m_ipOrHostName = ipOrHostName; }