As I understand it position is already known from absolute encoder so there is no need to run machine to a switch is hit?
On Mon, 2 Jan 2017 22:00:41 +0000 andy pugh <[email protected]> wrote: > Due to the lack of an M3 die that actually cuts a thread, and the fact > that none of the places that sell dies on a bank holiday sell dies of > a quality that I feel like buying, I spent today trying to make my > lathe home without moving. (with a complicated setup on the lathe, > maybe including a steady-rest, this can be a good feature) > > The idea is that by saving the machine position to file I can then use > the absolute single-turn resolver position for fine-position > determination and the saved position to work out how many full turns > need to be added to that. > > Adding the resolver position to the full-turns position gives me a > value that I can pass to motor-pos-fb (and, it turns out, pid.fb) such > that when the "home" button is pressed with HOME_ABSOLUTE_ENCODER = 2 > set in the INI (a new feature, thanks Dewey) the machine adopts the > current position as the true position. > > I do this with a user-space python component (as it needs file system > access) and it writes its own little file. > > I am trying to determine if I can use the existing position.txt file. > The file itself is ideal, my file ends up with exactly the same data, > but I think that if that file exists then the values are copied > directly into joint.N.motor-offset and that isn't _quite_ what I need. > > -- > 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, 1916 > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
