LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to make a VI to control the speed of the motor (AC Stepper)

Hi All,

 

I wanted to make a VI to control the speed of the motor (AC Stepper) (Speed-rpm vs Time-sec Graph) with a

  • a ramp up control for 5 sec;
  • a stabilization control at 5000 rpm for 60 sec;
  • a ramp down control for 5 sec.
  • I have attached a picture of the graph for reference.

Please Help. Thank you.

 

Kind regards,

Manju

0 Kudos
Message 1 of 8
(1,879 Views)

Hi Manju,

 


@Manjunath22 wrote:

I wanted to make a VI to control the speed of the motor (AC Stepper) (Speed-rpm vs Time-sec Graph) with a

  • a ramp up control for 5 sec;
  • a stabilization control at 5000 rpm for 60 sec;
  • a ramp down control for 5 sec.
  • I have attached a picture of the graph for reference.

No, you have not attached an image. (How should an image help with code problems?)

Your description reads like you want to implement a statemachine…

 


@Manjunath22 wrote:

Please Help. Anyone. ASAP. Thank you.


We are not responsible for your due times, so please don't ask for "ASAP"! We are (mostly) volunteers and don't earn our money from helping you…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(1,875 Views)

Well noted Sir.

Didn't mean to offend anyone.

I have attached the picture now.

Thank you

0 Kudos
Message 3 of 8
(1,865 Views)

Most stepper motors that I've come across work on a PWM signal, so you'll need to generate one of those and moderate the duty cycle to suit.
You'll be looking for a means of generating the PWM signal for the stepper motor or the stepper motor driver.
Look at your data sheets for the actual signal required into the stepper motor, not the speed out. Until the sparkie has spec'd the motor you as a programmer are stuffed because you don't know 90% of what you need to do. so kick back at whoever is kicking you or get the electrical specs sorted first if it's your project.

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
Message 4 of 8
(1,853 Views)

Got it !!

Thank you for the advice.👍

 

Regards,

 

Manju

 

 

0 Kudos
Message 5 of 8
(1,775 Views)

And I would definitely opt for a ready made driver circuit. Developing a driver bridge for motor control is not child's play. It requires a good selection of the right hardware components and proper filters and such to create a good motor driver instead of a random radio transmitter whose transistors will burn up regularly from the motor back EMF.

 

And if you are already at selecting such a motor driver bridge, you may just as well consider one with some onboard intelligences so instead of having to send it a carefully  crafted PWM signal you might just as well send it a simple command over serial, TCP, CAN or a few other standard interfaces to change speed or similar parameters.

 

A smart controller will only need two commands to satisfy your profile:

 

t(0s) : start motor with acceleration x1 and end speed y

t(5s) : stop motor with deceleration x2 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 6 of 8
(1,769 Views)

@rolfk wrote:

And I would definitely opt for a ready made driver circuit. Developing a driver bridge for motor control is not child's play. It requires a good selection of the right hardware components and proper filters and such to create a good motor driver instead of a random radio transmitter whose transistors will burn up regularly from the motor back EMF.

 

And if you are already at selecting such a motor driver bridge, you may just as well consider one with some onboard intelligences so instead of having to send it a carefully  crafted PWM signal you might just as well send it a simple command over serial, TCP, CAN or a few other standard interfaces to change speed or similar parameters.

 

A smart controller will only need two commands to satisfy your profile:

 

t(0s) : start motor with acceleration x1 and end speed y

t(5s) : stop motor with deceleration x2 


What??? You mean they make those? - actually I've always suspected they did. But lazy sparkies trying to make their part of the job easier would never spec a motor with such a device for me. 😋
Oh well different job now, whole different set of problems to deal with. 😏

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 7 of 8
(1,756 Views)

Just a small selection:

 

https://www.faulhaber.com/de/produkte/steuerungen/motion-controller/

https://technosoftmotion.com/de/intelligente-servoregler/

 

I have used some from the last link in the past. The interesting part about them was that multiple of them can be connected through their CAN bus with each other and one of them can work as interface to the host computer, over RS-232 or USB, through which you can control all modules over their individual address. And if you want you can even put little scripts on the controller that run independent of the host computer and can also do synchronized operations over multiple controllers.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 8 of 8
(1,750 Views)