This paper discusses the design and implementation of a 3-axis motion control for CNC machines using FPGA with G-code and M-code, aimed at enhancing performance with minimal cost and power consumption. It emphasizes the use of Bezier curves for smooth motion and outlines a functional algorithm for transforming code inputs into motor actions. The results show efficient control of motion, reduced power consumption, and improved system performance.