I am trying to give examples of different ways to do things as we go(;-) There are MANY ways to do this stuff. SO if I do something one way don't get the idea it cannot be done another way. I am using what my SON calls Hybrid code.
It is a mix of Gcode, VB , Fanuc MacroB, Subs and the Oword redirection
HOPEFULLY one day Brian can fix up conditional Gcode( Fanuc MacroB Style would be nice) for MACH. I know it was in the original Source code that EMC came from(;-) But a lot of it was turned off in the Mach version.
Untill then we will have to use the hybrid code
Brian calls it "!@#$%^&*" CODE (;-) TP