Ok Peter, so that is resetting my original understanding. But I have been unable to get the index pulse, which is clearly present in halscope to trigger the position reset. The sensors I am using for both the toothed wheel (a pair in quadrature) and a separaste index tooth, is ATS616LSG by Allegro.
Datasheet
Just wondering if there is some magic in the devices that makes them unsuitable here. ( a straw to clutch at).
Re the speed variation, then I don't think there is anything in the config that is altering the analogout.
I have these:- But I think they are only used for the pyvcp speed display bar and at speed led. Can the act of processing them anyway do something? I guess the thing to try is a minimum basic clean build and see what goes from there.
setp lowpass.spindle.gain 1.000000
net spindle-vel-fb-rpm => abs.spindle.in
net spindle-vel-fb-rpm-abs abs.spindle.out => lowpass.spindle.in
net spindle-fb-rpm-abs-filtered lowpass.spindle.out
# ---Setup spindle at speed signals---
#sets spindle-at-speed true
net spindle-vel-cmd-rps => near.0.in1
net spindle-vel-fb-rps => near.0.in2
net spindle-at-speed <= near.0.out
#net spindle-at-speed spindle.0.at-speed <= near.0.out
setp near.0.scale 1.000000
setp near.0.difference 1.666667