Re: [Emc-developers] jog wheel problem

2017-04-03 Thread Jon Elson
On 04/03/2017 04:15 PM, Sebastian Kuzminsky wrote: > On 03/31/2017 12:48 PM, Stuart Stevenson wrote: >> results as follows >> >> start machine >>encoder count = 0 >>ilowpass in = 0 >>ilowpass out = 0 >> >> move positive one click >>encoder count = 4 >>

Re: [Emc-developers] jog wheel problem

2017-04-03 Thread Sebastian Kuzminsky
On 03/31/2017 12:48 PM, Stuart Stevenson wrote: > results as follows > > start machine > encoder count = 0 > ilowpass in = 0 > ilowpass out = 0 > > move positive one click > encoder count = 4 > ilowpass in = 4 > ilowpass out = 3 Is your ilowpass.scale = 1?

Re: [Emc-developers] jog wheel problem

2017-04-01 Thread Gene Heskett
On Friday 31 March 2017 11:32:53 Kenneth Lerman wrote: > Up the thread a ways, Gene commented that the MPG generates one count > per detent. > > I thought that the encoder in the MPG generates one *cycle* per > detent. A cycle is represents four quadrature edges which means that > you get four

Re: [Emc-developers] jog wheel problem

2017-03-31 Thread John Kasunich
try changing line 38 from: out = (int)(rtapi_s64)(value * scale); to out = (int)(rtapi_s64)((value * scale)+0.5); This looks like a case where the floating point 'value' might be 3.999, but the conversion to integer results in 3 Adding 0.5 makes it round to the nearest integer.

Re: [Emc-developers] jog wheel problem

2017-03-31 Thread Stuart Stevenson
Gentlemen, Having the problem on 4 mpg's (three single and on diff) I am relatively sure the problem isn't hardware. Halshow (watch) shows the encoder counts accurate and ilowpass counts are incorrect I suspect ilowpass. ilowpass is so simple it is almost impossible to see how it could be

Re: [Emc-developers] jog wheel problem

2017-03-31 Thread Gene Heskett
On Friday 31 March 2017 11:32:53 Kenneth Lerman wrote: > Up the thread a ways, Gene commented that the MPG generates one count > per detent. > It does not, the encoder scale is set to 4, so at the encoder out, one "click" is 4, but later I mult2 that by .250, and this is what is fed to

Re: [Emc-developers] jog wheel problem

2017-03-31 Thread Kenneth Lerman
Up the thread a ways, Gene commented that the MPG generates one count per detent. I thought that the encoder in the MPG generates one *cycle* per detent. A cycle is represents four quadrature edges which means that you get four counts per cycle. So that's four counts per detent. There is a

Re: [Emc-developers] jog wheel problem

2017-03-30 Thread Jon Elson
On 03/30/2017 04:04 AM, andy pugh wrote: > On 30 March 2017 at 04:11, Jon Elson wrote: >> Now, I am using ilowpass on a 2.6 install, possibly >> something has changed. > Nothing has changed since 2014 >

Re: [Emc-developers] jog wheel problem

2017-03-30 Thread andy pugh
On 30 March 2017 at 04:11, Jon Elson wrote: > Now, I am using ilowpass on a 2.6 install, possibly > something has changed. Nothing has changed since 2014 https://github.com/LinuxCNC/linuxcnc/commits/master/src/hal/components/ilowpass.comp The whole component is only 2

Re: [Emc-developers] jog wheel problem

2017-03-29 Thread Jon Elson
On 03/29/2017 11:22 AM, Stuart Stevenson wrote: > further developments > > testing with single and differential mpg yielded similar but slightly > different results > > halshow revealed ilowpass losing random counts between in and out > > removal of ilowpass yielded much better results but still

Re: [Emc-developers] jog wheel problem

2017-03-29 Thread Kirk Wallace
On 03/29/2017 08:43 AM, Jon Elson wrote: > On 03/28/2017 12:27 PM, Stuart Stevenson wrote: >> Gentlemen, >> Setup at Helix (my shop) >> Wheezy >> Linuxcnc2.7 - git pull and compile this morning >> PPMC interface >> Jog Wheel - Fanuc type A60-0201-5001 - 100 detents per wheel revolution > John

Re: [Emc-developers] jog wheel problem

2017-03-29 Thread Stuart Stevenson
further developments testing with single and differential mpg yielded similar but slightly different results halshow revealed ilowpass losing random counts between in and out removal of ilowpass yielded much better results but still not perfect the single mpg was better after removal of

Re: [Emc-developers] jog wheel problem

2017-03-29 Thread Jon Elson
On 03/28/2017 12:27 PM, Stuart Stevenson wrote: > Gentlemen, > Setup at Helix (my shop) > Wheezy > Linuxcnc2.7 - git pull and compile this morning > PPMC interface > Jog Wheel - Fanuc type A60-0201-5001 - 100 detents per wheel revolution John Kasunich gave out some old Fanuc MPGs at a code fest

Re: [Emc-developers] jog wheel problem

2017-03-29 Thread Gene Heskett
On Wednesday 29 March 2017 07:40:00 Stuart Stevenson wrote: > Gentlemen, > > Thanks Gene - you have given me some things to think about and work > on. I will be working on this today. > > > another bit or two of information > > I have tried a differential mpg with slightly better results but

Re: [Emc-developers] jog wheel problem

2017-03-29 Thread Stuart Stevenson
Gentlemen, Thanks Gene - you have given me some things to think about and work on. I will be working on this today. another bit or two of information I have tried a differential mpg with slightly better results but still with errors. Has anything changed to cause this as the config files are

Re: [Emc-developers] jog wheel problem

2017-03-28 Thread Gene Heskett
On Tuesday 28 March 2017 13:27:42 Stuart Stevenson wrote: > Gentlemen, > Setup at Helix (my shop) > Wheezy > Linuxcnc2.7 - git pull and compile this morning > PPMC interface > Jog Wheel - Fanuc type A60-0201-5001 - 100 detents per wheel > revolution Touchy interface with Rapid Over Ride choice

[Emc-developers] jog wheel problem

2017-03-28 Thread Stuart Stevenson
Gentlemen, Setup at Helix (my shop) Wheezy Linuxcnc2.7 - git pull and compile this morning PPMC interface Jog Wheel - Fanuc type A60-0201-5001 - 100 detents per wheel revolution Touchy interface with Rapid Over Ride choice added and the MV: label changed to DRY RUN. Setup at MPM (my old shop)