Author Topic: Modbus propertie/settings  (Read 1608 times)

Martinus

  • Newbie
  • *
  • Posts: 27
    • View Profile
Modbus propertie/settings
« 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Modbus propertie/settings
« Reply #1 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


Martinus

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Modbus propertie/settings
« Reply #2 on: August 07, 2018, 03:40:03 AM »
Good morning Archie,

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

Greets

Martinus