How to convert max files to CNC

Does anybody know how can I convert max or maya files with bodies from surfaces to CNC system. What is the right format or something else? Thank you.