PDA

Click to See Complete Forum and Search --> : Parallel port address and access


wrack
Aug 1st, 2002, 11:32 PM
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.

abdul
Aug 2nd, 2002, 05:04 PM
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.

wrack
Aug 5th, 2002, 02:08 AM
Any more suggestions from anyone else...

Cheers...

parksie
Aug 5th, 2002, 12:07 PM
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.