Read Parallel Port (LPT1) Data 0-7 pin signals

A

Thread Starter

Anonymous

Can anyone help me to read Parallel Port (LPT1) Data 0-7 pin signals in VB6 on WinXP System?
 
H

Hardik Joshi

Although VB6 doesn't contain any inbuilt function for the low level hardware access.Try using some DLL or activex control made by the tool such as VC or BC.

Some available solutions are JUNGO driver sdk its a nice tool for the professional development try it its cool. and universal.

http://www.jungo.com/dnload.html

If you want more info on raw techniques contact me on my email id.
 
Parallel port (LPT1) have 3 ports:

PORT A (Data) address 378H
PORT B (Status) address = PORT A + 1 = 379H
PORT C (Controll) address = PORT A + 2 = 37AH

PORT A = OUTPUT PORT, u only can send data (can't receive)
PORT B = INPUT PORT, u can receive data from PORT B but only 5 BIT, and the last bit is inverted (if the bit is 0, the actual bit is 1, vice versa).
 
Actually, you can use Data port as an input.

In order to achieve this I've found that you may edit the bios program of your PC to make the data port on LPT1 bi-directional. I'm still looking for the exact way to edit this file but that's the way to do it.
 
Top