In LinuxCNC, the M-codes M100 through M199 run an external program instead of a built-in function. The optional P and Q words are passed to that program as its first and second arguments, and execution of the G-code file pauses until the external program exits. If the external program exits with a code other than 0, G-code program execution is stopped.
| Language | gcode |
|---|---|
| Code | M100-M199 |
| Group | User Defined M-Codes |
| Syntax | M1-- <P- Q-> |
| Dialect | LinuxCNC |
| Name | Description |
|---|---|
| P | A number passed to the file as the first parameter. |
| Q | A number passed to the file as the second parameter. |