Your post processor should generate the code.Mastercam comes with a selection of post processors and you need to identify which of them is suitable for your machine.If none of them are right you ought to ask the Mastercam reseller for their help as they should have taken the requirements of your controller into account when selling you the software.There is a good chance they will be able to adapt one of the bundled post processors to do the job or at least give you clear instructions on how to edit them.