Invert Stepper Direction in PNCconf
- AgentWD40
- Topic Author
- Offline
- Platinum Member
- Posts: 334
- Thank you received: 92
Finally I had to manually edit the ini file and make the step scale negative on that joint to get inverted rotation. I'm up and running, but I'd just like to know if there is a way to accomplish this in pncconf without hand editing?... Or rather I'd just like to know why the first attempt doesn't work.
Also, it seems that pncconf doesn't allow inputting negative values for stepper scale, why not?
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
- Posts: 592
- Thank you received: 77
Big John also has a tool but you cannot Inver the pins from it. Sometimes manual edits are needed
Please Log in or Create an account to join the conversation.
- AgentWD40
- Topic Author
- Offline
- Platinum Member
- Posts: 334
- Thank you received: 92
Maybe it assumes a gantry would be the same direction?
I'm inexperienced with cnc, for sure. But with what I've seen in just my off handed research I would have guessed most tandem joints would run in opposite directions. Is that not the case?
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
- Posts: 592
- Thank you received: 77
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
- Posts: 10820
- Thank you received: 3565
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
- Posts: 7780
- Thank you received: 2075
In pncconf, on the tb1/tb2 tab where I select stepgens, I checked "inv" on the tandem motors "Dir gen B" pin assuming that would invert it's direction. That didn't work as expected. Am I missing something here?
Also, it seems that pncconf doesn't allow inputting negative values for stepper scale, why not?
testing 2.8 (without hardware) i see that pncconf does add the code to invert the GPIO that should be the stepper direction output - but maybe it is the wrong GPIO - maybe Peter could confirm the numbering...
negative scales should be possible but yes I see it's not accepted - Ill see to fixing that soon.
Chris
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
- Posts: 7780
- Thank you received: 2075
It will negate the scale when checked
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
- Posts: 17993
- Thank you received: 4838
testing 2.8 (without hardware) i see that pncconf does add the code to invert the GPIO that should be the stepper direction output - but maybe it is the wrong GPIO - maybe Peter could confirm the numbering...
Chris
In 2.8 and beyond its probably better to invert stepgen/pwmgen etc outputs
using the pin aliases so the configuration program does not need to know the
GPIO mapping:
setp hm2_7i96.0.stepgen.00.direction.invert_output true
Please Log in or Create an account to join the conversation.
- AgentWD40
- Topic Author
- Offline
- Platinum Member
- Posts: 334
- Thank you received: 92
actually on the motor page there is a checkbox for motor direction (bottom left)
It will negate the scale when checked
Oh I didn't notice that before, thank you for pointing that out.
But for the case of tandem joints turning in opposite directions, is there a way for pncconf to configure that without the user needing to get into the config files them selves? Should it have been enough to check the "Inv" option on the dir stepgen or was there something else I needed to do?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
- Posts: 7780
- Thank you received: 2075
Chris
Please Log in or Create an account to join the conversation.