Hi everyone!
I’m working on a project wich consist of developping a Visual Studio application that will be connected to a PLC throught an Ignition OPC Server.
First I just created a “Simulators Dairy Demo Simulator” in Ignition and I’m trying right know to connect my little C# Client on it and…I’m really struggling to do that.
Here is my code which is trying to get a connection to Ignition:
Opc.URL url;
[color=#FF0000]url= new Opc.URL("????"); [/color] //I don't know what URL I have to put here...
Opc.Da.Server server = null;
OpcCom.Factory fact = new OpcCom.Factory();
server = new Opc.Da.Server(fact, null);
// connection
try
{
[color=#FF0000]server.Connect(url, new Opc.ConnectData(new System.Net.NetworkCredential()));[/color]
_connection = true;
}
catch(Exception e)
{
Console.WriteLine("{0} Exception caught.", e.Source);
_connection = false;
}
Basically I have no idea on what url I have to put to being connected to the Ignition OPC server…
I will be very greateful for help !
Thanks !
Totof