public void ConnectToKepServer(string kepServerName, string groupName) { groupName += "."; //Needed to get the full path of the tagnames right. KepServerOpcTags = new KepServerOPCTags(groupName); OpcHelp = new OpcHelp(KepServerOpcTags); log.DebugFormat("Trying to connect to {0} group: {1}", kepServerName, groupName); if (!OpcHelp.Connect(kepServerName, 100)) { throw new IOException("Could not connect to OPC server"); } OpcHelp.OPCGetData.CreateAllReadTags(); }
/// <summary> /// Disconnect /// </summary> public void DisconnectFromKepServer() { OpcHelp.Disconnect(); OpcHelp = null; }
public List <valRes> getval(List <valReq> listReq) { return(OpcHelp.GetOpcVal(listReq)); }
public List <valRes> getValById(int id) { return(OpcHelp.GetValById(id)); }