Friday, 15 August 2014

How do you find the length of total Modbus/TCP data? -


itemprop = "text">

Modebus / TCP packet contains length section, which is a total mode bus / TCP data minus 6 bytes. How can you understand the length of the total modebase / TCP data?

length - total mode bus / TCP data minus 6 bytes length < P> What is the length of the total modusbase / TCP data?

You have to read this field, then decrease the value from '6'. The result is "Total Modebus / TCP data length."

So, for example in C / C ++ to implement this (a modbus-receiver), you have some ways to "framing" loop where you read a fixed-length modebus headers, then You read the length specified in the header in the header.

No comments:

Post a Comment