|
-
Jul 21st, 2001, 01:42 AM
#1
Thread Starter
New Member
How to control LPT1 I/O bitS?
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!
Thanks for your help!
Irfan
-
Aug 27th, 2001, 01:02 PM
#2
I suggest you post in the 'General VB Questions' forum. You're gonna get a better response that way
-
Aug 27th, 2001, 09:04 PM
#3
Good Ol' Platypus
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.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|