I'd like to create a simple script (executed via a button) that will warm up my spindle at varying speeds for a few minutes at each step.

I quickly wrote this and have run it without the spindle powered to see how it works within Mach3 before actually using it.

Code:
Code "S12000 M3"
Message "Warming Up Spindle at 12000 RPM for 5 Minutes"
Code "G4P300"

While IsMoving()
Wend

Code "S18000"
Message "Warming Up Spindle at 18000 RPM for 3 Minutes"
Code "G4P180"

While IsMoving()
Wend

Code "S24000"
Message "Warming Up Spindle at 24000 RPM for 3 Minutes"
Code "G4P180"


While IsMoving()
Wend

Code "M5"
The code seems to flow correctly, but the dwell time isn't correct, it's roughly half of what it should be.

Ideas??

Similar Threads: