Page 1 of 1

Modbus Device connection

PostPosted: Thu Jun 14, 2018 8:00 pm
by julien
Hi,

I am using the new modbus device fonction (WD 6.0.4) to interact with an ADAM 6066.

When the Widget is loading/opening the modbus device isn't connect automaticly.
I have to manually re-connect the device each time I open WD.
Is their a script that we can run at startup to make the connection ?

Thanks & Regards

Julien

Re: Modbus Device connection

PostPosted: Fri Jun 15, 2018 1:30 pm
by Dennis Kuypers
Hello Julien,

If you named your device for example "MyModbus", then you can simply do MyModbus.Connect() (or Reconnect, which is the same as a Disconnect followed by a Connect)

Regards
Dennis

Re: Modbus Device connection

PostPosted: Mon Jun 18, 2018 11:48 pm
by julien
Working thanks !