
adccommunitymod (AutomationDirect) asked a question.
DL06/H0-CTRIO Stepper Distances
Created Date: May 03,2004
Created By: chip
**** 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 have a similar issue to the servo post. I did not find my answer in that post. I am using dynamic positioning. I am using the sample code in the CTRIO manual. If I load LDD K3000 OUTD V2030 run it then load LDD K6000 OUTD V2030 and run it I do not get double the distance on the second run. My start freq is 40 my max is 20000 and my acceleration is 2000.
Created Date: May 03,2004
Created by: chip
I have a similar issue to the servo post. I did not find my answer in that post. I am using dynamic positioning. I am using the sample code in the CTRIO manual. If I load
LDD
K3000
OUTD
V2030
run it then load
LDD
K6000
OUTD
V2030
and run it
I do not get double the distance on the second run.
My start freq is 40 my max is 20000 and my acceleration is 2000.
Created Date: May 03,2004
Created by: ericn
I 've never used the CTRIO module, but at the top of page 8-4, it says this:
" When a new position is specified, the CTRIO moves to the new position relative to its previous position as long as the Enable Output bit remains set. Clearing the Enable Ouput bit will disable output pulsing and reset the current position to 0. "
After your first move, your 'current position ' is "3000 ". Therefore, I'd think the second move with a value of 6000 would only move an ADDITIONAL 3000 pulses. Is this what's happening?
-Eric
Created Date: May 03,2004
Created by: chip
No, it resets to zero. I get a very consistent distance move to move. If I load 1500 I might get .5 " everytime. But,if I load 3000 I might get 1.125 ", if I load 6000 I might get 2.375 ". If the number spills over into 5 places I get really strange distances. I am working toward loading variables from the small 6 " touchscreen recipes.
Created Date: May 03,2004
Created by: GKiser
chip, you can use the CTRIO's System Functions and see exactly how many pulses the CTRIO sent out its output. If you told it 3000 and it counts 3000, then it may be your stepper motor or the drive itself that is causing the error. Another way would be to connect the output of the CTRIO to its input and have the CTRIO count the pulses itself. Both of these methods proves that the CTRIO is really sending out the number of pulses you tell it to.
Hope this helps!
Greg Kiser
Host Engineering, Inc.
Created Date: May 06,2004
Created by: chip
what format is the number? Maybe that is my problem?
Created Date: May 06,2004
Created by: clasentech
Your format is your problem. A double of 800 is 1000. Hex.
Created Date: May 06,2004
Created by: chip
That looks right. When I converted my inputs to decimal the decimal equivalents seem to match up to what I see. Thanks.