Berggy, the problem with using 22-Run-to-position and 20-Velocity-Mode is they just start outputting pulses at the frequency you've selected (i.e. no acceleration or deceleration) and the 22-Run-to-position does not use any encoder feedback. Instead it merely keeps up with the number of pulses it sent to the CTRIO Output.
You might try configuring a Pulse Profile called Dynamic Positioning; this one has acceleration and deceleration.
- Configure Pulse Profile (Dynamic Positioning)
- To run: Do a Load File of the above Pulse Profile for the CTRIO Pulse Output.
- SET the Enable Output bit.
- Enter (in decimal) the Position into Parameter 3.
- TOGGLE the Goto Position bit. At this point the stepper should accel to max freq and then decel to the position you desired.
- To go to another position, just write another absolute position to Parameter 3, and TOGGLE the Goto Position bit again.
Of course, the problem with this, again, is there is really no encoder feedback for the operation. The CTRIO is simply keeping up with the number of pulses it outputs. So, you'd have to calculate the position-to-encoder ratio manually and determine position in that manner. A pain, yes.
We currently have designed an H2-CTRIO2 that is much faster than the current one. It is being tested as we speak and will soon be released in 2011. One of the enhancements of the CTRIO2 is it has Dynamic Positioning (as described above) with encoder feedback. You can also scale both the output and encoder feedback to match, for example, your 2500 ppr encoder with whatever resolution you pick for your stepper.