On Wed, 24 Nov 2021 at 09:58, John Dammeyer <jo...@autoartisans.com> wrote:
> How does one tell the spindle to do one revolution at 0.5 rps and stop either > after one rev or when a sensor input is detected? Given that I'm running the > MESA board in step/dir mode. Presumably it is running in velocity mode? Use a mux2 to switch between normal speed control and align speed control (ie link in0 to spindle.0.speed and setp in1 to a small number. Operate the mux2 using a latch, set from a G-code digital and reset by the index pulse: http://linuxcnc.org/docs/2.8/html/man/man9/flipflop.9.html (I think you would setp the data pin, pulse the clock low-to-high to enable the mux, then let the index pulse reset it) -- 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users