I just submitted a pull request to support work offsets and planning on adding the following cnc commands (a minimal set based on what fusion 360 produces). Feedback if these are sufficient or if there are others that should also be included based on cnc g-code producers.
Where possible, g-codes consistent across most command sets are used to invoke functionality. For other situations, functionality uses Klipper’s preference for human readable “extended G-Code command” language and additional macro mappings are provided to support the different command sets. All status commands will follow Klipper’s extended command language.
| function | command | GRBL v1.1 | marlin | linuxcnc | Haas CNC | Smoothie | Mach3 |
| -------------------------- | ------- | --------- | ------ | -------- | -------- | -------- | ----- |
| probe target | G38.2-5 | x | x | x | G36 | x | G31 |
| spindle forward | M3 | x | x | x | x | x | x |
| spindle reverse | M4 | x | x | x | x | | x |
| spindle stop | M5 | x | x | x | x | x | x |
| make tool change | M6 | x | | x | x | | x |
| mist coolant on | M7 | x | x | x | x | x | x |
| flood coolant on | M8 | x | x | x | x | x | x |
| coolant off | M9 | x | x | x | x | x | x |
| prepare tool change | T | x | x | x | x | x | x |