I think .nc files are one option for G-code output. .ngc is another. Have a look at UGS on https://winder.github.io/ugs_website/

Kit