Archie
Member
The 100 that you changed is actually an unused parameter. It used to allow you to update values at different rates, but that functionality was removed long ago in favor of another method.Just looking back at this code
Code:For i = 1 To 500 SubscriptionID(i) = ModbusTCPCom1.Subscribe("4000" & CStr(i), 1, 100, AddressOf ModbusTCPCom1_DataReceived) Next
I had CStr(i), 1, 100, ......
I've changed to CStr(i), 1, 500, and seem to be able to read more data.
Is this correct?
I'm imagining this is telling the subscription to cycle between 40001 and 40500??
Out of curiosity try changing MaxReadGroupSize property of the driver to 30 and see if that has any effect.