Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 20 23:19
    linbo690 opened #185
  • Apr 14 04:31
    Hoan96 synchronize #184
  • Mar 13 07:55
    Hoan96 synchronize #184
  • Mar 13 07:44
    Hoan96 synchronize #184
  • Mar 12 04:39
    Hoan96 opened #184
  • Jan 04 16:35
    MPapst commented #150
  • Jan 04 16:32
    ChangeTheCode commented #150
  • Jan 04 15:46
    MPapst commented #150
  • Jan 04 14:55
    ChangeTheCode commented #150
  • Jan 04 14:33
    MPapst commented #150
  • Jan 04 14:24
    ChangeTheCode commented #150
  • Dec 07 2020 09:14
    pvakharwala commented #183
  • Dec 07 2020 09:08
    Fonta88 commented #183
  • Dec 05 2020 16:02
    pvakharwala commented #183
  • Dec 05 2020 16:01
    pvakharwala commented #182
  • Dec 03 2020 11:47
    Fonta88 commented #183
  • Oct 14 2020 14:13
    stefurios edited #183
  • Oct 14 2020 14:12
    stefurios edited #183
  • Oct 14 2020 14:11
    stefurios edited #183
  • Oct 14 2020 14:11
    stefurios opened #183
Richard Lawley
@richardlawley
@kevlut, this behaviour occurs if your receive timeout is shorter than the timeout on the sender - your first request appears to timeout, but the reply is still waiting in the queue. On the second request, you receive the response to the first. I ran a private fork because of this situation for years, I put this enhancement into NModbus4 when it started up. See NModbus4/NModbus4#41 for details.
Kevin Luty
@kevlut
beautiful
do you recommend using SlaveBusyUsesRetryCount?
Richard Lawley
@richardlawley
Yes - that's another one I added because it caused me problems in the original fork.
Kevin Luty
@kevlut
@richardlawley so i get a bunch of, odd behavior, with the connected modbus tcp/ip device, are you familiar with wireshark and want to lend a helping hand? :D
Kevin Luty
@kevlut
blob
looks like a timeout occurs, then i bombard it, then it returns exception code, then it starts replying, then gets out of order again... then the connection just... closes/disconnects
Kevin Luty
@kevlut
.6: 11320000001b01031805dc0000000000030000000002b100000000000000000022
.182: 1133000000060103003f000c
.6: 11330000001b01031805dc0000000000030000000002b100000000000000000022
.182: 1134000000060103003f000c
.182: 1135000000060103003f000c
.182: 1136000000060103003f000c
.182: 1137000000060103003f000c1138000000060103003f000c
.6: 113600000003018306
.182: 1139000000060103003f000c
.6: 11370000000301830611380000000301830611340000001b01031805dc0000000000030000000002b10000000000000000002211350000001b01031805dc0000000000030000000002b100000000000000000022
.6: 11390000001b01031805dc0000000000030000000002b100000000000000000022
this is over wifi
Ghost
@ghost~561e7019d33f749381a9572c
@kevlut We see things like that wireshark sometimes too.. did you figure out what's going on?
Ghost
@ghost~561e7019d33f749381a9572c
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.
Gritsenko Sergey
@GritsenkoSD
Hello!
Снимок.PNG
The parameter is incorrect.
I can not understand what the problem is
Gritsenko Sergey
@GritsenkoSD
Problem was solved.
Craig
@cragdor
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.
aneek231
@aneek231
@aneek231
Hey guys, Can you please tell me which ModbusMaster library supports ESP8266.
I have used https://github.com/4-20ma/ModbusMaster and during compilation it says "This library only supports boards with an AVR or SAM processor. Please open an issue at https://github.com/4-20ma/ModbusMaster/issues and indicate which processor/platform you're using.""
Alexander Winter
@WinterGuardian
Hi ?
SamuelZXP
@SamuelZXP
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?
SamuelZXP
@SamuelZXP
When I open the solution, the output have errors as below: An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='dotnet-test-xunit'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='OpenCover'
Warning: FindPackagesById: Moq
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='Moq'
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='System.Diagnostics.TraceSource'
Warning: FindPackagesById: dotnet-test-xunit
An error occurred while sending the request.
GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='dotnet-test-xunit'

GET https://api.nuget.org/v3/index.jsonFindPackagesById()?id='xunit'

MikeOnTheWork
@MikeOnTheWork
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.
Sujeeth
@sujeethk

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?

Example:

  1. When a master is trying to read a specific register I want to return 0 instead of its actual value
  2. When a master is trying to write to a specific register, I want to return -1 indicating he cannot write to it
AlexeyTipunin
@AlexeyTipunin
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?
Richard Lawley
@richardlawley
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.
AlexeyTipunin
@AlexeyTipunin
@richardlawley Thank you very much for the quick response. I tried it, it works fine.
iamwho
@iamyongan_twitter
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
duhtmep
@duhtmep
hi all, does anyone have experiences to run the library at the dotnet core framework?? Many thanks
zengxiding
@zengxiding
hello
jaygeet
@jaygeet
can you explain me how you set up modbus ?
Brian Gallaway
@greatawesome
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.
Brian Gallaway
@greatawesome
I just tried it. Works fine.