Macros within NC code

I have a macro named PARK. It raises the Z Axis and then moves the X & Y axis to the center-back of the CNC table.

Is it possible to add a command to an NC file that will call and run the macro? I would like to add the command to the end of each NC file so that after the part is cut, the Spindle/Router will move up and then to the back of the table.

There are a couple of places that you could accomplish this. You could put the code in the post processor of your CAD/CAM software, not sure what your using.

You could also use your G-Code sender to run it at the end of every job. If you use gSender you can put it int the Program Stop section in settings. Settings, Start/Stop G-Code tab, enable program stop and put code in there.

1 Like