- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everybody. Is it possible to make program (using fortran) , which would send high and low voltages to lpt port? I am trying to write code in fortran. My goal is to make high and low pins on lpt, for controlling stepper motors. one pin would controll one stepper. High pin should rotate stepper for 1.8 degrees, using pic. This is possible in c (attached link), but is there code for doing so in fortran?
http://electrosofts.com/parallel/
http://electrosofts.com/parallel/
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your lpt control code example is for DOS, where each port or device had a static memory address. Under Windows all external device control is virtualized via drivers, and while you can send predetermined bit patterns, your program has little control over the timing of when they get there (ie, message-pump operating systems are not strictly real-time).
Stepper motors are generally programmed by sending high-level commands from the computer (via a serial port or ethernet) to a driver board which interprets the commands onto dedicated power electronics for the device. This sort of progamming is readily accessible from Fortran.
Stepper motors are generally programmed by sending high-level commands from the computer (via a serial port or ethernet) to a driver board which interprets the commands onto dedicated power electronics for the device. This sort of progamming is readily accessible from Fortran.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page