What type of machine are you trying to build? A flat bed router, or a milling machine?
Have you looked at this site? There is a lot of good information as well as plans and kits. It could be a good place to start.
Build Your Own CNC Router, CNC Machine, or 3D Printer