Is it possible to run an Modbus TCP connection to a device that is offsite on a different network via a dynamic DNS like for example DuckDNS?
Update the IP address here:
Resolve the hostname here:
thank you for your reply, i already knew about the first one but i can't find the second one, where do i need to edit those variables?
In Library Manager, add the Net Base Services library.
In your program declare a variable of type NBS.ResolveHostname
Call this instance to resolve the hostname.
thank you for your reply, I'm still not having any luck, could you make an example?
instResolveHostname : NBS.ResolveHostname;
myIPInterface : NBS.IIPAddress := myIP;
udiTimeOut:= 10_000_000, //10sec timeout
TheIPYouAreLookingFor := myIP._udiIPAddress;
Log in to post a comment.