clock design for CNC machine