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>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The correct way would be to change the Property "UnitIdentifier" before every request, according to the slave you want to read/write data.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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>
The correct way would be to change the Property "UnitIdentifier" before every request, according to the slave you want to read/write data.
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.
please share some code and make sure that your device is reachable and responding properly.