Setting the zero for a lathe part has been covered earlier in a separate chapter Most CNC lathe setups benefit from the 20 at the front face of the finished part. The XO location is the same for all lathe work - it is always the spindle center line. All initial lathe offsets are based [...]
The format of a tapping cycle is very similar to G81: Here are two related formulas for calculating tapping feed-rate F with known spindle S and either pitch Por number of threads per inch TPI. G98 G84 X.. Y.. R.. 2.. F.. Threads made by tapping can create problems just like threads machined on a [...]