Marlin is great for 3d printers, but not what you want on a CNC. Your way better off going with GRBL or Linux CNC or one of the other open source packages for CNC.