Dim B As New oStepper
Sub Main()
A.IOPack = 1
B.IOPack = 5
A.Rate = 10
B.Rate = 10
A.Operate = 1
B.Operate = 1
Do
A.Distance = 100
B.Distance = 30
Wait Until A.NonZero = 0
Wait Until B.NonZero = 0
ooPIC.Delay = 1000
A.Distance = -100
B.Distance = -30
Wait Until A.NonZero = 0
Wait Until B.NonZero = 0
ooPIC.Delay = 1000
Loop
End Sub
--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> Can you post code?
>
> DLC
>
> minghui1984 wrote:
> > Hi guys, i am using the 3 way header intended normally for servo
to
> > drive one of my external driver for my stepper motor, for the i/o
8-15
> > rows... my first IOpack which is 1 in the oopic compiler works
> > perfectly fine but when i specified the iopack to be 5 (which is
> > suppose to be from I/O 12-15.) The logic doesnt come out? Using a
> > multimeter i tested the ports for port 8-11 it is changing, but
for 12-
> > 15 its not. Did i specify the wrong IOpack?
> >
> > Minghui
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
>
> --
> ------------------------------------------------------
> Dennis Clark ooPIC Tech Support
> www.oopic.com
> ------------------------------------------------------
>
------------------------------------
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:
No comments:
Post a Comment