This is a simple way to generate step pulses
Code:Count = 1 While count < 2000 ' Send 2000 pulses rotate motor 10 times Latx = 1 'Output 10us pulse to stepper drive pauseus 10 Latx =0 Count = Count + 1 pause 10 ' use this delay to slow down or speed up the motor Wend





Bookmarks