These are chat archives for Maxwe11/NModbus4

19th
May 2015
Os1r1s110
@os1r1s110
May 19 2015 13:37
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
May 19 2015 14:49
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
May 19 2015 14:54
In that case you should manually insert sleeps
Os1r1s110
@os1r1s110
May 19 2015 14:54
ok I see
thx for your help
Os1r1s110
@os1r1s110
May 19 2015 19:44
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