4641
Mach4 General Discussion / Re: Making MACROS turn on OUTPUTs faster by inlining your code!!
« on: August 13, 2014, 12:21:13 PM »Quote
So it means you can inline wxLua code into your G code script?
Hi FocusPaul,
No, you can't do that.
In Macro's, if they are written with the fewest number of statements (careful programming) it will reduce the number of function calls and speed up their execution time.
(In practice, as we have discovered, the Mcode call, assuming it is on a separate line, in the Gcode program is actually executed some 50 milliseconds before the CNC machine has completed the preceding line of Gcode - this has been found too early for lasers (although suitable execution time delay can be added) but for many Mcodes and indeed spindle speed changes (Scode) operating early reduces overall machine run time and makes Mach4 faster).
Tweakie.