
adccommunitymod (AutomationDirect) asked a question.
Stepper Driver Example Code
Created Date: February 16,2007
Created By: jlkeiter
**** 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 need to drive 4 stepper motors with a DL06 using 4 PID loops. The stepper is 6000 steps. Each driver card has 0n/0ff, clock and direction. What is best practice to synch stepper virtual position (no HW index) with PID output value? Application is refrigeration electronic expansion valves (not a fast process..)
Created Date: February 28,2007
Created by: stimpsonjcat
Are these position based moves or speed based?
i.e. run at the speed the PID generates?
or run to the position the PID generates?
Created Date: March 01,2007
Created by: jlkeiter
I will be using a PID to determine position. My idea is to convert 0 to 4095 to 0 6000 (out x 1.4#### in real) then subtract the position index (which is zeroed at startup/enable) using the negative SP to determine direction. This next part is fuzzy.. do I use a for loop or a counter to execute the positioning. These steppers run at 200/steps/second.
Created Date: March 28,2007
Created by: stimpsonjcat
You got me.
You can't really send a changing target to the any of the ADC stepper control circuits (built in HSIO or CTRIO) they all want a target to move to. I am not sure I see a way to do this cleanly.
So you want to do a:
Go here.
wait, now go here.
wait, now go here.
wait, now go here.
kind of thing?
sounds messy to me.
Created Date: February 16,2007
Created by: jlkeiter
I need to drive 4 stepper motors with a DL06 using 4 PID loops. The stepper is 6000 steps. Each driver card has 0n/0ff, clock and direction. What is best practice to synch stepper virtual position (no HW index) with PID output value?
Application is refrigeration electronic expansion valves (not a fast process..)