On Monday 11 November 2013 08:35:30 Viesturs Lācis did opine: > Hello! > > I am trying to help a guy that has retrofitted a lathe to LinuxCNC. > He has 5i25 + 7i77 cards and 2.5.0 version installed. > > The problem is that I cannot figure out, how to get threading to work. > G76 command will bring the tool along X to proper thread depth and then > stop. It seems to me that it is waiting for a signal on > motion.spindle-index-enable. > That pin is connected to encoder.00.index-enable pin, I checked - there > is index pulse coming from encoder every spindle revolution, but I do > not see any pulses in Halscope on index-enable pin. > I tried playing with index-mask and index-mask-invert parameters, but no > success. > This page does not seem helpful, explaining all the details on how to > set it up: > http://linuxcnc.org/docs/html/examples/spindle.html#_spindle_enable > > I see that reference no:2 at the bottom, but I was not able to find any > explanation in manual. > > I would appreciate, if somebody could share some link, where it is > explained, how exactly spindle index-enable pin is treated in lathe > config.
Do you have this in the .hal file? setp encoder.0.index-enable true I have two odd lines in my .hal file, without which some of axis won't run: # required by axis net dumbsig motion.spindle-speed-out net spindle-velocity motion.spindle-speed-in # note, these are signal names both with a source but no "loads" specified. net spindle-index encoder.0.index-enable motion.spindle-index-enable pid.0.index-enable And: # get spindle encoder outputs net A-phase encoder.0.phase-A parport.0.pin-12-in net B-phase encoder.0.phase-B parport.0.pin-15-in net Z-index encoder.0.phase-Z parport.0.pin-13-in Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Ernest asks Frank how long he has been working for the company. "Ever since they threatened to fire me." A pen in the hand of this president is far more dangerous than 200 million guns in the hands of law-abiding citizens. ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users