Spindle Interface III

Moderators: TomKerekes, dynomotion

Post Reply
jackgiz
Posts: 41
Joined: Wed Mar 08, 2023 3:37 am

Spindle Interface III

Post by jackgiz » Tue Feb 11, 2025 3:26 am

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
Attachments
SpindleOnCWJogV2.c
(1.13 KiB) Downloaded 7 times
SpindleMillJogV2.c
(997 Bytes) Downloaded 6 times
Init File 020825.c
(10.88 KiB) Downloaded 6 times
Step Response.JPG

jackgiz
Posts: 41
Joined: Wed Mar 08, 2023 3:37 am

Re: Spindle Interface III

Post by jackgiz » Tue Feb 11, 2025 3:57 am

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

Moray
Posts: 302
Joined: Thu Apr 26, 2018 10:16 pm

Re: Spindle Interface III

Post by Moray » Tue Feb 11, 2025 10:52 pm

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!)

jackgiz
Posts: 41
Joined: Wed Mar 08, 2023 3:37 am

Re: Spindle Interface III

Post by jackgiz » Wed Feb 12, 2025 1:28 am

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

Post Reply