LexxxHU / simple-modbus

Automatically exported from code.google.com/p/simple-modbus
0 stars 0 forks source link

SimpleModbusMaster rewrite #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Since SimpleModbusMaster was written in a night it will indeed contained some 
"spaghetti" code. It basically follows a state machine. I have re-written the 
library so this can be clearly seen. The code has been written so that it is 
small and fast.

In the process of re-writing I found a minor glitch on the frame delay after a 
call to transmit a packet. It seems using pull-ups and pull-downs affected this 
delay so I removed it and tested it on an LS GM7 PLC for about 20minutes 
without any errors.

Original issue reported on code.google.com by bester.j...@gmail.com on 2 Apr 2013 at 5:30