11
General Mach Discussion / Re: Flatten my G-code
« on: July 10, 2013, 09:02:29 AM »
That's correct. I'm fine with 100,000 lines G-code if it's auto-generated by a Mach3 pre-processing step and the comments are passed though to the flatten G-code. The only time this wouldn't work is when my G-code calculations rely on variables that are set by Mach3, like the G31 probe variables #2000, #2001, #2002. Also, flattened G-code programs will allow the Mach3 feed hold feature to function properly inside subroutines.
Would anyone else find this useful?
I have it working in VBA, but there's nasty bug in CB calling recursive function that erases my CB local variables. It's like there's a maximum depth for CB recursive function calls, beyond that it starts overwriting the stack and erases some CB local variables. Very strange. That's why I wish the Mach3 people would do it.
Would anyone else find this useful?
I have it working in VBA, but there's nasty bug in CB calling recursive function that erases my CB local variables. It's like there's a maximum depth for CB recursive function calls, beyond that it starts overwriting the stack and erases some CB local variables. Very strange. That's why I wish the Mach3 people would do it.