Search code examples
opcopc-uamilo

Connection refused by PLC when connecting with Milo OPC Client


I tried to clean up the ReadExample mini project for client repository from Milo OPC, and for endpoint i put the PLC ip address.

But there was no port in the plc configuration that i could configure. When i do not specify a port, it says i cannot open a port to it. If i specify a port, it says connection refused by the machine. Is it possible to connect the client to the plc? or was i just hoping?

Also, i did remove the server part from the example, as stated in some other questions here about this subject.


Solution

  • Does the PLC have an embedded OPC UA server? Have you tried the default port 4840 yet?