Two issues about standard glue file.
1) Remapped new G-code and executes okay non-modal without wrap code. Attached wrap code, parameter prolog=cycle_prolog and epilog=cycle_epilog at lathe.ini file and message box G-code error near line 0 of linearbox.ngc and pycall(remap.cycle_prolog) failed. Modal G-code not enabling. Why not reading ahead line 0?
2) Remapped tool offset and tool change, run turning.ngc, tool change without M6 executes okay but lathe tool offset number not and error message box pycall(index_lathe_tool_with_wear) and SystemError: 'finally' pops bad exception. Removing the tool offset and just tool number no error box. Why error lathe tool offset number?