Results 1 to 4 of 4

Thread: Parallel port address and access

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Question Parallel port address and access

    i'm trying to use the PC to controll stepper motors in a robotic arm.. to do that i need to send binary numbers to the motor controll circuit. i'm using VC++ on .net.how can i send data to the prallel port and what is the data address of the prallel port. i tried using 0x370(i.e. the address of LPT1) but it didn't work.

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Check out this tutorial:
    http://www.aaroncake.net/electronics/vblpt.htm

    It covers Qbasic and Visual Basic but the functions are almost same. I think to talk to the parallel port, you use "out()" and "inp()" functions.
    Baaaaaaaaah

  3. #3

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Thumbs up Thanks...ABDUL...

    Any more suggestions from anyone else...

    Cheers...

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by abdul
    Check out this tutorial:
    http://www.aaroncake.net/electronics/vblpt.htm

    It covers Qbasic and Visual Basic but the functions are almost same. I think to talk to the parallel port, you use "out()" and "inp()" functions.
    No suggestions on *how* to do it, but I know you can't use those two functions any more, since direct hardware access is forbidden. Look at port access under NT in MSDN.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width