I am trying to control a stepper motor using a Raspberry Pi and CoDeSys. Can anyone suggest the easiest way to do this?
So far i have not been able to find a stepper control function in any of the libraries. Is there a library containing a function block generating pulses for a stepper motor available which i preferably can use in combination with the SoftMotion CNC library? Or should i be looking for something else?
one option could be to use a EK1100 Ethercat Coupler and a EL2521 Puls Train Output terminal.
Thank you for your reply. Using you proposed method would require the purchase of new hardware, is that correct?
At this moment i own a stepper motor + driver and a Raspberry Pi + PiXtend. If possible, i would like to control the motor without the use of additional hardware.
guess not so easy possible.
What is the Interface on your stepper motor driver?
I am using this motor: http://www.igus.eu/wpck/7662/N11_6_14_1 ... ?C=DE&L=en (without encoder or brakes)
And this is my driver: "Powerstep PSD5042-2P"
It really depends on your needs. Your controller has digital inputs for direction enable and pulses. You can hook up those to the Raspberrypi's GPIOs. But this is not so elegant. There are controllers with bus systems and even some drives with integrated controllers.
I want to use the same setup that @rmalle described. @rmalle would you be kind and tell me how did you solve the problem? Thankyou :).
Log in to post a comment.