Superb work! I'm very interested in the original g-code. I'm a beginner with a lathe and I don't want to invest in complex software when I'm just starting out. I tinker a lot, I like LinuxCNC and modify it to my liking. Good luck! I'm looking forward to G-Code and other tools ;)
The G71/G72 cycle is intended to rough cut a profile on a lathe. The G71 cycles remove layers of the material while traversing in the Z direction. The G72 cycles remove material while traversing the X axis, the so called facing cycle. The direction of travel is the same as in the path given in the subroutine. For the G71 cycle the Z coordinate must be monotonically changing, for the G72 this is required for the X axis. linuxcnc.org/docs/devel/html/gcode/g-code.html#gcode:g71-g72