Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 04:13:08 16:13


Login with username, password and session length


Pages: [1]
Print
Author Topic: Parallel port software  (Read 3898 times)
0 Members and 1 Guest are viewing this topic.
persiangulf
Guest
« on: February 03, 2008, 09:29:59 21:29 »

Does anyone know a good software to toggle the parallel port?
Logged
rtm
Junior Member
**
Offline Offline

Posts: 53

Thank You
-Given: 90
-Receive: 71


a.k.a. klug


« Reply #1 on: February 03, 2008, 09:57:32 21:57 »

Try this one:
http://entechtaiwan.net/dev/rapid/index.shtm
There is an evaluation version working for 30 days.
Logged
Elkeran
Guest
« Reply #2 on: February 04, 2008, 02:11:06 02:11 »

Read chapter 22 printerport in detail from "Visual Basic for Electrical engineering" by Vincent Himpe
It may help you

Regards

Logged
lillbear
Senior Member
****
Offline Offline

Posts: 276

Thank You
-Given: 223
-Receive: 182



« Reply #3 on: February 04, 2008, 07:35:20 19:35 »

Still -> http://www.geekhideout.com/iodll.shtml

C/C++ Prototypes

void WINAPI PortOut(short int Port, char Data);
void WINAPI PortWordOut(short int Port, short int Data);
void WINAPI PortDWordOut(short int Port, int Data);
char WINAPI PortIn(short int Port);
short int WINAPI PortWordIn(short int Port);
int WINAPI PortDWordIn(short int Port);
void WINAPI SetPortBit(short int Port, char Bit);
void WINAPI ClrPortBit(short int Port, char Bit);
void WINAPI NotPortBit(short int Port, char Bit);
short int WINAPI GetPortBit(short int Port, char Bit);
short int WINAPI RightPortShift(short int Port, short int Val);
short int WINAPI LeftPortShift(short int Port, short int Val);
short int WINAPI IsDriverInstalled();

To use IO.DLL with Visual C++/ Borland C++, etc, you'll need to use LoadLibrary and GetProcAddress. Yes, it's more of a pain than using a .lib file, but because of name mangling, it's the only reliable way of calling the functions in IO.DLL. I've gone ahead and done the dirty work for you:

io.cpp
io.h

Just save these two files and include them in your project. For a Visual C++, you may need to add #include "StdAfx.h" at the top of io.cpp otherwise the compiler will whine at you.

These two files take care of calling LoadLibrary and all the neccessary calls to GetProcAddress, making your life happy once again.

The only step you are required to do is call LoadIODLL somewhere at the beginning of your program. Make sure you do this or you will find yourself faced with all sorts of interesting crashes.

Please let me know if you find any errors in the above two files. They are new and haven't been tested all that much.

Delphi Prototypes

procedure PortOut(Port : Word; Data : Byte);
procedure PortWordOut(Port : Word; Data : Word);
procedure PortDWordOut(Port : Word; Data : DWord);
function PortIn(Port : Word) : Byte;
function PortWordIn(Port : Word) : Word;
function PortDWordIn(Port : Word) : DWord;
procedure SetPortBit(Port : Word; Bit : Byte);
procedure ClrPortBit(Port : Word; Bit : Byte);
procedure NotPortBit(Port : Word; Bit : Byte);
function GetPortBit(Port : Word; Bit : Byte) : WordBool;
function RightPortShift(Port : Word; Val : WordBool) : WordBool;
function LeftPortShift(Port : Word; Val : WordBool) : WordBool;
function IsDriverInstalled : Boolean;

Important! To use these functions in your Delphi program, the correct calling convention of stdcall is required. For example:

procedure PortOut(Port : Word; Data : Byte); stdcall; external 'io.dll';

Visual Basic Prototypes
Private Declare Sub PortOut Lib "IO.DLL" (ByVal Port As Integer, ByVal Data As Byte)
Private Declare Sub PortWordOut Lib "IO.DLL" (ByVal Port As Integer, ByVal Data As Integer)
Private Declare Sub PortDWordOut Lib "IO.DLL" (ByVal Port As Integer, ByVal Data As Long)
Private Declare Function PortIn Lib "IO.DLL" (ByVal Port As Integer) As Byte
Private Declare Function PortWordIn Lib "IO.DLL" (ByVal Port As Integer) As Integer
Private Declare Function PortDWordIn Lib "IO.DLL" (ByVal Port As Integer) As Long
Private Declare Sub SetPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte)
Private Declare Sub ClrPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte)
Private Declare Sub NotPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte)
Private Declare Function GetPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte) As Boolean
Private Declare Function RightPortShift Lib "IO.DLL" (ByVal Port As Integer, ByVal Val As Boolean) As Boolean
Private Declare Function LeftPortShift Lib "IO.DLL" (ByVal Port As Integer, ByVal Val As Boolean) As Boolean
Private Declare Function IsDriverInstalled Lib "IO.DLL" As Boolean
Function Descriptions
Please refer to the prototype for the particular language you are using.

