Hello Guest it is April 16, 2024, 02:02:16 PM

Author Topic: Formula for variable feedrate  (Read 3341 times)

0 Members and 1 Guest are viewing this topic.

Formula for variable feedrate
« on: September 28, 2010, 08:33:53 AM »
I'm making a machine that needs the feedrate of axis X to increase proportionally to the position of the Y axis. Is this possible? Can this be done with acceleration in the motor tuning configuration?

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Formula for variable feedrate
« Reply #1 on: September 28, 2010, 11:26:41 PM »
YOu could make a brain that monitors and compares the Y position then alters the Feedrate Override based on the % of change of the Yposition.

BUT remember it will alter the feedrate on ALL axis not just X.

Just a thought, (;-) TP
Re: Formula for variable feedrate
« Reply #2 on: September 29, 2010, 05:46:00 PM »
Depending on how smooth running it has to be you can use a macro that does this for you in fast steps.
output:
===================
y_step            = starting_point
y_limit             = ending_point
y_step_change = delta_y_movement

y_increment = 0

while (y_increment < y_limit)
    x_step = (y_related_formula)

    code "GO Y" & y_step       ' desired Y step
    code "GO Z" & x_step       ' desired X step
    While IsMoving()            ' Wait for stop
    Wend
   code "G4 P" &(pause_that makes_Y_go_at_your_desired_speed)  ' "G4P0.25" pauses a 1/4 sec
y_increment = y_increment  + y_step_change
wend
===================

make sure the Y_step is plenty small to accommodate the increasing speed of the X axis and the material you are working
This will move y linearly and x according to your formula.
Both the step size and the delay will affect the apparent feed rate

Thanks,
Bill
Pixel Tamer