The CNC machine will, of course, need some hardware upgrades such as printhead as well to fully turn your CNC into 3d printer, but this software upgrade will make your CNC hacking much easier.
Software add-on and instructions can be found here:
Here is a much more detailed Instructables guide page made by Nuri:
Here is a video by Donald Fournier showing how he uses a Hoss G0704 as a 3d printer:
Here is another way to use Mach3 on CNC machine as 3d printer, and description of hardware needed. One could combine those two methods.
or have a look at extensive video showing modification of cnc table plasma router to 3d printer:
Jon alos converted his cnc into 3d printer and uses Mach 3:
|Mach3 UI was always fascinating to me ...|