Convert program for different machines with different M-code, G-code, header