Originally Posted by Swede If you're using a DLL, then you know what you are doing with VB. There are several freeware DLL's that hardware-write to the parallel port. I used one for a CNC coil-winding machine with VB. The DLL I used is inpout.dll. Here are the declarations:
'Inp and Out declarations for direct port I/O in 32-bit Visual Basic programs.
Public Declare Function Inp Lib "inpout32.dll" Alias "Inp32" (ByVal PortAddress As Integer) As Integer
Public Declare Sub Out Lib "inpout32.dll" Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)
This DLL is well-behaved and used quite a bit by VB guys.
Swede |
This is actually the one that I'm using. Perhaps I'm doing it wrong? I'm using a time delay (about 6 microseconds using CreateWaitableTimer) between Out commands as a slight pause. when the commands were sent on after another without the pause I wasn't getting movement.
Thank you for your input...
Darren