Well, it's working now with HOME_INDEX_NO_ENCODER_RESET = YES, so I'm a happy little clam. If it didn't, I was about to start ripping into source code and breaking stuff because I wanted it to work. You guys created a monster. I like Linuxcnc so much, I started learning C and plan on moving to C++ and Python when I get proficient with it 😆😆😆😆.
On the surface, it looked like I was doing everything correctly. The prox was set up as software encoder phase Z and it was catching the signal. If you didn't know how the function works at a code level, you'd be pulling your hair out as well, I'm sure. Phil T. The Feral Engineer Check out my LinuxCNC tutorials, machine builds and other antics at www.youtube.com/c/theferalengineer On Sun, Apr 4, 2021, 12:25 PM andy pugh <[email protected]> wrote: > On Sun, 4 Apr 2021 at 16:26, Feral Engineer <[email protected]> > wrote: > > But that's how I have it set up. The prox is set as encoder index and it > > finds it but after it finds it, it goes back to the position the machine > > was at during startup. That's what I'm trying to fix. How do i fix this? > > > The point of HOME_USE_INDEX is to home using the index of an encoder. The > clue is rather in the name. > > You are not using an encoder, so it isn't working. > > This is what it meant to happen: > > Normal homing sequence. > Then index-enable is asserted. > The index is hit the encoder is zeroed (typically inside an FPGA) > LinuxCNC spots that the encoder is zeroed, and looks at the encoder > position. > This position will be slightly past the index, due to timing. The current > counts show the exact point that the encoder index happened. So the system > can use the current joint.N.position-fb as an accurate home. > > But, in your case, the feedback is not from any sort of encoder, it is from > a stepgen. Which isn't zeroed. > Which is why, with your setup, the home position is taken to be the exact > point that the stepgen was initialised. > > HOME_USE_INDEX works really very well, if used as intended. It doesn't work > at all if enabled on an unsuitable system. In fact on your system the final > result is exactly as if you had not homed at all. > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is designed > for the especial use of mechanical geniuses, daredevils and lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
