Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: Newuser1 on August 29, 2012, 02:23:59 PM

Title: Increment Spindle RPM per Cut
Post by: Newuser1 on August 29, 2012, 02:23:59 PM
Hi,

I'm wondering if there is a setting within Mach3 or a M code I can use in my Gcode to make the spindle RPM increase/increment a percentage per each cut taken. Is this possible to do through Mach?

Thank you very much,
Joel
Title: Re: Increment Spindle RPM per Cut
Post by: Tweakie.CNC on August 30, 2012, 03:27:52 AM
Hi Joel,

If you are controlling your spindle speed via the Mach PWM output then spindle speed is set by the S*** command and changing speed just needs the insertion of a different S*** commands within the GCode as required.

Tweakie.
Title: Re: Increment Spindle RPM per Cut
Post by: BR549 on September 09, 2012, 11:35:48 AM
YOu can also use parametric programing to do a sub program and increment the Svalue each pass of the sub.

#1=  100   (100RPM)
G0 X0Y0Z0

M98 P1 L9
M30
o1
S#1
G1 X.010
G1 Z10
G0X0
G0Z0
#1=[#1+10]  (100+10=110 RPM)
M99

(;-) TP
Title: Re: Increment Spindle RPM per Cut
Post by: Newuser1 on September 10, 2012, 12:04:53 PM
I believe what I'm looking for is constant surface speed. Can CSS mode be enabled in the Mach 3 Lathe demo? How does one go about using CSS mode in a program?