Page 1 of 2

Spindle Slave Position Error <resolved>

Posted: Thu Jun 06, 2024 9:16 am
by friolator
I posted about this in my build thread, but it's got me stopped in my tracks at the moment and I'd like to try to move forward today, so bumping it up.

I've built a simple program in intercon on my lathe. I'm taking 5mm off a piece of delrin, 10mm long. That's the whole program. When I run it, the tool gets into position and the machine faults with a Spindle Slave Position Error.

I've looked through the forum and this seems to be related to trying to take too fast a cut. However, I don't think I'm doing that. My spindle is set to 800rpm and I'm taking 0.25mm/rev which works out to a relatively slow 50mm/min. My Z axis motors are set to a max of 800mm/min, and I can definitely move it faster than 50mm/min when jogging.

Here's a video of what it's doing:


and here's the fault:
IMG_7829.jpg
Here's the report I generated yesterday:
My spindle is a Teknic MCPV motor, so I do have a fair bit of control over that. I have the motor set to a max speed of 3000RPM. It's belted to the spindle at a 2:1 ratio, so I should get a max of 1500 on the lathe. Spindle motor acceleration is set to 1000rpm and deceleration is set to match that speed in the Teknic MSP software.

I'm using a Koyo TRD-SHR2500V5D encoder from automation direct. I've got the Wizard's encoder count set to 10,000 (4x 2500 pulses). A tachometer tells me that the speed reported by CNC12 is correct (It's set to report the speed from the encoder), so the encoder does seem to be working.

I have also tried slowing the feed rate *way* down, to 0.025mm/rev, but get the exact same error.

So what might cause this to happen? it doesn't seem like I'm pushing the machine to go too fast.

Re: Spindle Slave Position Error

Posted: Thu Jun 06, 2024 9:19 am
by cnckeith
post the intercon and g code program you are using in the photo

Re: Spindle Slave Position Error

Posted: Thu Jun 06, 2024 9:24 am
by friolator
Ok. I think I did this right. Let me know if this is what you need.
FirstTestTurn.lth
(526 Bytes) Downloaded 8 times
Here's the gcode:
FirstTestTurn-gcode.txt
(1.07 KiB) Downloaded 11 times

Re: Spindle Slave Position Error

Posted: Thu Jun 06, 2024 9:28 am
by cnckeith
you are using beta software, so i'm moving this thread to the beta forum.

Re: Spindle Slave Position Error

Posted: Thu Jun 06, 2024 9:41 am
by suntravel
G96 S600.0 M3

This is constant surface Speed 600m/min

Try to use G97 S600 M3, then the spindle will turn 600min-1

In the video it looks like the spindle stops at the start of the cut, maybe not enough power, cut too deep, too much feed rate.



Will it run without the part in the chuck?

Uwe

Re: Spindle Slave Position Error

Posted: Thu Jun 06, 2024 9:57 am
by friolator
Hmm. I changed it to G97 and it still faulted in the same way at the same line.

Re: Spindle Slave Position Error

Posted: Thu Jun 06, 2024 10:03 am
by friolator
Ahh - nevermind. I forgot to set the feed mode to f/m. now it's running.

Thanks!

Re: Spindle Slave Position Error

Posted: Thu Jun 06, 2024 10:06 am
by suntravel
I would use f/R but for this small lathe 0.1mm/rev, not 0.25

Uwe

Re: Spindle Slave Position Error

Posted: Thu Jun 06, 2024 10:13 am
by friolator
I'll give that a try. Meanwhile, this worked nicely ...


Re: Spindle Slave Position Error

Posted: Thu Jun 06, 2024 5:19 pm
by suntravel
extrem time lapse :D

Uwe