Generate extended plc program during machining, execution of nc program