// code for debugging Cimatron blocks - for user
IF (FlagDebugUser == TRUE_)
TRACE_TPBLOCK = TRUE_ ;
OUTPUT \J "*** Debug mode: DO NOT send to machine ***"; // prevent sending G-code with debug data
END_IF;
*-----------------------------------------------------------------------------------------------
BEGINNING OF TAPE:
OUTPUT_REDIRECT "t";
OUTPUT \J "%" ;
OUTPUT \J "O" PNum ;
// check for any meaningfull program comment to be output - "No Text" will NOT be output!
IF (STR_UPPER(MainProgComment) != "NO TEXT" && STR_CLEAN(MainProgComment) != "")
OUTPUT " (" MainProgComment ")";
END_IF;
ORIGIN CHANGE :
// set HOME number to G54, G55,... if not specified by the user
IF (CURR_ORIG < 53) CURR_ORIG = CURR_ORIG + 53 ; END_IF ;
OUTPUT $ "G" CURR_ORIG ;