now THAT is odd....
I cannot get them to run in my MDI or G-code either!
Never had that happen before,
I even tried:
* UN-commenting the "is in editor stuff", no change.
* Restoring it to
"UN-inlined" (standard way of doing a macro), no change
*
putting in and
taking out the function call M770() and M771(), no change
* After each change, closing and re-opening M4, no change
* I see it blow past the M770/M771 while watching the OUTPUT1 LED on the Diag-page, nothing
* if I put the native code into the PLC script which via code turns on and off output1, IT WORKS!
* BUT.... If I put mclua code to call the MDI command or Gcode command and call it via macro name
it does NOT work....
*** I am wondering if something broke in the mclua?

Or, perhaps I have done something stupid,
*** which is always a possibility, Perhaps Steve can look it over and see where the Break or the Opps is.
Here is the M770/M771 gcode I am using to test with:
F60.000000
G0 X0.000000 Y0.000000 Z0.200000
M3 (start Spindle)
S60.000000
g1 x1 f20
M770
G4 P2
M771
x0
M5
G0 X0.000000 Y0.200000 Z0.000000
M99
It really doesn't make any sense, and I have a "Lic." copy of M4 as well running on the "Sim".
Scott