From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6525 6501 digital output to step motor driver

Solved!
Go to solution

Hi,

I try to use USB 6501 and/or USB 6525 to output signals to step motor drive which controls the stepping motor. My questions are

1) Do I need USB 6525, I'm not sure the function of it(maybe as a relay).

2) Now I conneted input 5V to USB-6501 '+5V' pin and GND to 'GND' pin. On the other side(output side), I connected 'enable'(from motor drive) to P0.0; 'direction' to P0.1, and GND to GND.  Then I use signal express to test, the error says' missing input'.

3) I guess the next step is labview programming. Does anybody know any similar examples?

Any help would be appreciated!

0 Kudos
Message 1 of 41
(9,863 Views)

hygeia44,

 

Thank you for posting your question on the NI Formums. What type of signal input is your step motor expecting? Is it expecting a Pulse Width Modulated signal? I could better suggest some examples for controlling your step motor once I know what type of signal it is expecting. As far as which USB module would be better to use, it also depends on what signal the motor is expecting. If the motor does expect a PWM signal what is the period of the signal that the motor needs? 

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 2 of 41
(9,848 Views)

Hi Aaron,

 

Thank you for your quick reply.  I checked the motor drive. It asks for logic level external input.

1) Is there anything about parallel port? Can USB 6525 acts as a parallel port which can output logic signal? Sorry, I am not quit understand what's parallel port.

2)How to connect USB 6501 and USB 6525, if I need both of them.

3)I guess it should be like 5VDC input to USB 6501 then output voltage to USB 6525(as input) , and then USB 6525 output logical signal?  Is that correct or I do not need USB 6501?

4)Do you know similar vi examples for this kind of application ?

 

Thank you!

 

Melody

0 Kudos
Message 3 of 41
(9,837 Views)
Solution
Accepted by topic author hygeia44

Melody,

 

If the motor drive needs logic level external input I would recommend using the USB-6501 which is just a Digital Input/Output board. The USB-6525 does not have any digital outputs to control your motor drive. As I understand it you are simply trying to turn the motor drive on and off with a digital signal. It seems that you will also need to provide your motor drive with +5 Volts and GND. The USB-6501 has channels for +5V and GND. I have attached a shipping example that controls digital outputs using LabVIEW and DAQmx. This specific program can control 8 digital output lines, but it sounds like you will only need one. If you motor drive is just expecting a logic high to turn on and a logic low to turn off this example program will be able to turn on and off your motor. Just connect one of the digital output lines from the USB-6501 and then use the program to control that line. 

 

I really don't know any reason you would need to use the USB-6525 it seems to me that the USB-6501 will perform the action that you need. I hope this helps. 

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 4 of 41
(9,826 Views)

Hi Aaron,

Thanks so much for your example. I got the motor move now. But I still need to work on the direction and running time control and load cell data acquisition.

 

Melody

0 Kudos
Message 5 of 41
(9,818 Views)

Melody,

 

I am glad the example helped out. I would assume that the direction would be controlled with a digital signal as well, so modifying the code some will allow you to control the direction as well. As far as the run time control and data acquisition there are tons of examples in the NI Example Finder. It's under the Help menu in LabVIEW.

Aaron W.
National Instruments
CLA, CTA and CPI