Page 1 of 1

Spindle Interface III

Posted: Tue Feb 11, 2025 3:26 am
by jackgiz
Hi Tom,
While waiting for the new Kstep to come in I decided to upgrade to a newer Windows 10 computer in place of the old Windows 8, 32 bit computer that I have been using for years. I also downloaded to latest Kmotion 5.3.7 Software and flashed the Kflop. Now I''m back to an old problem. The spindle starts but only runs at 24,000 RPM. When I run the Step Response I get just a spike.

The last time this happened you had me change

FPGA(IO_PWMS_PRESCALE) = 1;

to

FPGA(IO_PWMS_PRESCALE) = 255;

but I'm already there. The current computer is much newer and faster. Could the computer be causing this problem? I've attached my Init and Spindle programs.

Jack

Re: Spindle Interface III

Posted: Tue Feb 11, 2025 3:57 am
by jackgiz
Hi Tom,
Update
Turns out if I change the FACTOR from .0000417 to .0000149 the spindle plays nice. Why did I have to change the FACTOR?

Jack

Re: Spindle Interface III

Posted: Tue Feb 11, 2025 10:52 pm
by Moray
The computer should have no effect, as all it's doing is sending the speed command to the KFlop, at which point the KFlop handles everything.
Operationally nothing should change, provided you're still using the same C files, and have KMotionCNC setup the same (if you've not seen it, there is a guide in the wiki for updating KMotionCNC and what files need copied - https://www.dynomotion.com/wiki/index.p ... n_Versions )

Could it be that you've inadvertently copied an old file?
(I'm quite guilty of this!)

Re: Spindle Interface III

Posted: Wed Feb 12, 2025 1:28 am
by jackgiz
Thanks Muray. I found something in your link that might explain the issue:

"However KMotionDef.h is specific to a particular Version and should not be ever copied or relocated."

I'm pretty sure I copied the old file to the new version.

Jack