Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Gene Heskett
On Friday 08 May 2020 22:36:35 Dan Henderson wrote: > Thanks for the examples. I'm not going to lie, I've got some homework > to do on this. You guy's make this sound easy but to the new guy > looking in? No so much, lol Don't be glum Dan, you've already demo'd to me that you WILL get there.

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Dan Henderson
Thanks for the examples. I'm not going to lie, I've got some homework to do on this. You guy's make this sound easy but to the new guy looking in? No so much, lol On Fri, May 8, 2020 at 9:01 PM Jon Elson wrote: > On 05/08/2020 06:45 PM, Gene Heskett wrote: > > On Friday 08 May 2020 18:01:41

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Jon Elson
On 05/08/2020 06:45 PM, Gene Heskett wrote: On Friday 08 May 2020 18:01:41 Jon Elson wrote: On 05/08/2020 04:04 PM, Dan Henderson wrote: Thanks Jon and Chris! Jon do you have a code example of the Hal filter that is needed? # set up 4th DAC generator as a spindle speed control newsig

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Gene Heskett
On Friday 08 May 2020 18:01:41 Jon Elson wrote: > On 05/08/2020 04:04 PM, Dan Henderson wrote: > > Thanks Jon and Chris! > > > > Jon do you have a code example of the Hal filter that is needed? > > # set up 4th DAC generator as a spindle speed control > newsig spindle-speed float > newsig

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Jon Elson
On 05/08/2020 04:04 PM, Dan Henderson wrote: Thanks Jon and Chris! Jon do you have a code example of the Hal filter that is needed? # set up 4th DAC generator as a spindle speed control newsig spindle-speed float newsig spindle-DAC-cmd float newsig spindle-DAC-filt float newsig spindle-DAC-abs

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread andy pugh
On Fri, 8 May 2020 at 21:58, Chris Albertson wrote: > If a new digital oscilloscope is out of budget then look at one of these: > ebay.com/itm/USB-SALEAE-24M-8CH-Logic-Analyzer... >

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Dan Henderson
Thanks Jon and Chris! Jon do you have a code example of the Hal filter that is needed? On Fri, May 8, 2020 at 3:58 PM Chris Albertson wrote: > You have to compare the signals on BOTH sides of the interface to see what > is happening. The build-in halscope can only see what has crossed the >

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Chris Albertson
You have to compare the signals on BOTH sides of the interface to see what is happening. The build-in halscope can only see what has crossed the interface. Compare this to what is on the parallel port pins and also what is on the encoder side of the opto-isolators. If a new digital

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Jon Elson
On 05/08/2020 01:34 PM, Dan Henderson wrote: There are times when letting the smoke escape becomes part of the learning process :) Thanks for your guidance Gene. Would think the DC motor energy would be absorbed by the act of tapping once the M3 is turned off? Surely the G33.1 cycle doesn't

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Dan Henderson
Thanks Gene. Will consider how to get this done in the Hal based on your tips. On Fri, May 8, 2020 at 2:03 PM Gene Heskett wrote: > On Friday 08 May 2020 14:34:06 Dan Henderson wrote: > > > There are times when letting the smoke escape becomes part of the > > learning process :) > > > yes, and

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Gene Heskett
On Friday 08 May 2020 14:34:06 Dan Henderson wrote: > There are times when letting the smoke escape becomes part of the > learning process :) > yes, and we all do it, its the nature of us. > Thanks for your guidance Gene. Would think the DC motor energy would > be absorbed by the act of tapping

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Dan Henderson
There are times when letting the smoke escape becomes part of the learning process :) Thanks for your guidance Gene. Would think the DC motor energy would be absorbed by the act of tapping once the M3 is turned off? Surely the G33.1 cycle doesn't flip from 500 CW to 500 CCW does it? I'm going to

Re: [Emc-users] OT Chinese DRO

2020-05-08 Thread Chris Albertson
I doubt you really want opots on an encoder. The data rate can be VERY high. Also, I bet these encoders are already using LEDs and phototransisters. Just power the DRO from the same supply as the interface it is connected to. The price is very good. I did not know glass slide DROs ad come

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Jon Elson
On 05/08/2020 11:38 AM, John Dammeyer wrote: Hi Jon, I suppose you are using external hardware to create motion and count encoder pulses? So BASE_PERIOD isn't even used? Or is it still needed for tapping? My understanding is the SERVO_PERIOD time is used to calculate the spindle velocity

Re: [Emc-users] Spindle behaviour in LinuxCNC

2020-05-08 Thread andy pugh
On Fri, 8 May 2020 at 18:19, John Dammeyer wrote: > But I don't see where emcmotCommand->command is changed. > Need to take a break from this. Interp: https://github.com/LinuxCNC/linuxcnc/blob/2.8/src/emc/rs274ngc/interp_convert.cc#L3142 added to queue:

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Gene Heskett
On Friday 08 May 2020 13:34:36 Gene Heskett wrote: > On Friday 08 May 2020 12:09:45 Dan Henderson wrote: > > Thanks Andy/Jon/Gene. To enable Quadrature do I merely turn on > > phase-A/B/index inputs and remove “encoder-counter-mode = True”? > > Sounds good. > > > Here’s a pic of the reverse

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Gene Heskett
On Friday 08 May 2020 12:35:34 andy pugh wrote: > On Fri, 8 May 2020 at 16:58, Gene Heskett wrote: > > Humm, makes me ask, Andy. I am useing some hal trickery to actually > > sequence this turnaround and to profile it to where z can follow. > > Because I am blocking the reversal signal, using it

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Gene Heskett
On Friday 08 May 2020 12:09:45 Dan Henderson wrote: > Thanks Andy/Jon/Gene. To enable Quadrature do I merely turn on > phase-A/B/index inputs and remove “encoder-counter-mode = True”? > Sounds good. > Here’s a pic of the reverse circuit I’m making to enable M4 polarity > reversal of the DC

