I attempted to run the H0-CTRIO velocity mode example (from the manual) in a stage program.
The velocity mode routine is in its own stage.
What I found is the command complete bit does not always set, so the program hangs indefinetly.
I added a 500ms timer, and added a rung to restart the stage if the command complete bit is not set after the timer expires.
Now, the program works, but this stage repeats several times before the command complete bit sets. This slows the operation down too much.
I tried reducing the timer to 300ms, but the stage sometimes hangs, or the CTRIO output repeats indefinetly.
Any ideas? Is the command complete bit set only for a short time; can it be missed if there is too many other things going on in the program?
Thank-You,