Re: [Emc-users] Gcode program error checking

2009-07-06 Thread Kenneth Lerman
Hi Frank, I know that MSG doesn't expand parameters. When I implemented DEBUG, which works just like MSG but expands parameters, I could have made MSG work the same way. I made a conscious decision to NOT do that. If I had done that, there was a possibility of breaking existing programs in

[Emc-users] Gcode program error checking

2009-07-05 Thread Frank Tkalcevic
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