Results 1 to 3 of 3

Thread: How to control LPT1 I/O bitS?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Jakarta
    Posts
    4

    Question 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
    lock007

  2. #2
    j2k
    Guest
    I suggest you post in the 'General VB Questions' forum. You're gonna get a better response that way

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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
  •  



Click Here to Expand Forum to Full Width