LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stepper motor control( very basic)

Solved!
Go to solution

Hello!

 

I want to build a Labview Software/application which will directly control the stepper motor for a cnc one axis(at present).

 

first of all regarding the software my requirements are as follows:

 

1) I have to read a cad or any vector image.

 

2) accordingly i want to either

            a) generate the g code and control it through drive ( which is conventional)

            b) or directly control it via the usb (data lines of it).( i am not sure of this, please help here)

 

I have gone through the tutorial provided by the labview regarding the motion control of motor, though is there any way to do my way???

 

MY AIM IS DIRECTLY TO CONTROL THE MOTOR AND THERE WILL BE ONLY TWO COMPONENTS- MY LAPTOP AND THE STEPPER MOTOR CONNECTED TO MY LAPPIE.

 

 

pLEASE help me,

I am planning to make it my college project.

 

Srikanth Chilivery,
0 Kudos
Message 1 of 11
(4,629 Views)

You will need a stepper motor driver; it can be a separate piece of hardware, or integrated into the motor.  You cannot connect the stepper on its own directly to a USB port.  Do you know what model motor you plan to use?  Does it include a built-in driver?

0 Kudos
Message 2 of 11
(4,621 Views)

i am using m49sp-1 stepper motor of a hp laserjet printer.

 

i found the driver ic of this motor in the ciruit of the printer( now need to extract the whole circuit)

 

if i buy a separate driver, then can i control it via labview?

Srikanth Chilivery,
0 Kudos
Message 3 of 11
(4,600 Views)

@windows wrote:

i am using m49sp-1 stepper motor of a hp laserjet printer.

 

i found the driver ic of this motor in the ciruit of the printer( now need to extract the whole circuit)

 

if i buy a separate driver, then can i control it via labview?


Yes, probably.  You'll need a driver that includes some sort of serial or USB interface, sometimes described as a controller, such as http://www.linengineering.com/LinE/contents/stepmotors/R256.aspx (you'll need to find one that matches the electrical requirements of your motor).  You will also see lower-cost drivers available that are basically amplifiers and they do not connect directly to a PC - to use one of them, you need a way to generate the digital pulses that the stepper expects, and that's more work and more hardware.

0 Kudos
Message 4 of 11
(4,594 Views)

now how do i read the cad file and use it to control the drive?

Srikanth Chilivery,
0 Kudos
Message 5 of 11
(4,559 Views)

please, help!

 

How do I read a cad file in labview???

Srikanth Chilivery,
0 Kudos
Message 6 of 11
(4,527 Views)

You'll need to be much more specific.  What program generates the CAD file?  Do you have any documentation on the file format?

0 Kudos
Message 7 of 11
(4,522 Views)

I mean to say CAD as vector image file.

 

for cnc operations we can develope the design in autocad/coreldraw and other vector drawing software.

 

by just reading this file and writing the appropriate programm( also with the hardware) we can control the stepper motors(2 axis)

 

So my first aim is to read this vector image file and then do programming to get the stepper run over the lines of the image.

Srikanth Chilivery,
0 Kudos
Message 8 of 11
(4,502 Views)

You did not answer the question: what file format?  What is the extension ( .??? ) of the file type?  Do you have any documentation about that format?  I do not know of a built-in LabVIEW function for reading any vector image format, but if you search this forum, it is possible that you'll find code that someone has already written to do this.  Otherwise you will need to learn about the file format and write code yourself to read and interpret the data.

0 Kudos
Message 9 of 11
(4,496 Views)

file formats which i use are .dxf ( created by coreldraw), .plt ( never used).

but also want to read the autocad file format ( i.e. .cad)

Srikanth Chilivery,
0 Kudos
Message 10 of 11
(4,493 Views)