LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling stepper motor through serial communication in labview when the programming manual controlling the motor is given

Hi Preetisar,

 

wonderful answer !

igot the com address of my RS232 ! perfect !!!!!

 

now, i have an other question ... 

the RS232 sends only high / low wignal (digital signal)

but, i was thiniking that to make a step motor work, i haveto send an anlog courant isnt it?

does this mean that i can make the step motor work by justs ending digital pusles?

 

is there a manual for driving step motor with labview?

 

thank you, all

 

amayas

0 Kudos
Message 11 of 33
(3,216 Views)

The manual for controlling the motor would have come from the vendor. Have you read it? Are you absolutely sure the 4 pins on the motor are for a serial connection? If so, the firmware inside the motor is going to translate the commands you send over the serial port into the actual physical signals required to make the motor move. This is pretty basic knowledge related to the motor itself and not at all related to LabVIEW.

0 Kudos
Message 12 of 33
(3,210 Views)

Dear All,

 

I finally got my motor, and it has 6 and not 4 wires in fact

it is a  COPAL ELECTRA SP-57, 4 phases, 12V motor

 

this page gives the caractics of the step motor : 

http://oddmix.com/elec/mot_st_copal_sp57.html

 

and this one gives the wiring and the sequence to send to the motor ...

http://copal-electronics.info/en/0009b/00eb5.pdf

 

Do you think that this motor car be driven with ONLY LABVIEW (of course with a 12V source) and with out a driver or a stepper?

 

thank you for your help

 

amayas

0 Kudos
Message 13 of 33
(3,173 Views)

amayas,

 

The oddmix page lists two different resistances for the windings 36 and 63 ohms!  Regardless of which is correct, you cannot drive a motor like this directly from LabVIEW because LV is only software.  You will need some kind of device to produce the four logical output voltages.  You will also need an amplifier or power switching device between the logical outputs and the motor windings.

 

Digital output devices typically can generate a few milliamperes at 5 volts while the motor requires 150 to 350 milliampers at 12 volts.

 

Lynn

0 Kudos
Message 14 of 33
(3,166 Views)

Thank you Lynn,

 

my motor is the 36 Ohms.

so, any step moter needs a driver and an amplifier, is it what you mean?

 

if no, can you advise me a step motor that can be driver with only LV? ...

 

thanks a lot

 

amayas

0 Kudos
Message 15 of 33
(3,161 Views)

does your motor come with a manual containing the commands for programming it?

0 Kudos
Message 16 of 33
(3,155 Views)

@Preetisar wrote:

does your motor come with a manual containing the commands for programming it?


According to the spec sheets he posted it's just a stepper motor.  It has no driver or control logic.
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 17 of 33
(3,147 Views)

PreetisarNIquist, thank you for your asnwers,

 

yes, as NIquist said, it's all what i have ...

so, i think that finally, there is no hope to control it with only LabView !

 

thanks for all of you

 

amayas

0 Kudos
Message 18 of 33
(3,130 Views)

Yes.  You need a driver or amplifier.

 

There are many motors which come with controllers which can communicate with a computer via RS-232, Ethernet, and probably every other communication interface. 

 

When you have specifications for speed, torque, and information about how the motor wll be used with regard to the operator interrface to the software, then you can begin to search for a suitable controller and motor.  You NI rep might be a good place to start.

 

Lynn

0 Kudos
Message 19 of 33
(3,129 Views)

Hi, I'm not sure whether this is the right place for asking this question or not and if not, then please guide me to the right place for asking such question. Thanks.

I have a stepper motor with the Vector Network Analyzer Anritsu MS4623B. I got it up and running with the LabWindows/CVI. I need to sync the motion of the stepper motor with my data acquisition. Basically, I have to acquire the data in a way that in the start the motor will come back to home position wherever it was and then I want to move it to the specific position to do the measurements (For Example, I want to measure the 40 GHz channel between 1m to 3m movement of a stepper motor on a linear positioning system (ball-screw)). I've interfaced the VNA with the PC using LabWindows/CVI and I've controlled the clockwise and anti-clockwise movements of the stepper motor using LabWindows/CVI but I'm unable to sync the system in a way that whenever I run the code, the motor will run back to the home position and then move to a specific measurement start position and move till the end position and in between do the increment and stop and acquire the data. Is there any one to help me please? It's really urgent please and I'm doing this thing first time so please guide me in a proper way. I shall really apprecaite that and will be highly obliged with you. Thanks for your time and concern.

 

Thanks and Regards.

:smileyhappy:

0 Kudos
Message 20 of 33
(3,084 Views)