I will try hooking the Z index to the A phase on Monday and see if it will
count.

On Sat, Jun 9, 2012 at 2:35 PM, Peter C. Wallace <[email protected]> wrote:

> On Sat, 9 Jun 2012, gene heskett wrote:
>
> > Date: Sat, 9 Jun 2012 16:15:45 -0400
> > From: gene heskett <[email protected]>
> > Reply-To: "Enhanced Machine Controller (EMC)"
> >     <[email protected]>
> > To: [email protected]
> > Subject: Re: [Emc-users] Lathe Threading
> >
> > On Saturday, June 09, 2012 04:11:29 PM Brian May did opine:
> >
> >> Low Level is 220mv
> >> High Level 3.12 Volts
> >>
> > That will satisfy ttl circuitry IF its clean, no noise allowed.
>  Generally
> > speaking, that will not make a cmos circuity happy as the high level
> isn't
> > high enough to offer very much noise immunity.  I wonder what a 10k
> > resistor from that line up to the 5 volt rail would do?
> >
>
> 7I33 TTL input conditioning is done by a ~200 ns RC followed by a
> 74HCT14 (worst case specs -40 to +85C 4.5 to 5.5V are .5 for low and 2.1
> for
> high) typical thresholds are 0.95V for low threshold and 1.6V for high
> so the signal is fine. I think the real question is whether the signal
> disappears at higher speeds.
>
>
> The encoder component will not count the index reliably at higher speeds
> but
> you can just wire the HostMot2 encoder/7I33 to count on the index and see
> if
> that works reliably at high speed (looks like you already have the hostmot2
> encoder in count up/down mode = counter mode 1)
>
>
>
> >> 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
> >
> >
> > 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)
> > My web page: <http://coyoteden.dyndns-free.com:85/gene>
> > Reputation, adj.:
> >       What others are not thinking about you.
> >
> >
> ------------------------------------------------------------------------------
> > 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