English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i want to write binery code to lpt port to control 2 stepper motor , also i want read the port for two sensors
please guide me by VB code becuase I developed the control program by VB

2007-01-26 18:27:27 · 2 answers · asked by amir_estifaie 1 in Computers & Internet Hardware Printers

2 answers

Well, that's going back to the days. You're better off using the serial port. You can use VB to open a COM Port. Try this link:

http://support.microsoft.com/kb/39342

Search for articles on using QuickBasic. The coding is pretty much the same to open the COM port. You can then assign a variable to send commands to an interface.

You may want to use a Triac or Diac for the motor tied into a DAC from the interface you attach to the COM port.

2007-01-27 16:13:12 · answer #1 · answered by Shawn H 6 · 0 0

On the printer it's an LPT port, on the computer it's a parallel port. Both transmit and receive data on more than one line. It's also termed an RS-232 port using a DB-25 connector. This eventually lead to using a a centronix type connector for some printers, which used a slot type mounting.

2016-05-24 04:35:59 · answer #2 · answered by Annette 4 · 0 0

fedest.com, questions and answers