Steve and Daz, Back in 2016 I was helped with the same issue of how to set up an Mcode in Mach4. Steve has listed the steps again but it does not work for me.  I am not sure where I am failing but back in 2016, Daz listed putting the require line into a module load file in the profile/macros directory which Steve did not mentioned this time.  Is this an omission or a change in the version of Mach4? I think I have done everything else correctly but the Mcode programmed M100 never does anything.  I have stepped away from Mach4 and Lua for several years and am back trying to get proficient again, sorry.
I updated to the newest version today since I was running on a version from 2016 but that has not helped.  The post dealing with the topic was topic=33849.20  This time, we are taking about a toolbox which I would like to implement.  Should I start a new topic or continue here. I also am working on Steve's last help for machine state, but not successful yet.
Thanks