If you use a reprap Controller (like Marlin ...) for a CNC machine then this is your Program ;-)
http://reprap.org/wiki/CNC_Gcode_controller