Hello Chaps ,

I seem to be running around in circles like a fowl with its head cut off.

I am sure someone can help me

I want to machine a rod down to a certain diameter using a subroutine

and parameters

#1 is the starting diameter

#2 is the finished diameter

#3 is the depth of cut

(The material between the two diameters has to be removed .)

For ease of understanding lets say start at 103mm and machine down

to 89mm in 2 mm depth of cut.

My intention is to take the first cut and jump into a subroutine,

execute the subroutine the correct number of times until 1 mm is left

then jump out of the subroutine and do a final cut of 1mm

If someone could post a bit of code that I can work through that does this-

then I would be very happy

Many thanks

and best regards

fred