Author Topic: Manual spindle speed control?  (Read 26575 times)

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9074
    • View Profile
Manual spindle speed control?
« on: December 03, 2022, 20:45:01 pm »
I've always, only, used automatic speed control on my mill's spindle.  But I've had a failure that allows me to control the speed manually, but will not allow automatic control.

How do I change my post-processor or the g-code in a way that will allow me to start and set my spindle speed manually, any time a speed change is requested in the g-code?

I've never done it.

Thanks,
Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7564
    • View Profile
    • Cambam V1.0 French Doc
Re: Manual spindle speed control?
« Reply #1 on: December 03, 2022, 21:14:40 pm »
Hello

maybe you can add a M1 before the spindle start/speed in the mop macro?

++
David

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9074
    • View Profile
Re: Manual spindle speed control?
« Reply #2 on: December 03, 2022, 22:25:21 pm »
Yep, probably, David.  There's presently an M03 (spindle on, clockwise) followed by the speed, then a pause to allow it to come up to speed.

I think the M01 will do, although I might also have to remove the speed command, because no 'automatic' spindle commands work, right now.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2677
    • View Profile
Re: Manual spindle speed control?
« Reply #3 on: December 04, 2022, 15:58:36 pm »
Quote
I think the M01 will do, although I might also have to remove the speed command, because no 'automatic' spindle commands work, right now.
No need to remove the speed command. Unless there is a feedback to Mach3 to read the speed it simply emits the command - by PWM, frequency or modbus interface. Simply, there's no automatic speed control.
When I used a simple router with manual speed dial the Sxxxx command stayed in the code. I used it as a reminder what speed to set manually.
With the current spindle speed command is sent to the inverter via modbus and a plugin for Mach3.
In the PP you may want to add a comment line for a message to set speed after M1.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7564
    • View Profile
    • Cambam V1.0 French Doc
Re: Manual spindle speed control?
« Reply #4 on: December 04, 2022, 16:06:33 pm »
Quote
No need to remove the speed command.

+1

++
David

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2677
    • View Profile
Re: Manual spindle speed control?
« Reply #5 on: December 04, 2022, 20:27:53 pm »
Quote
message to set speed after M1
My error. BEFORE M1.

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4560
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Manual spindle speed control?
« Reply #6 on: December 05, 2022, 00:53:14 am »
I've always, only, used automatic speed control on my mill's spindle.  But I've had a failure that allows me to control the speed manually, but will not allow automatic control.

How do I change my post-processor or the g-code in a way that will allow me to start and set my spindle speed manually, any time a speed change is requested in the g-code?

I've never done it.

Thanks,
Lloyd

Didn't you upgrade your mill to a Centroid control?  Centroid has an owners support forum.  (It might only be open to pro/hobby Acorn users.  I forget.)  It might be worth a check. 
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9074
    • View Profile
Re: Manual spindle speed control?
« Reply #7 on: December 05, 2022, 01:12:15 am »
"Didn't you upgrade your mill to a Centroid control?  Centroid has an owners support forum.  (It might only be open to pro/hobby Acorn users.  I forget.)  It might be worth a check. "
--------
I did check in there.  No responses in three days.  The All-in-One-DC controller is now considered an obsolete product, and the users seem to believe so, also.

But I got it solved until I fix the automatic speed setting issue:  The Speed command IS acted upon by the Centroid post, and requires the machine to be in automatic spindle mode.  But just commenting-out the command (and the M3 preceeding it) fixes it.  I just set the speed during the pause-for-operator during a tool change.  Since the g-code is visible on the console, I can read the speed from there.

Also, the M1 command is ignored by the Centroid controller.  It does nothing at all.

But I'll be milling in the morning.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1886
    • View Profile
Re: Manual spindle speed control?
« Reply #8 on: December 05, 2022, 03:39:43 am »
Quote
Also, the M1 command is ignored by the Centroid controller.  It does nothing at all.
this might be of interest.
Dave

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4560
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Manual spindle speed control?
« Reply #9 on: December 05, 2022, 04:21:46 am »
Try M0

Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9074
    • View Profile
Re: Manual spindle speed control?
« Reply #10 on: December 05, 2022, 12:42:08 pm »
Yep, Dave and Bob.  Although I don't need the extra pause, it would be nice to have it working the way I initially intended.

I'm heading out to the shop in about ten minutes.  I'll give M0 a try.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9074
    • View Profile
Re: Manual spindle speed control?
« Reply #11 on: December 05, 2022, 13:36:38 pm »
And yes:  M0 works fine on this control.  I haven't found where the 'optional stop' switch is, yet, for the M1 command.  I'll have to look in the AIODC docs to find that.

In the meanwhile, I can run my jobs.  And I think I (mentally) deduced where the problem is with the automatic speed control.  Since the solenoids and board outputs are working properly to control the speed, I must assume that either the speed position potentiometer on the machine, or the A/D input serving it on the controller board is/are failing.  That might involve disassembling that head again, so it'll have to wait until this project is finished.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"