G21 G40 G98;
G28 U0 W0;
M06 T09;
M03 S1000;
G0 X32. Z1. M8
G71 U0.5 R1;
G71 P1 Q2 U0.1 W0.1 F50.;
N1 G00 X0 Z1.;
G01 X0 Z0;
G01 X0.5 Z-17.276;
G00 X1. Z-17.276;
G01 X1. Z-17.776;
G00 X0.5 Z-17.776;
G01 X0.5 Z-18.588;
G00 X2. Z-18.588;
G01 X2. Z-19.088;
G00 X0.5 Z-19.088;
G01 X0.5 Z-19.9;
G00 X4. Z-19.9;
G01 X4. Z-21.524;
G00 X12. Z-21.524;
G01 X12. Z-23.148;
G00 X16. Z-23.148;
G01 X14. Z-24.148;
G00 X15. Z-24.148;
G01 X13. Z-25.148;
G00 X14. Z-25.148;
G01 X12. Z-26.148;
G00 X13. Z-26.148;
G01 X11. Z-27.148;
G00 X12. Z-27.148;
G01 X8. Z-28.208;
G01 X8. Z-34.298;
G01 X8.5 Z-42.418;
G01 X9. Z-50.538;
G01 X9.5 Z-54.598;
N2 G01 X32.;
G0 Z1.
G70 P1 Q2 S1500 F30.;
G28 U0 W0;
M05;
M30;
The simulation just executes the first 5 lines and those make the cutting tool touch the work piece and then retreats back the rest of the code is skipped and I get a message saying the program ended ..the software I use is called CNCTRAIN
G28 U0 W0;
M06 T09;
M03 S1000;
G0 X32. Z1. M8
G71 U0.5 R1;
G71 P1 Q2 U0.1 W0.1 F50.;
N1 G00 X0 Z1.;
G01 X0 Z0;
G01 X0.5 Z-17.276;
G00 X1. Z-17.276;
G01 X1. Z-17.776;
G00 X0.5 Z-17.776;
G01 X0.5 Z-18.588;
G00 X2. Z-18.588;
G01 X2. Z-19.088;
G00 X0.5 Z-19.088;
G01 X0.5 Z-19.9;
G00 X4. Z-19.9;
G01 X4. Z-21.524;
G00 X12. Z-21.524;
G01 X12. Z-23.148;
G00 X16. Z-23.148;
G01 X14. Z-24.148;
G00 X15. Z-24.148;
G01 X13. Z-25.148;
G00 X14. Z-25.148;
G01 X12. Z-26.148;
G00 X13. Z-26.148;
G01 X11. Z-27.148;
G00 X12. Z-27.148;
G01 X8. Z-28.208;
G01 X8. Z-34.298;
G01 X8.5 Z-42.418;
G01 X9. Z-50.538;
G01 X9.5 Z-54.598;
N2 G01 X32.;
G0 Z1.
G70 P1 Q2 S1500 F30.;
G28 U0 W0;
M05;
M30;
The simulation just executes the first 5 lines and those make the cutting tool touch the work piece and then retreats back the rest of the code is skipped and I get a message saying the program ended ..the software I use is called CNCTRAIN