[Emc-users] Index-enable pin question
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. -- Viesturs -- 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=60136231iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Index-enable pin question
On 11 November 2013 11:35, Viesturs Lācis viesturs.la...@gmail.com wrote: 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. Maybe, maybe not :-) The common reasons for going to the start of the thread and then not proceding is a problem with motion.spindle-revs not be hooked up. (revs means revolutions, not revolutions per minute) If this pin is actually connected then it maybe that it is counting in the wrong direction. it needs to count up for normal spindle rotation. (and it needs to count up at 1 unit per revolution) The spindle-enable reference you found it something completely different. This is probably the reference you need: http://linuxcnc.org/docs/html/examples/spindle.html#_spindle_synchronized_motion_a_id_sec_spindle_synchronized_motion_a -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- 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=60136231iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Index-enable pin question
I can't answer your question directly, but last night I was working to do the same thing and got it to work! I did notice the same behavior, moving to the proper X and never starting. For me the problem was that I was using both phases A and B, and that the encoder was counting down, not up. Reversing A and B fixed the problem. Maybe this will help you too. -Kip On Mon, Nov 11, 2013 at 6:35 AM, Viesturs Lācis viesturs.la...@gmail.comwrote: 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. -- Viesturs -- 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=60136231iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- 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=60136231iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Index-enable pin question
On 11 November 2013 12:40, Kip Shaffer k...@shafferhouse.org wrote: For me the problem was that I was using both phases A and B, and that the encoder was counting down, not up. Reversing A and B fixed the problem. I have had the same problem. Making the encoder scale negative is an easier fix than rewiring. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- 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=60136231iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Index-enable pin question
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? setpencoder.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-velocitymotion.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=60136231iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Index-enable pin question
2013/11/11 andy pugh bodge...@gmail.com On 11 November 2013 11:35, Viesturs Lācis viesturs.la...@gmail.com wrote: 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. Maybe, maybe not :-) The common reasons for going to the start of the thread and then not proceding is a problem with motion.spindle-revs not be hooked up. (revs means revolutions, not revolutions per minute) It is connected to hm2_5i25.0.encoder.00.position If this pin is actually connected then it maybe that it is counting in the wrong direction. it needs to count up for normal spindle rotation. (and it needs to count up at 1 unit per revolution) It is counting up. The spindle-enable reference you found it something completely different. This is probably the reference you need: http://linuxcnc.org/docs/html/examples/spindle.html#_spindle_synchronized_motion_a_id_sec_spindle_synchronized_motion_a Sorry for the mistake, yes, I already was looking at 6.1 section. Is there anything I should know about index-enable being IO pin, not plain IN or OUT? -- Viesturs -- 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=60136231iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Index-enable pin question
On 11 November 2013 16:43, Viesturs Lācis viesturs.la...@gmail.com wrote: Is there anything I should know about index-enable being IO pin, not plain IN or OUT? No, other that it can only be connected to another IO pin. It's easy enough to test. I think that you can even sets the signal without halcmd complaining Then watch the value in halmeter, it should go false then the index passes the sensor. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- 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=60136231iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users