I have contacted you by Facebook before, but I think here is better. Maybe you can help me.
Using your tool, I am trying to communicate my application done in Lazarus with Arduino. In Arduino I can use 2 different libraries to create the Modbus Slave. The first one is http://code.google.com/p/mudbus/ and the second one is https://gitorious.org/mudbus/mudbus/source/9cfdc68a2022cf13625ba8de4c71981c0cb10446 (the 2nd is developed from the first one). The first one looks like it has a bug, because when I write in a coil or a register(using PascalScada or other programs), I loose the communication during about 5 seconds, but I haven't seen any problem at all when I read. When I use the second one, everything goes fine with other programs, for instance https://play.google.com/store/apps/details?id=com.bencatlin.modbusdroid&hl=es from my Android. I can read at a rate of 100 ms without any problem and I can write as well. But when I use this 2nd library PascalScada gets quite slow (rate of 3 s) and I cannot read coils, although I can read discrete inputs and holding registers.
Could you please shed some light on it?
Best regards,
David
Last edit: David Morales Castillo 2014-10-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Fabio,
I have contacted you by Facebook before, but I think here is better. Maybe you can help me.
Using your tool, I am trying to communicate my application done in Lazarus with Arduino. In Arduino I can use 2 different libraries to create the Modbus Slave. The first one is http://code.google.com/p/mudbus/ and the second one is https://gitorious.org/mudbus/mudbus/source/9cfdc68a2022cf13625ba8de4c71981c0cb10446 (the 2nd is developed from the first one). The first one looks like it has a bug, because when I write in a coil or a register(using PascalScada or other programs), I loose the communication during about 5 seconds, but I haven't seen any problem at all when I read. When I use the second one, everything goes fine with other programs, for instance https://play.google.com/store/apps/details?id=com.bencatlin.modbusdroid&hl=es from my Android. I can read at a rate of 100 ms without any problem and I can write as well. But when I use this 2nd library PascalScada gets quite slow (rate of 3 s) and I cannot read coils, although I can read discrete inputs and holding registers.
Could you please shed some light on it?
Best regards,
David
Last edit: David Morales Castillo 2014-10-14
Have you tried set TModbusRTUDriver.ReadSomethingAlways to false?