| setp bb_gpio.p8.out-11.invert 1 |
Hello all,
I´ve been discussing this with Sarah, and searching, but haven´t come accross a definitive answer on how to invert the logic on the DIR pins.
The thing is, the pin (p8.out-11 for X, for example) is being used by STEPGEN (setp hpg.stepgen.00.steppin 0x4C), and so if I just use:
setp bb_gpio.p8.out-11.invert 1
as suggested by Sarah, I get:
Xylotex.hal:318: parameter or pin 'bb_gpio.p8.out-11.invert' not found
Shutting down and cleaning up Machinekit...
I figured I had to put 111 among the "loadrt hal_bb_gpio output_pins=" part of Xylotex.hal file, and when I get it to work the motor just moves in one direction.
I wonder if this behavior is because I´m inverting a pin being use with STEPGEN already? Or do I need to invert something else also?
Anyway, I´m trying to grasp the logic of how to set this up but I´m quite confused, would appreciate some clarification.
I just wanna change polarity on the DIR pin on Xylotex.
Thanks,
Diego
--
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 machinekit+...@googlegroups.com.
Visit this group at http://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
On 02 Dec 2015, at 08:15, Mr Molina wrote:Hello all,
I´ve been discussing this with Sarah, and searching, but haven´t come accross a definitive answer on how to invert the logic on the DIR pins.
The thing is, the pin (p8.out-11 for X, for example) is being used by STEPGEN (setp hpg.stepgen.00.steppin 0x4C), and so if I just use:
setp bb_gpio.p8.out-11.invert 1
as suggested by Sarah, I get:
Xylotex.hal:318: parameter or pin 'bb_gpio.p8.out-11.invert' not found
Shutting down and cleaning up Machinekit...If i'm not misstaken, the step pin is something like "setp hpg.stepgen.{nr}.steppin"