Welcome to ModelEngineMaker !If you have problems registering or logging in, please use the contact menu option to request assistance.
With the tool effectively stationary above the ctr of the crank pin would there need to be any feed rate, the rotation of the 4th axis sets how fast the work moves against the tool
I attempted to run your LinuxCNC modified code on my LinuxCNC ver 2.7 machine. I am also getting a divide by 0 error message when it attempts to enter the O003 subroutine. I don't understand enough to mess with " adding a couple of extra [] pairs that looked like they might be needed." Can you advise please.Mike
After a few experiments plus reading the LinuxCNC manual, I got the code to both load and execute without any error messages. That's not to say it would mill a crankshaft correctly. The main issue is that in LinuxCNC, variables #1-#30 are local to subroutines, so any values for these variables set outside would be 0 within the sub. The G1 moves do require a feedrate.One issue with my machine is that once it's at A359, a return to A0 requires that the axis reverse. This will slow each pass down a good deal; a machine that has a setting or g-code to advance to A0 by moving forward would be faster.
I don't know why there is a move in X, so I'd just remove it,