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

Nathan Moore nategoose at gmail.com
Wed Jul 16 22:32:06 CEST 2014

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);

More information about the En-Nut-Discussion mailing list