Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 26th, 2010, 08:18 AM
Registered User
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to run stepper motor with parallel port

Code:
i have make this program to run stepper motor with parallel port forward and reverse but still the stepper motor does not run. can someone solve this issue.[:(]


Private Sub cmdButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdButton1.Click
        Timer1.Enabled = True
    End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        count = count + 1
        Label1.Text = Convert.ToString(count)

        If count = 1 Then

            Label2.Show()
            Out(&H378, 1)

        ElseIf count = 2 Then

            Label2.Hide()
            Out(&H378, 4)

        ElseIf count = 3 Then

            count = 0
            Out(&H378, 16)

        End If
    End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        Timer1.Enabled = False
        Timer2.Enabled = False

    End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Timer2.Enabled = True
    End Sub

Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
        count = count + 1
        Label1.Text = Convert.ToString(count)

        If count = 1 Then

            Label4.Show()
            Out(&H378, 16)

        ElseIf count = 2 Then

            Label4.Hide()
            Out(&H378, 4)

        ElseIf count = 3 Then

            count = 0
            Out(&H378, 1)

        End If
     
    End Sub
 
Old June 24th, 2010, 11:59 PM
Registered User
 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Integrated stepper motor driver

UIrobot featured Stepper Motor Controllers and Stepper Motor Drivers size only 42.3*42.3*13.5mm include parallel port stepper motor driver, serial port (RS232) and network(CAN Protocol) Stepper Motor Controller which can be directly mounted onto size 42/57/86/110mm (They are NEMA17, NEMA23, NEMA34 and NEMA42 step motors) stepper motors. Ultra-miniature size, high performance, standalone workable or as built-in control and drive unit, easy wiring and strong driving force are the unique selling point of UIM stepper motor controllers and stepper motor drivers.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Receiving data from parallel port using C#.net venkatvens Visual C++ 0 August 11th, 2008 05:44 AM
Motor Database System (MDS) Freelancer Beginning VB 6 4 June 6th, 2007 07:42 AM
Visual C++ on parallel port yunarch Visual C++ 0 September 30th, 2005 07:40 AM
How Can I Read or Write to Parallel Port? qdata Visual C++ 3 January 31st, 2005 07:47 AM
LPT (Parallel ) Port dll driver for XP maxtashkent Visual C++ 3 November 14th, 2003 12:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.