Why you don’t pass valid URL to new OpcCom.Da20.Server(url, server)?
Becase I do not what is a valid URL. Could be “http://localhost/Scada/”? I really do not know.
Interface is just a declaration. The runtime executes the method of an object that was actually created.
I am trying to create a class derived from IOPCSyncIO interface. Implementing Something like this:
“private IOPCSyncIO campo;
public IdentifiedResult Write(ItemValue items)
if (this.campo == null)
throw new NotConnectedException();
without return, because IOPCSyncIO.write is void method
but give me a NullReferenceException
I am trying to create a instance of a interface, but that is not possible.
I tried this Opc.URL url = new Opc.URL(“”); Compile without error but appers: error sending command: remote server is not currently connected. There is no exception in the contructor with this meaning. Where do you think is the exception?. I probe it with “localhost” etc. Still the same error
I am using Kepware software for middleware with PLC Omron. The kepware implement the OPC server.
I already can communicate and I read the memory positions of Plc.
Now, I want write in this positions of Plc, but I don’t understand how I can doing.
Can you help me?