Menu

Connecting to multiple slaves

Anonymous
2020-04-07
2021-01-08
  • Anonymous

    Anonymous - 2020-04-07

    Hi, I'm trying out the library in C# for my Modbus RTU application. I'm trying to write single registers to multiple clients. They are all on the RS485 bus, but with different addresses. In the example code I can set the address of the client by using .UnitIdentifier = <id> before connecting to the COM port. Is there a way to include the address parameter in the .WriteSingleRegister()? So that I can communicate with multiple slaves on the same COMport? Thanks!</id>

     
    • Rossmann Engineering

      The correct way would be to change the Property "UnitIdentifier" before every request, according to the slave you want to read/write data.

       
  • Anonymous

    Anonymous - 2021-01-04

    Getting this error " Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
    When trying to read input registers from multiple modbus device at the scan rate of every one second.

     
    • Rossmann Engineering

      please share some code and make sure that your device is reachable and responding properly.

       
  • Anonymous

    Anonymous - 2022-03-10
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2022-11-22
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.