Ejemplo n.º 1
0
        public void FindNode()
        {
            OpcClient client = new OpcClient(new Uri("opc.tcp://127.0.0.1:26543/Workstation.RobotServer"));

            if (client.Connect == OpcStatus.Connected)
            {
                INode root = client.RootNode;
                IEnumerable <INode> list   = client.ExploreFolder(root.Tag);
                IEnumerable <INode> server = client.ExploreFolder(list.ToList()[0].Tag);
                IEnumerable <INode> s      = client.ExploreFolder(server.ToList()[0].Tag);
            }
        }