Good Morning
I have a question/problem with changing the IP adress of the driver when starting an application. I am using 3.99d and EtehrnetIPforCLXcom.
To be able to have one application for different machines, I read a setup file and try to change the IP of the driver in the form.open routine.
I am using this code in a called subroutine.
Private Sub Set_System(ByVal ID As String, Val As String) 'Use incoming values to set the system.
If ID = UCase("IP1") Then 'Set SystemIP for Driver
IP1 = Val 'Public String to use this IP on other pages too.
EthernetIPforCLXCom2.IPAddress = IP1 'Reconfigure Driver.
As soon as I have the last shown line active, the driver won't connect to my CLX. Even overwriting the .IPaddress with its preconfigured value will stop the driver from working. I checked the string that is writen to the diver, and it is fine.
Is there something like a driver/communication restart I have to add, or is this the wrong way of doing things anyway?
Best Regards
Thomas