The zip file in the link below will show the reader how to develop a CNC machine with the PAC that reads G code from a file stored on a drive on the PAC. It contains an application note, a PAM project archive, a DIN66025 compliant G code and an embedded Xpress LRP file that can be used to run the sample.