I need to check and report errors in a Gcode program. I want to validate the parameters passed into my o-word subroutine. At the moment I am doing this...
O10 if [ #<initialCutDepth> LE 0 ] (MSG, Invalid initialCutDepth=#<initialCutDepth>) M2 O10 endif but it only detects the error at run time. I can also put in a bogus statement, such as a G76 without arguments... O10 if [ #<initialCutDepth> LE 0 ] (MSG, Invalid initialCutDepth=#<initialCutDepth>) G76 O10 endif And at load time I get "All axes missing with motion code", although it points to the wrong line. Is there a better way? Oh, and I just noticed that MSG doesn't expand parameters. That's annoying. ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users