Hello Guest it is April 11, 2021, 09:19:00 AM

Author Topic: loop help  (Read 461 times)

0 Members and 1 Guest are viewing this topic.

Re: loop help
« Reply #10 on: August 01, 2020, 11:17:40 AM »
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.


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.