06-10-2023 07:43 PM
Hi,
I am stuck on a network issue, not a expert in this field by any measure. I'm using an industrial PC with dual Ethernet running window 10. I have developed a labVIEW application that use Modbus TCP to communicate with another system. This application is the master.
Of the two Ethernet network connections on the PC one is connected to the internet, the other to the system being controlled. The 'TCP Open Connection Function' used by the TCP Master.lvclass:Initialize Master.vi, only allows the IP address of the slave to be specified. There is no where to specify which local IP address to use, only the local port. I have only been able to connect using the first network, not the second.
How do I specify which network to look for the slave on?
This discussion suggests that routing can be setup locally to direct on which address the TCP connection is made, however this becomes another hardware configuration requirement that needs to change depending on the remote system IP. Wondering if there is some way of doing this programmatically?
Thanks,
John
06-10-2023 07:56 PM