Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

2 phase stepper motor contrrol on laview

hi everyone,
 
im writting the programming for  2 two phase stepper motors ( type PH268-21B-A27 and PH268-21B-Q1) by labview software. they are moved relative together on X and Y axis. but iam not in fiel of this program. it is the first time i do it by labview. in using the labview version 7.1 by parallel port.
cuold you tell me how to writting this program to control these motor?
for example if i want to move a point on the circle, so how to write the program (VI) to 2 stepper motors moving relative together to make a circle like this.
 
thanks a lot,
UT,
 
Ps, my email: vanutevn@yahoo.com
0 Kudos
Message 1 of 6
(4,702 Views)

Hello Tungu1234,

To control two motors in an x-y plane relative to each other it would be best to perform some kind of contouring analysis.  This means you should determine an array of points that you would like your motors to position themselves too, around a circle in their spatial area.  Once you have figured out the main points of movement you can use interpolation to determine x-y points in between each end movement point that you will send over the parallel port.  You would obviously send the X coordinates to one motor and the y coordinates to the other.  I do not know what the communication is like to your motors so this is meant as a high level idea of how to go about doing this.  Our National Instruments Motion Controllers use trajectory generation and spline interpolation to generate step and direction pulses for stepper motors.  I hope this information helps.  Thanks and have a great day.

 

Regards,
Mark T
Applications Engineer
National Instruments

0 Kudos
Message 2 of 6
(4,677 Views)
first of all, thanks somuch for your helpfull,
 
i am using labview version 7.1 with NI-DAQmax PCI 6214.
i am writting by commanded "dialog tab control" and drawed the circle, line, ellipe, ect,.
but in the output, it has two value which are X and Y. so cuold you tell me how can i export this values to control these motors.
 (hereunder in the attachment file, cuold you see a example of my simple in x-y graphic)
 
0 Kudos
Message 3 of 6
(4,675 Views)
 

As Mark has stated the usage of a motion control board as the PCI-7342 is highly recommended. The PCI-6214 is not a good option for controlling stepper motors in general, especially not for rather sophisticated trajectories. You shouldn't waste too much time with this approach.

In contrast it's very simple to create motion applications with an NI motion control board. In fact there are ready to run examples that demonstrate how to generate the trajectories you are looking for.

Best regards,

Jochen Klier
National Instruments Germany

 

Message Edited by Jochen on 02-01-2007 10:55 AM

0 Kudos
Message 4 of 6
(4,673 Views)

thanks Mark,

i am making a model for teaching the secondary school student. i am a teacher.

cuold you show me how to export these value (array of graphic: x and y value) to motors if we have the graphic like that (attachment above)? cuold you gie me an example of its?

best regards,

Ut

 

0 Kudos
Message 5 of 6
(4,657 Views)
Hello tungu123,

I am a little confused on what you mean when you say you are controlling them by a parallel port.  Do your motor drives connect and communicate entirely over a parallel port?  Since it will take a certain protocol to communicate this way I am assuming you will have to know what commands to send to your drive and it will determine the number of steps to move.  We do not have any examples of how to do this.  If you are trying to send specific step and direction signals through the parallel port to your motor drive it could get quite complicated and I do not think you will be able to generate signals at high rates this way.  Typically a motor drive controlling a stepper motor accepts "Step" and "Direction" signals.  So you would need to send out TTL signals to these lines on the motor drive that would move the motor in that specific direction and that many "steps".  The distance the motor moves for each step is motor dependent.  You would have to interpolate the distance the motors move to the actual X Y positions you have calculated and then send that many steps to the motor drive.  This will all be software timed.  Let us know more information about how you are going to communicate with the motor drive.  Thanks and have a great day.

Regards,
Mark T
Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(4,641 Views)