1
Mach4 General Discussion / Re: M06 not working
« on: December 07, 2021, 08:21:13 AM »I had this error C:\Mach4Hobby\Profiles\Mach4Lathe\Macros\m6.mcc could not be found , after i changed from m6 to M6 the error disappearedNote that the official Lua Scripting manual does contains errors related to the name of the M6() function. In the manual, section 5.4 (page 22-23) , its shown that the tool change Macro can be customized using the m6() function. This is INCORRECT because Lua is has case sensitive functions. You need to use the M6 function name (uppercase).I know that others have had issues with upper/lower case. However, when I copy the stock m6.mcs file from the Mach4Mill profile, which has both the file name and the macro function name defined in lower case "m6", into my SmartBOB test profile, it works. At least with MDI code. With either "m6" or "M6" in the MDI window.
It's really unfortunate that the official manuals still contains errors.
Perhaps I've got to go back and find/read the thread that talked about case sensitivity.
Bob