hi,please help.how to control the stepper motor via parallel port??
current i want to control the stepper motor rotation via parallel port.
now the problem is i don't know how to start control the stepper motor rotation.
i have start the parallel port connect code as below:
please help.Thanks.Code:Public Declare Function Inp Lib "inpout32.dll" _ Alias "Inp32" (ByVal portaddress As Integer) As Integer Public Declare Sub Out Lib "inpout32.dll" _ Alias "Out32" (ByVal portaddress As Integer, ByVal value As Integer) Option Explicit Dim value As Integer Dim portaddress As Integer Private Sub Cmdinputsignal_Click() Text2.Text = Inp(portaddress) End Sub Private Sub Form_Load() portaddress = &H378 ' LPT1 End Sub Private Sub cmdoutputsignal_Click() value = Text1.Text Out portaddress, value End Sub




Reply With Quote