Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Os1r1s110
    @os1r1s110
    Could someone point me the place to find API documentation about Nmodbus4?
    Also, I'd like to know if master functions already implement necessary waiting times between commands for Modbus RTU or if we have to manually insert sleeps in the code for it to function properly
    it's original NModbus documentation
    but it doesn't contain additions that was made in NModbus4 (more details in change log)
    Also, I'd like to know if master functions already implement necessary waiting times between commands for Modbus RTU or if we have to manually insert sleeps in the code for it to function properly
    seems WaitToRetryMilliseconds property of ModbusTransportis what you need https://github.com/Maxwe11/NModbus4/blob/master/NModbus4/IO/ModbusTransport.cs#L57
    Os1r1s110
    @os1r1s110
    The function you pointed me seems to operate when slave responds as being busy, but as of what I understood from RTU datasheets, if the wait between 2 frames is not long enough, the slave will just assume it as being another part of the same frame isn't it?
    Dmitry Turin
    @Maxwe11
    In that case you should manually insert sleeps
    Os1r1s110
    @os1r1s110
    ok I see
    thx for your help
    Os1r1s110
    @os1r1s110
    would you happen to know what can cause a multiple transmission to only send for example 1 / 3 frames?
    I'm trying to control a motor drive and I need to send 3 commands back to back. I'm waiting 500ms between each frame, which is way overkill (let's be safe for testing) towards the "3.5 char time silence". But my sniffer only catches some frames, not always the same
    Dmitry Turin
    @Maxwe11
    only send for example 1 / 3 frames?
    what you mean ?
    Os1r1s110
    @os1r1s110
    Well this morning the problem was not apparent anymore, I guess it had to do with the sniffer I used
    Dmitry Turin
    @Maxwe11

    @os1r1s110 project transferred under organisation. If you have additional questions join this chat room https://gitter.im/NModbus4/NModbus4.

    Current chat room is inactive from now.

    jaygeet
    @jaygeet
    can you explain me how you set up modbus ?