[En-Nut-Discussion] Industrial interfaces (Modbus TCP, Profinet, etc.)

Philipp Burch phip at hb9etc.ch
Thu Jul 17 19:46:38 CEST 2014


Hi Nathan!

On 16.07.2014 22:32, Nathan Moore wrote:
> Not an expert, but if you're using Modbus RTU over TCP then the MBAP
> header has the length of the Modbus message in it, so you conceptually do:
> 
>     receive(socket, &mbap_header, sizeof(mbap_header));
>     receive(socket, buffer, mbap_header.message_size);
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
> 

Thanks, that should really do it.

Regards,
Philipp


More information about the En-Nut-Discussion mailing list