[Emc-users] Spindle behaviour in LinuxCNC

2020-05-08 Thread John Dammeyer
I've changed the subject line to more reflect the information I'm after. So far I've been working through hal_parport.c, encoder.c, motion.c, stepgen.c control.c and command.c. I believe this function is called at the SERVO_PERIOD rate. void emcmotCommandHandler(void *arg, long period) The

Re: [Emc-users] Sourced from: Re: Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread andy pugh
On Fri, 8 May 2020 at 18:02, John Dammeyer wrote: > > Thanks Andy, > Just more and more complicated. Need to take a step back and just figure out > how encoder edges seen as 1's and 0's in hal_parport.c turn into spindle > velocity. G33, G33.1, G76 use spindle _position_ not velocity. And if

Re: [Emc-users] Sourced from: Re: Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread John Dammeyer
Thanks Andy, Just more and more complicated. Need to take a step back and just figure out how encoder edges seen as 1's and 0's in hal_parport.c turn into spindle velocity. And in the other direction how a S600 ends up as the PWM 1's and 0's in hal_parport.c. John Dammeyer > -Original

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread John Dammeyer
> -Original Message- > From: Jon Elson [mailto:el...@pico-systems.com] > Sent: May-08-20 9:21 AM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder > > On 05/07/2020 06:33 PM, Dan Henderson wrote: > > Thanks Gene! I can go down

Re: [Emc-users] OT Chinese DRO

2020-05-08 Thread Gene Heskett
On Friday 08 May 2020 11:16:21 dave engvall wrote: > HI all, > My ancient Acu-rite III  DRO has gone flaky. I ordered one off the > following link. Some of those older devices used a light bulb that slowly got black, and a new light bulb fixes them right up. >

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread andy pugh
On Fri, 8 May 2020 at 16:58, Gene Heskett wrote: > Humm, makes me ask, Andy. I am useing some hal trickery to actually > sequence this turnaround and to profile it to where z can follow. > Because I am blocking the reversal signal, using it to stop the motor at > a controlled decel by a limit3

Re: [Emc-users] Sourced from: Re: Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Jon Elson
On 05/07/2020 06:43 PM, Dan Henderson wrote: I should have mentioned, I’m in the process of building a reverse polarity circuit to trip polarity by issuing a CCW M4 via a 5v output. My motor controller doesn’t natively support CCW. I entered the code and it made it all the way down until the

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Jon Elson
On 05/07/2020 06:33 PM, Dan Henderson wrote: Thanks Gene! I can go down to 48 PPR on the encoder. If I do so, what is the trade off for reducing resolution on my mill project? Is that enough to successfully use rigid tapping and synchronized feed/speeds? 48 pulses is 192 quadrature counts/rev,

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Dan Henderson
Thanks Andy/Jon/Gene. To enable Quadrature do I merely turn on phase-A/B/index inputs and remove “encoder-counter-mode = True”? Here’s a pic of the reverse circuit I’m making to enable M4 polarity reversal of the DC motor. On Fri, May 8, 2020 at 10:50 AM John Dammeyer wrote: > The

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Gene Heskett
On Friday 08 May 2020 10:58:57 Gene Heskett wrote: > On Friday 08 May 2020 06:59:44 andy pugh wrote: > > On Fri, 8 May 2020 at 01:23, Gene Heskett wrote: > > > If the spindle speed is steady, I have heard of folks doing rigid > > > tapping with 1 ppr. Ditto g76. > > > > You can do G76 with

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread John Dammeyer
The BASE_PERIOD value is in nanoseconds and the clue is _PERIOD which is the inverse of FREQUENCY. So 1000Hz => 1/1000 = 0.001 or 1000 microseconds. 2000Hz => 1/2000 = 0.0005 or 500 microseconds. As the frequency gets higher, the period gets smaller. JOHN > -Original Message- >

[Emc-users] OT Chinese DRO

2020-05-08 Thread dave engvall
HI all, My ancient Acu-rite III  DRO has gone flaky. I ordered one off the following link.

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Gene Heskett
On Friday 08 May 2020 06:59:44 andy pugh wrote: > On Fri, 8 May 2020 at 01:23, Gene Heskett wrote: > > If the spindle speed is steady, I have heard of folks doing rigid > > tapping with 1 ppr. Ditto g76. > > You can do G76 with 1ppr, but not, sensibly, rigid tapping. > > For rigid tapping you

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread Dan Henderson
Jon, Yours is 24,000 and equals to 41.6667kHz? Mine is 100,000 and equates to 10 kHz. I’m confused by your math here? Thanks. Sent from my iPad > On May 7, 2020, at 9:39 PM, John Dammeyer wrote: > >  >> >> From: Dan Henderson [mailto:luvtof...@gmail.com] > >> Thanks for that Jon. That

Re: [Emc-users] Sourced from: Re: Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread andy pugh
On Fri, 8 May 2020 at 03:42, John Dammeyer wrote: > Do you know which source code file has the G33.1 control? I'd like to look > at how it's done. It's one of the more deeply-embedded ones as it needs to do a lot of work in the realtime context. interp:

Re: [Emc-users] Fluctuating RPM using CUI ATM 10 encoder

2020-05-08 Thread andy pugh
On Fri, 8 May 2020 at 01:23, Gene Heskett wrote: > If the spindle speed is steady, I have heard of folks doing rigid tapping > with 1 ppr. Ditto g76. You can do G76 with 1ppr, but not, sensibly, rigid tapping. For rigid tapping you need quadrature to detect the moment of spindle reversal.