Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Disconnect
 /// </summary>
 public void DisconnectFromKepServer()
 {
     OpcHelp.Disconnect();
     OpcHelp = null;
 }
Ejemplo n.º 3
0
 public List <valRes> getval(List <valReq> listReq)
 {
     return(OpcHelp.GetOpcVal(listReq));
 }
Ejemplo n.º 4
0
 public List <valRes> getValById(int id)
 {
     return(OpcHelp.GetValById(id));
 }