Hi Andy,
I don't know.  How can I tell?  The encoder is connected to the MESA 7i92H and 
according to my documentation is noisy so needs to be filtered.  In either case 
it looks like the MESA board is providing Velocity and Position.  I'd make a 
guess that based on its own internal clock it would provide a usable velocity. 

The problem, and might only be fixed in hardware is when I made the disk I used 
a 4mm mill instead of the 3mm called for in the G-Code. Didn't notice until the 
second slot at which point it was already too late.  I'd guess at this slow a 
speed that the encoder will provide two different speeds between quadrature 
edges.  

Must really fix that.

Here's some of the HAL file if that helps.
John


# This machine has a spindle so we need one of those.
loadrt abs names=abs.spindle
# and the encoder can be noisy so filter out high frequency noise.
loadrt lowpass names=lowpass.spindle
# and convert the number of lines to RPS.
loadrt scale names=scale.spindle
# load real time a limit2 and a near with names so it is easier to follow
loadrt limit2 names=spindle-ramp
loadrt near names=spindle-near-speed

#*******************
#  SPINDLE S
#*******************
#===========================================================
# SPINDLE ENCODER
# Hardware assumptions:
#    An encoder is connected to the spindle and puts out 60 pulses per 
revolution on phase A
#    The encoder A phase is connected to the DB25 #2 Pin 11
#    The encoder B phase is connected to the DB25 #2 Pin 12
#    The encoder index pulse is connected to DB25 #2 Pin 13

# ---Encoder feedback signals/setup---
setp    hm2_7i92.0.encoder.01.counter-mode 0
setp    hm2_7i92.0.encoder.01.filter 1
setp    hm2_7i92.0.encoder.01.index-invert 1
setp    hm2_7i92.0.encoder.01.index-mask 0
setp    hm2_7i92.0.encoder.01.index-mask-invert 0
setp    hm2_7i92.0.encoder.01.scale  [SPINDLE_9]ENCODER_SCALE


# couple the encoder output to the motion control system so it knows what the 
spindle is doing.
net spindle-revs             <=   hm2_7i92.0.encoder.01.position
net spindle-vel-fb-rps       <=   hm2_7i92.0.encoder.01.velocity
net spindle-index-enable     <=>  hm2_7i92.0.encoder.01.index-enable


> -----Original Message-----
> From: andy pugh [mailto:bodge...@gmail.com]
> Sent: August 14, 2023 1:06 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Rigid tapping
> 
> On Mon, 14 Aug 2023 at 20:57, John Dammeyer <jo...@autoartisans.com>
> wrote:
> 
> 
> > What I found is that it moved in short spurts.
> 
> Are you using straight encoder position, or position-interpolated?
> (this might not be an option depending on what is counting the encoder
> pulses)
> 
> --
> 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



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to