Re: [Emc-users] Real time data write to file, unexpected real time delay

2019-07-18 Thread Gene Heskett
On Thursday 18 July 2019 19:59:41 Nicklas Karlsson wrote: > On Thu, 18 Jul 2019 23:07:08 +0100 > > andy pugh wrote: > > On Thu, 18 Jul 2019 at 22:01, Nicklas Karlsson > > > > > > wrote: > > > It seems by no suprise writing real time to data to file within > > > real time task have a negative imp

Re: [Emc-users] Real time data write to file, unexpected real time delay

2019-07-18 Thread Nicklas Karlsson
On Thu, 18 Jul 2019 23:07:08 +0100 andy pugh wrote: > On Thu, 18 Jul 2019 at 22:01, Nicklas Karlsson > wrote: > > > It seems by no suprise writing real time to data to file within real time > > task have a negative impact on likelihood of real time delay. > > > > With RTAI and kernel modules I

Re: [Emc-users] Spindle control

2019-07-18 Thread Frank Tkalcevic
I did that too. I printed a 200mm diameter disk with 72 black white pairs, read with a P5587 Photoreflector. It currently only reads speed, but I'm about to replace the sensor to give quadrature output, so I can gear hob, as Andy has shown. -Original Message- From: John Dammeyer [ma

Re: [Emc-users] Real time data write to file, unexpected real time delay

2019-07-18 Thread andy pugh
On Thu, 18 Jul 2019 at 22:01, Nicklas Karlsson wrote: > It seems by no suprise writing real time to data to file within real time > task have a negative impact on likelihood of real time delay. > With RTAI and kernel modules I don't think that is is even possible. I tried non blocking fcntl(...

[Emc-users] Real time data write to file, unexpected real time delay

2019-07-18 Thread Nicklas Karlsson
It seems by no suprise writing real time to data to file within real time task have a negative impact on likelihood of real time delay. I tried non blocking fcntl(...) function and O_NONBLOCK flag without success. Adding some kind of buffer in for example shared memory between written by real t

Re: [Emc-users] Spindle control

2019-07-18 Thread Jon Elson
On 07/17/2019 08:56 PM, John Dammeyer wrote: Thanks Jon, I have lots of room under the pulley to mount something. Steel disk with slots and a hall sensor would easily do it. It's what I was going to do for simple RPM sensing into the Shumatch DRO with the reflective tape. Another project th

Re: [Emc-users] Spindle control

2019-07-18 Thread John Dammeyer
> > The requirements for rigid tapping are less stringent than for PID spindle > speed control. My 50-tooth one was entirely adequate for gear-hobbing. > > Another option would be to use a single index from the spindle and use the > motor encoder for the A and B phases. > Though you will need a

Re: [Emc-users] Spindle control

2019-07-18 Thread Gene Heskett
On Thursday 18 July 2019 05:57:28 andy pugh wrote: > On Thu, 18 Jul 2019 at 03:01, Gene Heskett > wrote: > > I have a G0704 John, and have not managed to damage those plastic > gears > > > yet, but I found a 67 slot wheel replacing the original drilled tach > > wheel, with slot interruptors had w

Re: [Emc-users] Spindle control

2019-07-18 Thread andy pugh
On Thu, 18 Jul 2019 at 03:01, Gene Heskett wrote: I have a G0704 John, and have not managed to damage those plastic gears > yet, but I found a 67 slot wheel replacing the original drilled tach > wheel, with slot interruptors had way too much quantization noise to be > used as spindle speed feedba

Re: [Emc-users] Spindle control

2019-07-18 Thread Gene Heskett
On Thursday 18 July 2019 00:29:50 John Dammeyer wrote: > > IMO the docs for howto are lacking, but think in terms of a velocity > > loop, where position is not the target, but velocity is. PID's can > > handle that nicely but the howto docs aren't as clear as they should > > be. > > > > > https://