Nice write up on using an RPi to control a CNC with something called GRBLWeb, which is a remote for CNC control of a system. Reality you are using an Raspberry Pi and an arduino in this project.
http://www.instructables.com/id/Control-your-CNC-over-Wi-Fi/?ALLSTEPS