Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

simple straight line motion control with brushless motor and encoder/microswitch

I want to go build a motion control system/program using labview. I have a brushless motor and a controller and a National instrument DAC (NI USB-6009). This is how my system looks like: receive an input signal 4-20mA, this should be converted to 0-5V for the controller for speed, controller should move motor till it hits micro switch. The micro switch/encoder should generate a signal (5V) back to shut the controller. I want to record the position of the motor in labview. How do I do this? How do I set the system up? Thank you in advance

0 Kudos
Message 1 of 4
(5,247 Views)

Hi VinceIowaState,

 

I think I am a little confused on your set up.  What type of controller are you using?  Are you using the 6009 to send the 0-5V to the controller?

 

Also, what is the 4-20mA input?  Is this some feedback from the controller?

 

Thanks,

Justin D.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(5,236 Views)

Controller from anaheimautomation: MDC151-050301

Motor:BLWSG234D-36V-4000-R3     

Controller and motor go together.

The input signal for the system will be 4-20mA. Using this signal I will correlate it to a specific voltage which will drive the speed of the motor. This will displace the lead screw linearly. I will have a microswitch that will be triggered by screw and will relay a signal to shut the motor. I want find a way to record the position of the shaft/leadscrew at that specific point. I want to identify a home position, halfway position and full length travel position. I will use 3 swiches or 1 switch in three positions to identify all these points.

My end result should be whwn I turn on the system or start the program It should detect whether it is at the home position, if not travel to home then respond accordigly given an input signal(4-20mA).

 

How will I program such on labview...finding all the right icons to record the data is such a mess for me since i'm a beginner.

 

Thanks

0 Kudos
Message 3 of 4
(5,233 Views)

Hi VinceIowaState,

 

Thanks for the additional information.

 

Are you planning on doing all of this input and output with the 6009? If so, you will be using a lot of the DAQmx VIs.  There are a lot of great examples that should help get you started.  These can be found in the NI Example Finder under Hardware Input and Output>>DAQmx.  For example, you will use an analog output task to output your 0-5V for the controller.

 

I'm not sure if the 6009 will be the best hardware device for your project.  It will not be able to read a 4-20mA signal directly.  The specs of this device can be found here: NI-USB 6008/6009 Manual.

 

 

Justin D.

Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(5,227 Views)