12-10-2021 05:49 AM - edited 12-10-2021 06:19 AM
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
Please Help. Thank you.
Kind regards,
Manju
12-10-2021 06:03 AM
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…
12-10-2021 06:09 AM - edited 12-10-2021 06:18 AM
Well noted Sir.
Didn't mean to offend anyone.
I have attached the picture now.
Thank you
12-10-2021 06:19 AM
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
12-13-2021 04:18 AM
12-13-2021 04:33 AM - edited 12-13-2021 04:42 AM
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
12-13-2021 07:51 AM
@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
12-13-2021 09:18 AM
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.