Try googling mach3 cnc will get lot of data

By no means it would be easy !!!