Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 02:55:02 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Global feedrate variable
Pages: 1   Go Down
Print
Author Topic: Global feedrate variable  (Read 243 times)
0 Members and 1 Guest are viewing this topic.
derekbpcnc
Active Member

Offline Offline

Posts: 194


View Profile
« 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.
Logged

You can "chop it off" but can't "chop it on"
BR549
Active Member

Offline Offline

Posts: 2,556


View Profile
« Reply #1 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

Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!