Solved

control of the motors (input data)

Posted on 1998-04-03
2
204 Views
Last Modified: 2010-04-06
How can I make a box, or window... which will be control the motion of
 the motors which are connected for the parallel port, I mean, in that box or window
I will send the information to move the motors as the number of steps I want to move
them,or the number of degrees that the motors move.....
thanks
Juan
 


0
Comment
Question by:guerra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
inter earned 0 total points
ID: 1361261
The simplest way to that is :

1 - Add two buttons to your form as Button1and Button2
2 - Button1.Caption := 'Step By', Button2.Caption := 'Step Degrees'
3 - On Button1Click
     StepBy := StrToInt(InputBox('Enter steps to move the motor','','2'));
4 - On Button2Click
     StepBy := StrToInt(InputBox('Enter degrees to move the motor','','30'));

More user friendly way is to use TTrackBar component in Win95(or Win32 tab if you use Delphi 3.0+):
1 - Just place 2 tractbar components to your form. One for steping by steps and other for steping by Degrees(or radians)
2 - OR place two SpinEdit controls to do the same

Regards,
Igor
0
 

Author Comment

by:guerra
ID: 1361262
Hi
Thanx for the help, I think that the Ttrackbar is a  good solution, but I don't know to
put them in the form, the procedure which I need, etc... if one of them is for the
stepping by degrees, how can i do that, in the trackbar i define the number of degrees, e.g.  from 0 to 360 in intervals of five degrees and how can I send this information to the
motor which is connected in the parallel port for the pin D0 and D1..., the pin D0 is for the
direction of the motor (clockwise and ccw) and the D1 is for the clock of the motor..
If you have any advice to this, please help me
Many thanks
Guerra
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question