This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Wednesday, November 21, 2007

Re: [oopic] Re: Stepper Motor and Driver Setup Issues

At 10:25 PM 11/21/2007, turgrid wrote:
>Here is a sample of my ramping program. The program that I tested to
>travel x steps is basically identical to the one in oopic
>documentation for oStepper object.
>
>oStepper stepper = New oStepper
>
>Void Main(Void) {
> stepper.IOPack = 3
> stepper.Mode = 1
> stepper.Rate = 125
> stepper.Operate = 1
> stepper.Rate = stepper.Rate - 15

Shouldn't you set the initial rate before enabling operation?


>
> For (Int x = 1; x < 15;x++) {
> stepper.Rate = stepper.Rate + 1
> }

There are no delays in that loop. It will try to ramp up
instantly. I doubt that you want that.

>
>}



Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments: