Forum Controladores/PLC

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

Stepper Motor

Avatar
Pedrani

Hi.
I need to control 6 stepper motors, pto (Pulse Train output) with Mduino 20Plus. Is there a library to do this?
Second question, is it possible to drive it with digital outputs?
I read that the maximum frequency is 4Khz, is that correct?

Thanks to all.

Avatar
Descartar
3 Respuestas
0
Avatar
Edu B.
Best Answer

Hi, 

Can't I use "normal" (not PWM) outputs to send pulses to a stepper driver (with clock/direction inputs)?

I don't expect needing to send more than 1kHz (800Hz should be enough).

I used the library AccelStepper with an Arduino Mega Board (not integrated as PLC) and It worked quite well.

Avatar
Descartar
0
Avatar
Pedrani
Best Answer

Thank you very much

Avatar
Descartar
0
<div> <h5 class="o_wforum_bio_popover_name mb-0"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div> <span itemprop="name">Marti Guillem Cura</span> <span><img src=https://www.industrialshields.com/es_ES/forum/forum-controladores-plc-17/question/"/web/image/res.country/68/image/España?unique=a14a800%22 class="img img-fluid country_flag" alt="España"/></span> </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> </div> </address> </h5> <span class="o_wforum_bio_popover_info"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Marti Guillem Cura</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <div class="css_editable_mode_hidden"> <div class="mb-2"> <br/> </div> <b class="mt-4"><i class="fa fa-diamond text-secondary"></i> 1000000015</b> <div style="display: inline-block"> <b>|</b> <span class="fa fa-trophy badge-gold ml-2" role="img" aria-label="Gold badge" title="Gold badge"></span> 0 <span class="fa fa-trophy badge-silver ml-2" role="img" aria-label="Silver badge" title="Silver badge"></span> 0 <span class="fa fa-trophy badge-bronze ml-2" role="img" aria-label="Bronze badge" title="Bronze badge"></span> 0 </div> <div class="mt-2"> <div class="o_forum_tooltip_line"> <span>Sant Fruitós de Bages</span><span>, </span><span>España</span> </div> </div> </div> </div> </address> </span> <div class="o_wforum_bio_popover_bio"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Marti Guillem Cura</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <span> </span> </div> </address> </div> </div> </div> "> Avatar
Marti Guillem Cura
Best Answer

HI,

In order to control 6 stepper motors using only an M-Duino 21+ is not possible as each motor need to use 3 pwm digital outputs. If you want to implement this you will need at least 3 M-Duino 42+ PLCs.

In the following blog, there is a full explanation of how to implement and use the stepper motors using our Industrial Shields PLCs and a code example for programming them.

As you have read, the maxium frequency for the digital outputs is 4 KHz.

1 Comentario
Avatar
Descartar
Avatar
Pedrani
-

Thank you very much