(1)Try to find some information about a possible minimal delay between 2 transmissions in the user manual of the controller.
(2)Set a longer wait (eg 2s instead of 0.1s) before writing a new command.
(3)Check the delay for the answers and if there are timeouts (return count < 2). By the way, what is the expected answer from the controller to the pos command ? (nb of bytes...)
(4)Check if the behaviour is the same when there is no move. The controller may be busy during a move and only react with a low priority to the pos command.
Regarding (1), I checked through the manual and didn't find any information pertaining at all ... I may call and see what they think of some of these problems though.
I tried (2) in the new program, and it returned different results numerically, but just as long of a delay.
Regarding (3), no timeouts appear. The expected answer is alternating between 2 or 15 bytes, in the order (2,15,2,15,2,15 etc...) as long as the command takes place, which is why I only get results on half of the answers, the 15 byte answer contain the information I need. The information then is offset by 6 bytes from the beginning and 8 of them are taken to obtain the numerical position.
Regarding (4), the question I have here is regarding the fact that the system doesn't speed up once the move is complete. If it was that resources were diverted to moving the motor, wouldn't the whole system speed up again once the move was technically complete? Even if there was a backlog of information I would have expected it to arrive faster once the move was complete, yet it steadily reports the information at the same rate regardless of the motor moving or not. Is this accurate to assume?
The results from the new program:
When running with a time delay of 0.1 seconds, the number of iterations varies between 100-115 iterations. The "Answer delays" is almost always 14, very occasionally 13. The "Answer delay" indicator (if I am watching closely enough) is 14 at the beginning, and 0 for the rest of the time. The "Answer" button blinks consistent with the 0.1 second time delay and the "Answers" button never blinks.
For a run using a 2 second delay, instead of 0.1 seconds, the answers are scaled down to 10-11 iterations, and the type of delay for "Answer delay" and "Answers delay" (14 almost all the time for Answers delay, and Answer delay 14 out the shoot, then zero after the fact). In all cases "number" does end at the expected and correct value.
Any thoughts? Thanks again for all your guys' input and help.