I am trying to machine a part that looks like a cup with varying heights of the side wall around the cup. the part is held on my fourth axis and the program basically varies x as the part rotates on the A axis. The problem I am having is getting a consistent feedrate in the cut. For G1 commands where X is constant and only A is changing, I need a feedrate of F130 because the feedrate is needed in degrees per min, but for G1 commands where X is changing, linuscnc wants the feedrate in inches per minute. I can get most of these changes done, but I run into problems when both X and A are changing. It appears that when X changes, the ipm rate takes over, but if the change is a small X increment over a large A degree change, the A axis feedrate goes way up and the overall linear rate of the tool movement on the part is high and I am snapping tools. I need to be able to get a constant surface feed rate whether the G1 command is changing X or A. Remember this is on a mill's fourth axis. Any suggestions?
I have computed the delta-X (the axis distance moved) and the delta-S (the circumferential distance moved) for each G1 command and I think I can use this information to compute a different feedrate for each G1 command, but I am not sure exactly where I am going with this. Has anyone ever run into this problem?