A essential component of CNC machining is using G-code and M-code programming languages. G-code presents Guidelines for the machine’s actions, such as linear and round interpolation, while M-code controls further equipment capabilities like spindle velocity and coolant flow3.CNC lathes are machines that rotate a workpiece around a stationary chop