stepper motor programming

July 9, 2009 at 20:11:15
Specs: Windows XP
Im having trouble reversing the stepper motor , the code below step it forward but reversing the numbers dosnt work.

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
' For d = 1 To 2
Out(PortAddress, 204)
System.Threading.Thread.Sleep(80)
Out(PortAddress, 102)
TextBox2.Text = CStr(Inp(PortAddress))
System.Threading.Thread.Sleep(80)
Out(PortAddress, 51)
TextBox2.Text = CStr(Inp(PortAddress))
System.Threading.Thread.Sleep(80)
Out(PortAddress, 153)
TextBox2.Text = CStr(Inp(PortAddress))
System.Threading.Thread.Sleep(80)
'next d
End Sub


See More: stepper motor programming

Report •


#1
Report •
Related Solutions


Ask Question