Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: derekbpcnc on January 22, 2011, 12:21:53 PM

Title: Global feedrate variable
Post by: derekbpcnc on January 22, 2011, 12:21:53 PM
Hello,

Is it possible to have at the start of the code several feed rate variables-
So this will allow me to change the feed rate in one place rather than having to trawl throgh and change each line I need.

Would be usefull to me when using the sam prog but different materials.
i.e

Variable feed rate 1 = F200
Variable feed rate 2 = F75
Variable feed rate 2 = F120

then in the gcode

G01 X 20 y30 F(rate1)
G01 Z-10 F(rate2)
g01 X100 F(rate 3)

so wherever (rate*) appears I can chage it by altering 1 line in the headder of the code.

Thanks
Derek.
Title: Re: Global feedrate variable
Post by: BR549 on January 22, 2011, 01:54:21 PM
You can do it with Gcode #Variables




#1001 = 200  (FeedRate1)
#1002 = 75    (FeedRate2)
#1003 = 120  (FeedRate3)


G01 X 20 y30 F#1001
G01 Z-10 F#1002
g01 X100 F#1003



(;-) TP