luizcantoni / mudbus

Automatically exported from code.google.com/p/mudbus
16 stars 17 forks source link

"write multiple coils" interprets received packet wrong #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
FC=0x0f
reads only multiples of 8bits from received packet. If you try to set 
any other number of coils, rest will be set to 0.

What steps will reproduce the problem?
1. write 111 to 3 coils starting from address XY
library will set 8 coils starting from address XY to 1110 0000

2. write 1111 1111 1 to 9 coils starting from address XY
library will set 16 coils starting from address XY to 1111 1111 1000 0000

What version of the product are you using? On what operating system?
1.0

Original issue reported on code.google.com by ant....@gmail.com on 21 Aug 2012 at 12:47

GoogleCodeExporter commented 9 years ago
Apart from that it returns malformed packet as reply

Original comment by ant....@gmail.com on 21 Aug 2012 at 12:49

GoogleCodeExporter commented 9 years ago
All bugs I found are fixed in the attached file. Works for me.

Original comment by ant....@gmail.com on 21 Aug 2012 at 2:26

Attachments: