[LinuxCNC/linuxcnc Issue#164] Excessive jitter spindle position tracking

未分类 bolang 4个月前 (10-15) 22次浏览

Issue #164 | 状态: 进行中 | 作者: robEllenberg | 创建时间: 2016-09-17

标签: enhancement trajectory-planner


Looking at axis velocity / acceleration during G33 motions, there is a noticeable jitter in velocity, and large acceleration swings. The image below (zoomed in significantly) shows this occuring.

!image

This is strange to see in a simulation config, because the encoder signal is very high resolution, and the the simulated spindle speed signal is clean, constant, and smooth. This obviously isn’t representative of real machines with real encoders, but I believe this ideal case shows a flaw in the position error calculation.

Here are the steps I follow to reproduce the issue:

1. Load an axis sim config with a simulated spindle encoder (I used AXIS as well, but it doesn’t matter)
2. Configure HALScope with two channels, Zvel and Zacc
3. Run this G code program

G90 G20 G64 P0.005
G0 Z0
S240 M3
G33 Z-.5 K0.1
G0 Z0.1
M5
M2

Here’s a branch with this change implemented. With a perfect spindle encoder, there is no jitter in the motion tracking:

!image

With encoder resolution of 256 PPR, there is still jitter, but not as much:

!image

Compare this to stock 2.7 performance with the same simulated spindle encoder:

!image

For reference, here’s a test branch with stock 2.7 spindle tracking and the quantized spindle encoder.


评论 (3)

#1 – rene-dev 于 2017-11-27

Im not sure its related, but I noticed that the velocity display in gremlin is not stable during a g33.
Any reason this has not been merged?


#2 – zultron 于 2018-08-03

@rene-dev, this is another issue without an actual PR. I submitted #479 for #167; you wanna go for this one? ;)


#3 – rene-dev 于 2018-08-12

@zultron done


原始Issue: https://github.com/LinuxCNC/linuxcnc/issues/164

喜欢 (0)