Program transmission solution for cnc machine