On 1/20/2019 6:47 AM, [email protected] wrote: > Hello, > > Maybe someone can answer this question, I am struggling to figure this out. > > I have a stepper driver wich requires four wires for the direction signa. > CW+/CW- CCW+/CCW-. > > I can use the stepconfig Wizard and some manual editing to get a working > x-axis using step_type = 1 on a vintage PC with parallel port and a simple > break out board. > > Now there is this BeagleBoneBlack, that I want to use for same thing. I > could not use a stepgen step_type 1 with the "hal_pru_generic" driver. > > Does anybody know how that would work? Or can push me in the right > direction? > Are not all step types supported by the BBB PRU driver? It feels a little > like it from this manual, but I was not sure. > > www.machinekit.io/docs/man/man9/hal_pru_generic
The PRU stepgen only generates step/direction signals, the other "flavors" supported by the software stepgen HAL component are not implemented. step_type = 1 is up/down. The step/dir signals generated by the BBB can be turned into up/down signals with a couple logic gates. ...or someone could write an up/down version of the PRU stepgen. I looked at trying to support up/down along with step/dir when I wrote the hal_pru_generic driver, but the two didn't really mesh that well. Most of the logic is actually in keeping track of the required minimum delays rather than in the step generation itself. -- Charles Steinkuehler [email protected] -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
