
adccommunitymod (AutomationDirect) asked a question.
Created Date: July 26,2004
Created By: Bo
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
I am asking how to program for a jog function for a stepper without encoder feedback. I would like to have a joystick to jog the stepper. Pushing the jogstick one direction the motor will accelerate to a specifed speed (another selection switch used to determine the speed to be low, medium and high). Release the jog stick, it will decelerate until reach to zero. During the process I need to know how many pulses have been sent to calculate where I am. It may happens very often that before the stepper reaches the specified speed, the operator releases the joystick for a small jog. I also prefer to allow the operator switch the selection switch to change the top speed while holding the jogstick. The motor should smoothly ramp to the required speed. Now I am trying to use DL06 HS I/O Mode 30 to drive the stepper. I have no problem for standard automatic operation using trapeziodal profile to drive the stepper to a target destination. What I need is the jog function as described above. I tried to use trapezoid mode (use only one speed) then use ladder logic to alter the speed step by step. But I cannot change the speed on the fly, I have to wait the profile finish. So the motor stops for one or up to two scan then starts a new speed. The motor jerks and makes noise, and may lose steps (I do not know). Anybody can help me there to find a way using DL-06 high speed I/O? If I have to use CTRIO, in the dynamic speed mode, can I trace how many pulses it has sent? The last choice is maybe I have to capture the Y0 output pulse using the CTRIO counter A or B for jog function. Thank you in advance.
Created Date: July 26,2004
Created by: Bo
I am asking how to program for a jog function for a stepper without encoder feedback. I would like to have a joystick to jog the stepper. Pushing the jogstick one direction the motor will accelerate to a specifed speed (another selection switch used to determine the speed to be low, medium and high). Release the jog stick, it will decelerate until reach to zero. During the process I need to know how many pulses have been sent to calculate where I am. It may happens very often that before the stepper reaches the specified speed, the operator releases the joystick for a small jog. I also prefer to allow the operator switch the selection switch to change the top speed while holding the jogstick. The motor should smoothly ramp to the required speed.
Now I am trying to use DL06 HS I/O Mode 30 to drive the stepper. I have no problem for standard automatic operation using trapeziodal profile to drive the stepper to a target destination. What I need is the jog function as described above. I tried to use trapezoid mode (use only one speed) then use ladder logic to alter the speed step by step. But I cannot change the speed on the fly, I have to wait the profile finish. So the motor stops for one or up to two scan then starts a new speed. The motor jerks and makes noise, and may lose steps (I do not know).
Anybody can help me there to find a way using DL-06 high speed I/O?
If I have to use CTRIO, in the dynamic speed mode, can I trace how many pulses it has sent? The last choice is maybe I have to capture the Y0 output pulse using the CTRIO counter A or B for jog function. Thank you in advance.