Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Stepper motor control

Because of my lack of knowledge about LabView and stepper motors, I must ask the "newbie" type questions.

First, do you have to have a controller card/device to control the stepper motor? The professor I am designing this for thought we could control the motor through the A/D board she has, but from what I can tell you need the controller.

Also, it appears that most of the controllers go through the PC's serial port of parallel port. Would I need drivers of some sort for one of these controllers? We're also working with an old PowerMac, which limits the device I use.

I realize ValueMotion is great, but the card is very expensive and she is very reluctant in purchasing the device.

Any ideas on what I should do? I'm looking at a P
acific Scientific controller, but again, I'm afraid of its combatiblity with LabView.
0 Kudos
Message 1 of 4
(4,789 Views)
Well...you have a few diverse questions here...

For some quick background, a stepper controller generates a very accurate sequence of pulses that drive a stepper motor via a power driver unit. While a DAC card can generate pulses, stepper motors tend to mis-behave and lose steps causing inaccurate positioning if you move them too slowly, or jump to step speeds suddenly without properly ramping the step sequence through a controlled profile. Now, I'm not saying that it cannot be done with a DAC board, it's just going to be a more difficult solution to implement in many cases. Not impossible mind you, but often frought with problems. If getting to a known position with great accuracy is of key importance to you, then ensuring that the correct number of steps is completed is a valuable capability in a stepper controller, all of the way to the point of actually using a motion feedback device, ie...an encoder, to ensure that you are where you need to be. The closed loop stepper controller boards support this capability direcly and provide it as an integrated function in LabVIEW.

With regard to any Serial or Parallel device, while LabVIEW provides powerful capability to use these ports, it would be up to you to define and implement any command sequences that a motion controller connected to this port required, unless a predefined set of LabVIEW drivers were built for this purpose.

Your PowerMac is most likely PCI Bus based, or if it's really old (like me...) then it could be NuBus based and you would have to check on the support for these legacy systems. PCI bus boards are very simple to use in PowerMacs...

If you go with a port based approach, you most likely will need to build a custom set of cables since I am not aware of any cables that would connect a serial port on a Mac to a serial or parallel bus based motion controller.

I would be curious, if you compare cost on a serial controller and drive/motor with an NI bus based controller and drive/motor is there is a significant cost differential...It is clear to me that the time and effort saved by using LabVIEW Motion Boards and VIs is a solution that "just works!" and this ease of use should make up for any reasonable cost difference.

If your project is to build a motion system solution from scratch, then go down the serial port path and possibly save money - at the expense of more time, but if your project is to use motion to achieve some set of measurement requirements, or implement a test system for larger purposes, then spend your effort on the real task at hand and use the motion control tools designed for LabVIEW...IMHO...
Message 2 of 4
(4,789 Views)
Hello,

The last version of ValueMotion that we released for the Macintosh was version 2. This was tested on Mac OS 8.5 and there are known issues with ValueMotion on newer OSs than 8.5. This would provide you with a PCI based solution that would be much faster and more robust than serial or parallel port control.

If you do wish to use the serial port or parallel port then you would need to reference the manual for the device you have to get the commands you would need to control it. Some devices have Instrument Drivers which make the communication easier, but even without an Instrument Driver you can communicate through these ports using LabVIEW. If you have more specific questions about using these ports then I will need to reference you so someone in the
Instrument Control group. You can also get more specific support by visiting WWW.ni.com/support and submitting your question for email support or calling in.

Have a good day.

Regards,
Andy Bell
Motion AE
National Instruments
0 Kudos
Message 3 of 4
(4,789 Views)
In order to control a stepper motor you need (1) a driver that is compatible with your stepper motor. There are a few different kinds of motors and ways that you can wire them up. (2) a controller for generating motion trajectories and outputing a signal to the driver. (3) possibly software for interfacing to the controller.

You should check out an introduction to motion control:
http://zone.ni.com/devzone/devzone.nsf/webcategories/69771825AE23E98E86256786000BEA02?opendocument
0 Kudos
Message 4 of 4
(4,789 Views)