Author Topic: how to deal withe many MODBUS devices on the same Com Port ?  (Read 3792 times)

neptun2002

  • Newbie
  • *
  • Posts: 26
    • View Profile
how to deal withe many MODBUS devices on the same Com Port ?
« on: September 22, 2014, 08:57:11 AM »
Dear Archie I am trying to read tow MODBUS devices one with Station ID=100 the other one   with Station ID=101

Connected to Rs485 Bus and connected to the PC Via USB to Rs485 Converter to com5

how can I read each device with a different Station ID ??

I tried to add another ModbusRTUCom2 Driver on the same com5 with a different Station ID But always I can read the one connected to ModbusRTUCom1

it seems like the com is open and not closed after the reading / writing so the second device never get any packet is there any thing wrong that I did ??


what is your suggestion to solve this ?


Thank you so much
« Last Edit: September 22, 2014, 09:14:53 AM by neptun2002 »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: how to deal withe many MODBUS devices on the same Com Port ?
« Reply #1 on: September 22, 2014, 09:07:11 AM »
You are doing the right thing, but I never tested the driver in this scenario. I will have to try it to see if there is a bug that needs fixed.

pk

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: how to deal withe many MODBUS devices on the same Com Port ?
« Reply #2 on: December 21, 2022, 01:12:11 AM »
Hi

Any solution to read two modbus devices on the same com port?

Thanks

frank222

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: how to deal withe many MODBUS devices on the same Com Port ?
« Reply #3 on: September 26, 2023, 01:53:55 PM »

Hi Archie

Any solution to read two modbus devices on the same com port?

Thanks

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: how to deal withe many MODBUS devices on the same Com Port ?
« Reply #4 on: September 26, 2023, 03:07:23 PM »
Have you tried with the latest version 3.99y Beta ? I think using two drivers pointing to the same COM port that is an RS485 port should work.

tecnico_ably_it

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: how to deal withe many MODBUS devices on the same Com Port ?
« Reply #5 on: February 28, 2024, 08:14:01 AM »
Hi Archie,
I have tested the driver with two devices connected via a usb-Rs485 converter with polling time 100ms and time out 300;
the stable 3.99x version works correctly,
the new version (3.99xbeta4), on the other hand, always generates TimeOut errors on the controls.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: how to deal withe many MODBUS devices on the same Com Port ?
« Reply #6 on: February 28, 2024, 08:44:13 AM »
Hi Archie,
I have tested the driver with two devices connected via a usb-Rs485 converter with polling time 100ms and time out 300;
the stable 3.99x version works correctly,
the new version (3.99xbeta4), on the other hand, always generates TimeOut errors on the controls.
This is on the list to be looked into.