Click to See Complete Forum and Search --> : How to control LPT1 I/O bitS?
nene_007
Jul 21st, 2001, 02:42 AM
I have trying to make a simple kit, using relay which conected to LPT1, I want to control input and output relay and display it on or off in my computer using VB6.0. Bur I don't know how I start with my VB b'cause I just a newbei in VB. Plzzzz help me!:confused:
Thanks for your help!
Irfan
j2k
Aug 27th, 2001, 02:02 PM
I suggest you post in the 'General VB Questions' forum. You're gonna get a better response that way :)
Sastraxi
Aug 27th, 2001, 10:04 PM
Go to Planet Source Code, find the I/O DLL for VB6.0, works like a charm. You can output at &h378 to get LPT1, and then use these bits (you'll have to complile them into a byte).
Input:
Brown Wire -> 1st Bit
Light Grey Wire -> 2nd Bit
White Wire -> 3rd Bit
Black Wire -> 4th Bit
Brown and White 'Twist' Wire -> 5th Bit
Red and White 'Twist' Wire -> 6th Bit
Green and White 'Twist' Wire -> 7th Bit
Blue and White 'Twist' Wire -> 8th Bit
Output:
Red Wire -> 1st Bit
Orange Wire -> 2nd Bit
Peach Wire -> 3rd Bit
Yellow-Orange Wire -> 4th Bit
Green Wire -> 5th Bit
White-Green Wire -> 6th Bit
Blue Wire -> 7th Bit
Dark Purple Wire -> 8th Bit
If you would like full specifications, don't hesitate to email me. The output port is somewhere inbetween &h379 and &h37F.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.