Hello Guest it is October 31, 2024, 06:07:43 AM

Author Topic: Rotary Encoder erratic readings  (Read 2057 times)

0 Members and 1 Guest are viewing this topic.

Offline Rimmel

*
  •  281 281
Rotary Encoder erratic readings
« on: July 06, 2024, 07:31:16 AM »
Mach4 4809 with plugin 285

Rotary encoder feedback is jittery. It's an Omron Rotary 24v with A B Z outpouts (E6C2-CWZ6C 60P/R).

If I set the rpm to 600 then the encoder shows 601 to 604 changing rapidly (single index). It gets worse if I use the A channel. All channels are wired and working. I have also tried using noise filtering on the pin setup. The Averaging on the spindle tab doesn't seem to help in any way.

Any ideas? The averaging on the spindle setup does nothing at all. The cable is shielded and Earthed.



thanks again

Offline Graham Waterworth

*
  • *
  •  2,731 2,731
  • Yorkshire Dales, England
Re: Rotary Encoder erratic readings
« Reply #1 on: July 06, 2024, 01:09:50 PM »
Make sure you have any de-bounce turned off or down to the minimum.
Without engineers the world stops

Offline Rimmel

*
  •  281 281
Re: Rotary Encoder erratic readings
« Reply #2 on: July 07, 2024, 06:34:44 AM »
Make sure you have any de-bounce turned off or down to the minimum.
You mean on the Pins settings? It is on 0. I have tried all different values though, it seems to make no differenrce.

thanks for the reply

Offline kf2qd

*
  •  157 157
Re: Rotary Encoder erratic readings
« Reply #3 on: July 24, 2024, 06:19:19 PM »
What kind of drive? what kind of load? How do you know this is not correct? 601-604 is a VERY SMALL error. You will chase yourself around all day trying to get that to zero and it will make no difference in the end. Kind of like spending all your time trying to eliminate all the backlash in a manual mill. that is a .066666% error on the spindle speed. Not significant.

Offline Rimmel

*
  •  281 281
Re: Rotary Encoder erratic readings
« Reply #4 on: July 25, 2024, 06:32:21 AM »
What kind of drive? what kind of load? How do you know this is not correct? 601-604 is a VERY SMALL error. You will chase yourself around all day trying to get that to zero and it will make no difference in the end. Kind of like spending all your time trying to eliminate all the backlash in a manual mill. that is a .066666% error on the spindle speed. Not significant.
VFD, 3 phase motor, no load (air cutting)

I put a laser tacho on the spindle and it reads 600.0 to 600.8rpm

So whilst I agree it doesn't seem to make much difference and it is a small amount.... except the threading will not start 50% of the time. This seems to be the G76, G32 or G92 not picking up the index. Presumably because the index is too irratic.

thanks for the reply