Please have patience with this long post!!
I have created a biaxial mechanical testing device using cRIO 9012 with four 9505 servo drives. My application allows the user to define either straight line moves at a given velocity or contoured moves for conditioning etc. I have also have an analog joystick to allow the user to "jog" the actuators to facilitate loading specimens. Everything works at this point except for the joystick. I use threshholding to determine when the joystick has left the neutral position, and a move is desired. The direction of the move is also based on the analog value of the joystick. Once a desired move has been detected, a straight line move is started with the target position set based on the direction desired (+ movement setpoint is say 50 mm - movement set point is say 10mm). If the joystick reenters the neutral position before the actuator reaches the setpoint, the move is stopped ( have tried both stop immediatly and decelerate to stop). If the joystick is moved from neutral the process is repeated.
This all functions properly, except that the trajectory generator will sporatically jump to the setpoint if the joystick is used repeatedly. For example: The user can command a - movement begining at 50mm and stop at say 35 mm. The user may then move from 35 to 40, then from 35 to 20 and upon returning the joystick to the neutral position, the trajectory generator will change the position to 10 mm.
So, there seems to be something in the trajectory generator that does not like repeated starts and stops without reaching the setpoint. Is this true? What can I do to overcome this problem.
Bscout