Skip Menu |

This queue is for tickets about the Protocol-Modbus CPAN distribution.

Report information
The Basics
Id: 81115
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Protocol-Modbus

Owner: cosimo [...]
Requestors: mnni [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: RECV bug in transport TCP layer
Date: Mon, 12 Nov 2012 09:36:13 +0000
To: "bug-Protocol-Modbus [...]" <bug-Protocol-Modbus [...]>
From: Martin Nørby Nielsen <mnni [...]>
Download (untitled) / with headers
text/plain 853b
Hey I found a data receive limit when I was trying to read more than 46 registers at once the limit should be 123 words. I debugged the problem to the receive line in \transport\ line 71 $sock->recv(my $data, 100); please correct to: $sock->recv(my $data, 256); This should make it possible to receive 123 registers including the overhead : maximum according to the TCP modbus standard thanks for some sweet code I use it to interface with LAB PLC's kind regards Martin Nørby Nielsen Udviklingsingeniør Department of Energy Conversion and Storage Danmarks Tekniske Universitet [dtu] DTU Risø Campus, P.O. Box 49 Frederiksborgvej 399, P.O. Box 49 Bygning 227 4000 Roskilde Direkte telefon +45 4677 5634 mobile: + 45 2136 3137<><>
Download image001.gif
image/gif 58b
Download image002.gif
image/gif 1k
Download (untitled) / with headers
text/plain 119b
Martin, thanks for your feedback. Sorry for the late answer, but 0.10 with the suggested change is on its way to CPAN.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to