If it has Macros enabled you could have a spot at the top of your program to enter in your part thickness and the Z location of your chuck face. Something like:
#600=.562 (part thickness plus cutoff)
#601=-23.752 (Z location of chuck face)
Then, before the M98 line to jump to your sub program that slices the part off or whatever, you say:
IF[[#600+#601]LT[current z-position register]]GOTO1;
;
9000(NOT ENOUGH MTL LEFT);
;
N1:
;
M98P100;
;
......
That way you can change the z location of your chuck face as well as the part thickness at the top of the program as needed. Before cutting off the next part it checks to see if there’s enough room and if it’s too close it’ll throw up an alarm. You’d actually probably want to check before you make your z move to the cutoff length but you can take that into account in your “part thickness” value.
Good luck!