I'm trying to make a subprogram which allows back turning for any contour.

So far, I made a simple subprogram with parameter transfer that allows turning a shaft from one diameter to another.

I have a problem when I'm trying to create subprogram for any contour. I would like that subprogram would work just like, for example CYCLE95 (create contour whit G-codes and after that turning according to this contour).
I tryied to use CONTPRON instruction, but I'm not sure how to do this.

Is that possible at all, to prepare this kind of subprogram ?

I need to some advises. It's very importent for me.
I use SinuTrain 4.5, because I don't have access to real CNC machines.

Best regards