I can try that, I have a C-Axis that I can engage and turn it very slowly
and use the halscope to find it.

On Sat, Jun 9, 2012 at 11:54 AM, Peter C. Wallace <[email protected]> wrote:

> On Sat, 9 Jun 2012, Brian May wrote:
>
> > Date: Sat, 9 Jun 2012 11:00:22 -0600
> > From: Brian May <[email protected]>
> > Reply-To: "Enhanced Machine Controller (EMC)"
> >     <[email protected]>
> > To: "Enhanced Machine Controller (EMC)" <[email protected]
> >
> > Subject: Re: [Emc-users] Lathe Threading
> >
> > I looked at the configuration CHNC and it looks the same.
> >
> > I followed andy's advice and found that the z-pulse is on pin 4.  So I
> > connected pin 4, (Z Pulse) to an encoder component A phase (encoder.0).
> > Then set the encoder component to counter mode.
> >
> > So now I have the encoder using the hostmot driver and also the Z Pulse
> > being read by the encoder component.  I turned the spindle on at 120RPM
> and
> > expected to read the counter of the encoder component counting 2 counts
> > every second.  It did not, It is not counting reliably.  Only at like
> 4RPM
> > (turning by hand) does it count reliably..
>
>
> Can you measure the Z signal with a voltmeter and very slowly turn the
> shaft
> so find the index. It sounds like maybe the signal has marginal levels.
> and by
> measuring both High and Low Z levels you can check this (though it is
> tricky
> to find the index)
>
> >
> > Shouldn't the threading start when it finds the Z-pulse, even though it
> > might be inconsistent?  Or does it need it to be consistent?  In other
> > words - could I just connect a button to pretend to be the Z pulse and
> when
> > I press the button it starts threading? (I tried this and it did not
> > work...)
> >
> > To me it looks like I either have a cable or encoder problem.  But am
> still
> > confused why it would not work at all since it is getting a signal every
> > once in a while....
> >
> > Thanks for the help
> > Brian
> >
> > On Sat, Jun 9, 2012 at 5:11 AM, John Thornton <[email protected]> wrote:
> >
> >> I have my CHNC lathe converted using 5i20 7i33 7i77 and all the wiring
> >> of the cards and my config files are here if you want to compare notes.
> >>
> >> http://gnipsel.com/shop/hardinge/hardinge.xhtml
> >>
> >> John
> >>
> >> On 6/8/2012 8:39 PM, Brian May wrote:
> >>> I am having trouble setting up threading on my lathe.  At this point I
> am
> >>> thinking my spindle encoder is bad.  I have the following setup in my
> HAL
> >>> File:
> >>>
> >>> net spindle-revs hm2_[HOSTMOT2](BOARD).0.encoder.01.position
> >>> motion.spindle-revs
> >>> net spindle-vel-fb scale.0.in motion.spindle-speed-in
> >>> hm2_[HOSTMOT2](BOARD).0.encoder.01.velocity
> >>> net spindle-index-enable
> hm2_[HOSTMOT2](BOARD).0.encoder.01.index-enable
> >>> motion.spindle-index-enable
> >>>
> >>> My Parameters are set as follows:
> >>>
> >>> setp    hm2_[HOSTMOT2](BOARD).0.encoder.01.counter-mode 1
> >>> setp    hm2_[HOSTMOT2](BOARD).0.encoder.01.filter 0
> >>> setp    hm2_[HOSTMOT2](BOARD).0.encoder.01.index-invert 0
> >>> setp    hm2_[HOSTMOT2](BOARD).0.encoder.01.index-mask 0
> >>> setp    hm2_[HOSTMOT2](BOARD).0.encoder.01.index-mask-invert 0
> >>> setp    hm2_[HOSTMOT2](BOARD).0.encoder.01.scale  1024
> >>>
> >>> For everything else, the spindle has been working fine.  I have been
> >>> running in G96 spindle speed mode, the RPM that the encoder reads is
> >>> perfect.  However, when I try and do a thread, the process never
> starts.
> >>> The machine goes to the start point and just sits there and waits.  I
> am
> >>> assuming it is waiting for an index pulse and never receives it.  From
> >> what
> >>> I have read in the manuals - when the index pulse is found, the
> >>> motion.spindle-revs goes to zero during a threading cycle.  On my
> machine
> >>> this never happens.  It just continues to count.
> >>>
> >>> I ran my G-code in the lathe sim and it seems to work fine.  I am
> using a
> >>> mesa 5i20 and a 7i33 daughter board.  The encoder is connected to the
> >> 7i33
> >>> board.  The encoder is an automation direct TRD-N1024-RZVWD.
> >>>
> >>> Am I missing something simple?
> >>>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Live Security Virtual Conference
> >> Exclusive live event will cover all the ways today's security and
> >> threat landscape has changed and how IT managers can respond.
> Discussions
> >> will include endpoint security, mobile security and the latest in
> malware
> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> _______________________________________________
> >> Emc-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/emc-users
> >>
> >
> >
> >
> > --
> > Brian May
> > www.do-precision.com
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Emc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
>
> Peter Wallace
> Mesa Electronics
>
> (\__/)
> (='.'=) This is Bunny. Copy and paste bunny into your
> (")_(") signature to help him gain world domination.
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>



-- 
Brian May
506.8862.9162 (Cell)
506.2293.6375 (Office)
www.do-precision.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to