1
Technical support / Stepper motor help please
« on: September 27, 2006, 02:48:47 AM »
Hi,
I have a stepper motor operation from a T100MD888.
I have the system working ok in a loop as per following example, but what I need to put in place now is limit switches at each end of the range of travel. How can I implement this?
C$ = LOAD_EEP$(3)
D$ = LOAD_EEP$(4)
E$ = LOAD_EEP$(5)
F$ = LOAD_EEP$(6)
D = (VAL(D$)*16)
E = (VAL(E$)*850)
stepspeed 1,D,100
while 1
delay 100
stepmoveabs 1,E,10
stepmoveabs 1,0,10
delay 100
IF testio(Stop) goto @10: ENDIF
endwhile
@10 stepstop 1
I have a stepper motor operation from a T100MD888.
I have the system working ok in a loop as per following example, but what I need to put in place now is limit switches at each end of the range of travel. How can I implement this?
C$ = LOAD_EEP$(3)
D$ = LOAD_EEP$(4)
E$ = LOAD_EEP$(5)
F$ = LOAD_EEP$(6)
D = (VAL(D$)*16)
E = (VAL(E$)*850)
stepspeed 1,D,100
while 1
delay 100
stepmoveabs 1,E,10
stepmoveabs 1,0,10
delay 100
IF testio(Stop) goto @10: ENDIF
endwhile
@10 stepstop 1