I see capital lettering on the M code. Change M10 to m10 on the function name, the file name, and in the mcInEditor() Test stub that calls M10.
M codes are ALWAYS lower case. This is because the interpreter converts everything to lower case when it processes the G code line.
Steve
Hi Steve,
Thank you for clarifying that m codes should always go with lowercase. What I tried to say was that I got the function to work. My problem was the inconsistency between the name of the mcs file <M10.mcs> and the name of the function <m10()>. If both are lowercase or both are capital, then it works. Anyway, I will swap everything to lowercase, as you say it is more correct.
Sergio