AdvancedHMI Software

General Category => Open Discussion => Topic started by: Martinus on August 06, 2018, 09:49:49 AM

Title: Modbus propertie/settings
Post by: Martinus on August 06, 2018, 09:49:49 AM
Hi to you al,

Maybe it's a stupid question but i searched the forum for it and i can seem to find it.

I'm using the modbus rtu connection. this is al working just fine in combination with my Schneider servo drive :-) .

Is it possible to make/use dropdown textbox so we can do de settings/properties when the aplication is running.
and not that is starting up right away.

So baudrate, commport, speed......

Hope you understand my question

greets
Martinus
Title: Re: Modbus propertie/settings
Post by: Archie on August 06, 2018, 10:43:43 AM
- From the Toolbox, add a ComboBox to the form
- Set the items property to the baud rate option you want to give
- Double click the ComboBox to get back to the code
- Add this code:

        ModbusRTUCom1.BaudRate = ComboBox1.SelectedItem

Title: Re: Modbus propertie/settings
Post by: Martinus on August 07, 2018, 03:40:03 AM
Good morning Archie,

That did the trick.   thank you for your fast reply.

Greets

Martinus