PortOut
Outputs a byte to the specified port.

PortWordOut
Outputs a word (16-bits) to the specified port.

PortDWordOut
Outputs a double word (32-bits) to the specified port.

PortIn
Reads a byte from the specified port.

PortWordIn
Reads a word (16-bits) from the specified port.

PortDWordIn
Reads a double word (32-bits) from the specified port.

SetPortBit
Sets the bit of the specified port.

ClrPortBit
Clears the bit of the specified port.

NotPortBit
Nots (inverts) the bit of the specified port.

GetPortBit
Returns the state of the specified bit.

RightPortShift
Shifts the specified port to the right. The LSB is returned, and the value passed becomes the MSB.

LeftPortShift
Shifts the specified port to the left. The MSB is returned, and the value passed becomes the LSB.

IsDriverInstalled
Returns non-zero if io.dll is installed and functioning. The primary purpose of this function is to ensure that the kernel mode driver for NT/2000/XP has been installed and is accessible.

yours
Logged
RsX
Newbie
*
Offline Offline

Posts: 10

Thank You
-Given: 15
-Receive: 1


« Reply #4 on: February 05, 2008, 01:02:57 13:02 »

i used the dlportio.dll and vb6 to control the parallel port but i had a problem of speed...
i tryed to control a stepper motor with L297+L298 but it runned very slow even with a timer delay of 1ms :S
Logged
lillbear
Senior Member
****
Offline Offline

Posts: 276

Thank You
-Given: 223
-Receive: 182



« Reply #5 on: February 06, 2008, 04:22:39 16:22 »

Hope this helps.

MSDN INFO Precision Timer Algorithm Counter Types -> http://msdn2.microsoft.com/en-us/library/aa392755(VS.85).aspx

yours
Logged
o_cientista
Newbie
*
Offline Offline

Posts: 9

Thank You
-Given: 1
-Receive: 4


« Reply #6 on: February 07, 2008, 03:57:29 15:57 »

Bom dia, amigo!
     Neste link te ensina como fazer o que você está querendo. http://www.rogercom.com/
Logged
lazaro10
Guest
« Reply #7 on: February 12, 2008, 10:03:51 22:03 »

a goog proyect using the parallet port http://209.85.173.104/search?q=cache:YcsaKlaYJAwJ:www.todorobot.com.ar/proyectos/4stepper/4stepper.htm+proyectos+con+el+puerto+paralelo&hl=es&ct=clnk&cd=2&gl=mx

Posted on: February 09, 2008, 01:39:04 01:39 - Automerged

proyects with parallet port http://209.85.173.104/search?q=cache:p2kLGWrPFKoJ:www.arunet.co.uk/tkboyd/ele1pp.htm+projects+with+parallel+port&hl=es&ct=clnk&cd=4&gl=mx
check this page

Posted on: February 12, 2008, 11:00:01 23:00 - Automerged

Learn to uses the parallet port  http://209.85.173.104/search?q=cache:lbpB7mU6ndoJ:logix4u.net/Legacy_Ports/Parallel_Port/A_tutorial_on_Parallel_port_Interfacing.html+projects+with+parallel+port&hl=es&ct=clnk&cd=1&gl=mx
Logged
F8B
Guest
« Reply #8 on: February 25, 2008, 09:38:19 09:38 »

See Parallel Port Debug tool from: http://www.beyondlogic.org/pardebug/pdebug.htm
Logged
kamegang
Guest
« Reply #9 on: April 17, 2008, 05:10:32 17:10 »

In this page are one form to emulate a paralell port, check this and made comments
http://www.dosprn.com/
Logged
MickaD
Newbie
*
Offline Offline

Posts: 9

Thank You
-Given: 0
-Receive: 1


« Reply #10 on: April 22, 2008, 07:06:30 19:06 »

See A good tutorial about parallel port on :
http://logix4u.net/Legacy_Ports/Parallel_Port/A_tutorial_on_Parallel_port_Interfacing.html
Logged
anishjp
Junior Member
**
Offline Offline

Posts: 37

Thank You
-Given: 64
-Receive: 7


Be Coool.......:)


« Reply #11 on: August 04, 2008, 06:51:45 18:51 »

Hi,

Go through the parallel port utility in
www.technet.microsoft.com/en-us/sysinternals/default.aspx
Logged

Smiley One of the universe’s great truths is that Energy follows Intention.” Huh
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC