If you've got the pin-out chart for your machine, it shouldn't be too hard. Just download it, fill in the pin assignments etc according to your chart, try it out, and if it works get a license for Mach3 from Newfangled Solutions » Products or one of their authorized distributors. There might even be an XML file that will fill in all the values for your machine, but since they're not all hooked up the same way you might have to change a few things to get it working right.