Re: EMC2 Screw Cutting Problem
Posted by
mart_wid
on 2008-05-21 14:42:33 UTC
Steve.
Thanks for a most helpful reply - it's allowed me to get the carriage
moving with the spindle - something I couldn't do in 2 days. You are
a star.
It seems like the configuration wizard in EMC2 is faulty as it
consistantly set up my machine with the wrong parameters for
successful threading despite my best efforts.
The one small fly in the ointment is that the Z axis surges instead
of moving smoothly in time with the spindle. Does anyone know what
might be causing that to happen? Any help is much appreciated.
Thanks again, Martin.
Thanks for a most helpful reply - it's allowed me to get the carriage
moving with the spindle - something I couldn't do in 2 days. You are
a star.
It seems like the configuration wizard in EMC2 is faulty as it
consistantly set up my machine with the wrong parameters for
successful threading despite my best efforts.
The one small fly in the ointment is that the Z axis surges instead
of moving smoothly in time with the spindle. Does anyone know what
might be causing that to happen? Any help is much appreciated.
Thanks again, Martin.
> The way EMC2 does threading is basically by electronically gearingaxis
> motion to the position of the spindle. That's a little differentfrom
> the way the other controls do it - I think they use estimatedvelocity
> to more or less do feed rate scaling.read the
>
> It's not clear to me that you have loaded an encoder counter to
> spindle feedback. When using Halscope, were you looking at theparallel
> port pins? I'll assume that the two bits are connected to parallelport
> pins 11 and 12 - you'll need to edit those to whatever isappropriate
> for your machine. Lines that begin with "#" are comments, and maybe
> left out or included (they'll be ignored).CSS
>
> Here is what you'll need to add to one of your HAL files:
>
> #--- START HERE
> # load the software encoder counting module
> loadrt encoder num_chan=1
>
> # we need counter mode, since this isn't a quadrature encoder
> setp encoder.0.counter-mode 1
>
> # 48 slots = 48 counts per revolution
> setp encoder.0.position-scale 48
>
> # reading the parallel port needs to be done in the fast thread
> addf encoder.update-counters base-thread
>
> # updating position output can be done at a slower rate
> addf encoder.capture-position servo-thread
>
> # connect the two parallel port input pins to the encoder counter
> # change the numbers to suit your setup
> net count_bit encoder.0.phase-A parport.0.pin-11-in
> net index_bit encoder.0.phase-Z parport.0.pin-12-in
>
> # connect the encoder counter output to the motion controller
> net spindle_pos encoder.0.position motion.spindle-revs
>
> # connect the encoder velocity output to the motion controller, for
> and FPR modesto
> net spindle-vel encoder.0.velocity motion.spindle-speed-in
>
> # and allow the motion controller to tell the encoder counter when
> reset the counttake
> net spindle-index motion.spindle-index-enable encoder.0.index-enable
> # --- END HERE
>
> It looks complex, but it's not that bad, really :)
> You may want some filtering on the spindle velocity output. If so,
> a look at the sample config sim/lathe - it has everything set upfor
> threading, CSS, FPR, nice on-screen readouts, etc.specific
>
> Side note: there aren't too many EMC2 users on this list. For
> configuration information, it may be better to ask on the emc-usersmail
> list. You can subscribe here:
> <https://lists.sourceforge.net/lists/listinfo/emc-users>, or just
> to the list here: <emc-users@...>
>
> Hope this helps
> - Steve
>
Discussion Thread
mart_wid
2008-05-21 06:13:36 UTC
EMC2 Screw Cutting Problem
Stephen Wille Padnos
2008-05-21 07:13:29 UTC
Re: [CAD_CAM_EDM_DRO] EMC2 Screw Cutting Problem
mart_wid
2008-05-21 14:42:33 UTC
Re: EMC2 Screw Cutting Problem
Stephen Wille Padnos
2008-05-21 15:40:37 UTC
Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem
mart_wid
2008-05-22 03:34:20 UTC
Re: EMC2 Screw Cutting Problem
Stephen Wille Padnos
2008-05-22 11:15:08 UTC
Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem
mart_wid
2008-05-22 13:32:53 UTC
Re: EMC2 Screw Cutting Problem
Stephen Wille Padnos
2008-05-22 13:40:15 UTC
Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem
mart_wid
2008-05-22 14:49:33 UTC
Re: EMC2 Screw Cutting Problem
Stephen Wille Padnos
2008-05-22 15:12:52 UTC
Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem
mart_wid
2008-05-23 10:31:58 UTC
Re: EMC2 Screw Cutting Problem
mart_wid
2008-05-23 10:59:54 UTC
Re: EMC2 Screw Cutting Problem
Stephen Wille Padnos
2008-05-23 12:27:36 UTC
Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem
mart_wid
2008-05-23 14:25:17 UTC
Re: EMC2 Screw Cutting Problem
Stephen Wille Padnos
2008-05-24 07:47:21 UTC
Re: [CAD_CAM_EDM_DRO] Re: EMC2 Screw Cutting Problem
mart_wid
2008-05-24 10:24:43 UTC
Re: EMC2 Screw Cutting Problem