MCodes and how to use them in an application
Posted: Tue Oct 08, 2019 10:13 am
Hello,
I have new questions, this time regarding the use and interpretation of MCodes. In KMCNC the user can modify the definitions of MCodes and change their behaviour when running a GCode (running a C file, stopping the program, etc). In the libraries I found the enumeration MCODE_TYPE where there are defining ten MCodes.
I don't know how to use this definitions. For example, when I write M4 in a GCode and run it (using my aplication), the interpreter ignores it, but when I write M0 the program stops.
My questions are:
I have new questions, this time regarding the use and interpretation of MCodes. In KMCNC the user can modify the definitions of MCodes and change their behaviour when running a GCode (running a C file, stopping the program, etc). In the libraries I found the enumeration MCODE_TYPE where there are defining ten MCodes.
I don't know how to use this definitions. For example, when I write M4 in a GCode and run it (using my aplication), the interpreter ignores it, but when I write M0 the program stops.
My questions are:
- Can I change the definitions of te MCodes? If I can, how I do it?
- The definitions of the enumeration MCODES_TYPE affect the behavior of the GCode interpreter in any code?
- Some definitions, like M4 or M5 are for running C programms. How can I indicate the C program they have to run?