Hello Guest it is March 28, 2024, 07:38:48 AM

Author Topic: How to understand Spindle readings? I am confused..  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

Re: How to understand Spindle readings? I am confused..
« Reply #10 on: April 25, 2019, 08:56:48 AM »
Thank you Reuelt

I will get a choke I do not have one on hand.  I am using 24awg twisted pair I did not realize one was necessary. 

That being said I have read the voltages with a Keysight Multimeter and get 9.997v at the peak, 18mV at 0 both measured at DYN4 motor controller.   The odd thing appears to be the slope of the curve.  There seems to be a difference between expected "voltage-rpm" points and actual, I will create a table when I get more time.
 
I get a deviation of as much as +/- 30% between programmed speed and true rpms.  '+' error at high rpm, '-' error at low RPM

The folks at Artsoft say that what I am seeing is normal, Mach4 uses true rpms for thread cutting and I will be able to cut threads.
Re: How to understand Spindle readings? I am confused..
« Reply #11 on: May 06, 2023, 08:00:20 PM »
The Pokeys57CNC has a non-zero volt output when Mach4 outputs a S0 (zero RPM) G-Code.
In my case the offset was 71mV. My servo drive has a setting where I can compensate for that. So that went well. BUT: there is a temperature drift on the 0-10V Pokeys57CNC output as well. It is in the mV/°C range and it does affect the output.
For zero RPM, my servo drive has a dead zone programming in increments of 10mV around 0V, so it is usefull. But the true RPM will also fluctuate with that temperature drift.
Now, because we are in the analog world here, with a servo drive set up as a speed controller, we can expect some deviations, which is fine.
Since for threading operations Pokey57CNC is synchronizing with the real RPM it gets through the Ultra High Speed encoders there is no issue, other than cosmetics on your DRO Mach4 screen where there is some mismatch (if all is well in the single percent range).

I did initially set up the servo drive as a Step/Dir device and there the speed was 100% accurate. The dynamics of the drive were also superior and much more stable than the analog speed control setup. I was very happy with that. Until I tried to do some G32 and G76 threading. It is a no go. After consulting Polabs, they confirmed Step/Dir and threading combination are not supported. So I was forced to use the servo drive in analog speed mode. Very unfortunate.

Now, in analog speed controller mode, my drive has some stability problems.
Not the usual ones. The setup on a timing belt driven lathe is easy as long as you use low gains and high timing constants to avoid harsh oscillations.
In this case it seems to nicely rev up to it's set point and then starts oscillating very slowly over and under that setpoint. The frequency is low, some 0.5Hz to 2Hz and faster at RPMs higher than 500RPM. No PI setting seems to solve this. I know a lot about PI and PID controllers but somehow I still am missing something here. The voltage on the Pokeys output seems to be rock solid with a fast multimeter but I will connect a scope to it tomorrow to see how it really behaves and if there is a correlation with the RPM swing that I can see.

Hope this helps anyone working with POkeys57CNC and analog 0-10V setup.