Generating NC code


Generation of NC programs is performed by a postprocessor that transforms the CLDATA commands of a calculated toolpath into the format of the selected CNC system. The postprocessor files have the *.sppx extension. The output of CNC code is performed into a standard text file, so it can be easily transmitted from the computer, where SprutCAM X is installed to the CNC control using any standard methods of copying files and folders.

To generate CNC code press the images/download/attachments/84215817/postprocessor_button.jpg button. The NC-program generation panel will appear.


images/download/attachments/84215817/image2022-3-23_11-39-41.png


Here you can select the required postprocessor and run it to get an NC program. If the list doesn't contain the postprocessor you want, try to select another < Folder > with postprocessor files using the appropriate controls at the top of the panel. General information about the selected postprocessor is displayed in the left-hand bottom corner of the panel.

In the < Output file > field one enters the name and the path to the file, which the NC program should be output to.

images/download/attachments/84215817/image2019-9-25_11-14-22.png Use select file button to open dialog.

images/download/attachments/84215817/image2019-9-25_11-16-12.png Use drop down button to see list of previous NC program files or select output NC-program to the same folder as project or default folder. Default folder is set in System settings window.

To start generating NC program for the selected CNC system press the < Run > button. In the full version of SprutCAM X NC code is written to the output file, and, if selected, into the postprocessor window. In the demo version, output into a file will not be performed, and only the last few strings of the NC program will be displayed in the postprocessor window.

Please note, that the postprocessor only creates NC code for all calculated machining operations that are 'enabled' ( images/download/thumbnails/84215817/image2019-5-17_9-53-41.png ,images/download/thumbnails/84215817/image2019-5-17_9-54-14.png or images/download/thumbnails/84215817/image2019-5-17_9-54-31.png status icon in the machining process list window) and also have <Generate NC code> property set at the time the postprocessor is run (the operations tree below postprocessor list) .


Note : To generate several separate NC programs for different operations, use the operations tree to enable or disable NC code generation for operations and then run the postprocessor to create the separate NC programs. Please note that 'Generate NC code' property is a property of operation. It will be saved in project and <User operations> default settings.

images/download/attachments/84215817/image2019-5-21_15-8-6.png

If some operations have <Generate NC code> property disabled when hinting images/download/thumbnails/84215817/image2019-5-21_15-17-31.png will be visible. The root images/download/thumbnails/84215817/image2019-5-21_15-18-13.png node checks or unchecks all enabled operations in technology tree.


The postprocessor system for SprutCAM X is a separate standard module, and can, if required be run separately from SprutCAM X. The name of the executable file is – Inp.exe. Postprocessor tuning files for CNC systems are created and edited using the < Postprocessors generator > (INP.exe).


images/download/attachments/84215817/image_5_1_4-4.gif




See also:

Common principles of technology creation