i can see where you are sending them in groups. It looks like you are getting the data back from the PLC so I would suspect the application code. Are you unpacking in a different thread? Just a question. Not sure what the issue is. How is the performance if you only send one group? Tags 0-14.
Perfomance of one packet request is ~ 6-10ms (direct ethernet connection to PLC).
My code works in one thread (paralell to my main thread).
Idea of request is look for most old updated tags (dateTimeNow - lastUpdatedTime>= myRequiredUpdateRate) and group it to Multiply Service Request. But by experimental was Found some limits:
const int MAX_BYTES_IN_REQUEST = 248; - It max byte size of MessageRouterRequest
const int MAX_ITEMS_IN_REQUEST = 14; - Items in request
If limits will exceed than PLC not answer.
Last edited: