libnodave.net.cs not working with libnodave.net.dll
Hi,
I am trying to use libnodave for communicating with a PLC over PPI.
I added the libnodave.net.cs and libnodave.net.dll files to my project. The first thing that goes wrong is that throughout libnodave.net.cs, the dll file referenced is libnodave.dll and not libnodave.net.dll. After changing it to libnodave.net.dll, it gives me an an error saying that the entrypoint for libnodave.setPort() does not exist in libnodave.net.dll.
How are these supposed to work together?
Hi @usmanmehmoodSSP,
since you are using C# you will need to add (copy) into your project these 3 files:
- libnodave.dll
- libnodave.net.dll
- libnodave.net.css

Remember to set the "Copy to output folder" property to "Preserve newest" for each dll. You also have to compile your project to x86.
This should be enough, let me know how it goes.
Still gave the same error. I have shifted to another library, Snap7, which works very well with C#.
Snap7 can communicate only via Ethernet cable, so no PPI protocol unless you have a Ethernet communication module (not sure what plc you're using though). Can you share the part of your code which is not working? Maybe I can help