@kevlut We see things like that wireshark sometimes too.. did you figure out what's going on?
General question - is there a way (with example?) to get a slave to respond to additional function codes without modifying the library? In one configuration, a function code 20 gets sent to it as a request and it exceptions and terminates the tread pool - documented in the code that this is what it should do, so we've configured the other device to not send function code 20, but sometimes it gets an old config and sends the function code, which will cause a nuisance. I'd prefer to make the slave not terminate in this case if that's possible - without hacking at the library :)
oh lol.. didn't notice the activity stream with function code 20 added! nvm on my question then as I'll try that out when it is ready.
The parameter is incorrect.
I can not understand what the problem is
Problem was solved.
Hi All, Do any of you know of some guides to compiling NModbus4 on Mono on Linux? I can see from the build output of Travis that the mono version is compiling on Ubuntu. But I keep getting errors when I try to compile the solution.
I download "NModbus4-portable-3.0.zip", unzip and open by VS2015.; then I use "Package Manager Console" install "NModbus4", it is sucessfully installed. But the compiler still fails. Question: where is the "NModbus4" installed?
Hi Guys, I'm trying to understand if the NModbus4-portable-3.0 release can run on windos 10 iot core. I saw some references to not .core framework parts. Moreover i would like understand if all the projects are need to be used in a production enviroment or I can delete Nmodbus4-UnitTests. Thanks for any support.
Hi, I have setup a slave using the NModbus4 library. A master is able to read/write to the slave. I am looking for some direction on how to intercept requests, so i can control access to specific register addresses?
When a master is trying to read a specific register I want to return 0 instead of its actual value
When a master is trying to write to a specific register, I want to return -1 indicating he cannot write to it
Hi guys! When exchanging data, I get the following error: Hi Guys! Response was not of expected transaction ID. Expected 49719, received 49718. Has anyone encountered a similar problem? Is there a way to synchronize transactions in the library?
I added support for this a long time ago (NModbus4/NModbus4#41). You need to enable the feature though - it's off by default. This happens if your device replies later than the nmodbus timeout for watching for the reply - the next receive gets the missed reply.
@richardlawley Thank you very much for the quick response. I tried it, it works fine.
Hi all,I noticed that nmobus4 master doesn't support broadcasting,is that ture?
master.WriteSingleRegister(0, 0, 0x0043); still cause a receiving timeout exception
hi all, does anyone have experiences to run the library at the dotnet core framework?? Many thanks
can you explain me how you set up modbus ?
Does anyone know whether it is possible to share a DataStore between a ModbusTCPSlave and ModbusSerialSlave? It looks like it should be feasible, but wanted to see if anyone has experience doing that.