Solved

control of the motors (input data)

Posted on 1998-04-03
2
200 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Machine not responding during CopyFile() 3 103
code issue 8 153
error 1.1 400 Bad request idhttp delphi 18 143
Controlled Assessment GCSE - desperate help needed 4 101
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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…

809 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