{"id":42491850,"url":"https://github.com/vladbabii/klippy-cnc","last_synced_at":"2026-01-28T12:22:36.041Z","repository":{"id":65253936,"uuid":"287898513","full_name":"vladbabii/klippy-cnc","owner":"vladbabii","description":"KCNC - Klipper CNC Macro Package","archived":false,"fork":false,"pushed_at":"2023-06-07T15:39:45.000Z","size":128,"stargazers_count":131,"open_issues_count":7,"forks_count":30,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-09-12T00:38:40.600Z","etag":null,"topics":["cnc","gcode","klipper"],"latest_commit_sha":null,"homepage":"https://github.com/vladbabii/klippy-cnc","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vladbabii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-16T07:49:49.000Z","updated_at":"2025-09-09T08:54:58.000Z","dependencies_parsed_at":"2023-01-15T23:15:17.667Z","dependency_job_id":null,"html_url":"https://github.com/vladbabii/klippy-cnc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vladbabii/klippy-cnc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladbabii%2Fklippy-cnc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladbabii%2Fklippy-cnc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladbabii%2Fklippy-cnc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladbabii%2Fklippy-cnc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladbabii","download_url":"https://codeload.github.com/vladbabii/klippy-cnc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladbabii%2Fklippy-cnc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T10:53:21.605Z","status":"ssl_error","status_checked_at":"2026-01-28T10:53:20.789Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cnc","gcode","klipper"],"created_at":"2026-01-28T12:22:35.542Z","updated_at":"2026-01-28T12:22:36.028Z","avatar_url":"https://github.com/vladbabii.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KCNC - Klipper CNC Macro Package\n\nThis is a collection of macros to support CNC commands on [klipper 3d printer software](https://github.com/KevinOConnor/klipper)\n\n---\n\n# G/M-code Support\nThe codes that are ~~strikethrough~~ are not supported yet\n\n## KCNC Macros\nGcode | Parameters | Description\n------|------------|---------\nKCNC_STATUS | - | Get KCNC Status (workspace, tools, etc)\nKCNC_SET_WORKSPACE | TARGET=0 | Set workspace, 0 is machine workspace, 1 is equivalent to G54 \nKCNC_HOME_MACHINE | - | Homes the machine using endstops\n\n\n## Supported G-codes\nGcode | Parameters | Command | Description\n------|------------|---------|-------------\nG0 | _axes_ | Straight traverse | Traverse at maximum velocity. At least one axis must be present\nG1 | _axes_, F | Straight feed | Feed at feed rate F. At least one axis must be present\nG2 | _axes_, F, I,J,K or R | Clockwise arc feed | Arc at feed rate F. Offset mode IJK or radius mode R\nG3 | _axes_, F, I,J,K or R | Counter clockwise arc feed | Arc at feed rate F. Offset mode IJK or radius mode R\nG4 | P | Dwell | Pause for P seconds\nG10 L2 | _axes_, P | Set offset parameters | P selects coordinate system 1-6\nG10 L20 | _axes_, P | Set offset parameters | P selects coordinate system 1-6\n~~G17~~ | | Select XY plane | G17, G18 and G19 set the plan in which the G2/G3 arcs are drawn\n~~G18~~ | | Select XZ plane |\n~~G19~~ | | Select YZ plane |\n~G20~ | | Select inches units mode | All Gcode from this point on will be interpreted in inches\nG21 | | Select mm units mode | All Gcode from this point on will be interpreted in millimeters\nG28 | _axes_ | Go to G28.1 position | Optional axes specify an intermediate point\nG28.1 | | Set position for G28 | The current machine position is recorded (No parameters are provided)\nG30 | _axes_ | Go to G30.1 position | Optional axes specify an intermediate point\nG30.1 | | Set position for G30 | The current machine position is recorded (No parameters are provided)\nG53 | | Select absolute coordinates | Non-Modal: Applies only to current block\nG54 | | Select coord system 1 | \nG55 | | Select coord system 2 |\nG56 | | Select coord system 3 |\nG57 | | Select coord system 4 |\nG58 | | Select coord system 5 |\nG59 | | Select coord system 6 |\nG90 | | Set absolute mode |\nG91 | | Set incremental mode |\nG92 | _axes_ | Set origin offsets |\nG92.1 | | Reset origin offsets |\nG92.2 | | Suspend origin offsets |\nG92.3 | | Resume origin offsets |\n\n## Supported M-codes\n Mcode | Parameter |Command | Description\n------|-----------|--------|-------------\nM0 | | Program stop |\nM1 | | Program stop | Optional program stop switch is not implemented so M1 is equivalent to M0\nM2 | | Program end |\nM30 | | Program end |\n~M6~ | | Change tool | No operation at this time\n\n## M-codes that need customisations based on your hardware\n Mcode | Parameter |Command | Description\n------|-----------|--------|-------------\nM3 | S | Spindle on - CW | S is speed in RPM\nM4 | S | Spindle on - CCW | S is speed in RPM\nM5 | | Spindle off |\nM7 | | Mist coolant on | Note that mist and flood share the same Coolant ON/OFF pin\nM8 | | Flood coolant on | Note that mist and flood share the same Coolant ON/OFF pin\nM9 | | All coolant off | Note that mist and flood share the same Coolant ON/OFF pin\n\n---\n\n# Klipper for CNC - PROs and CONs\n\nKlipper benefits for hobby CNC\n* easy install and configuration changes\n* [tmc driver support](https://github.com/KevinOConnor/klipper/blob/57eb0e8975f0fc038dbf323f5ff029073334c611/config/example-extras.cfg#L962) with [endstop phase](https://github.com/KevinOConnor/klipper/blob/57eb0e8975f0fc038dbf323f5ff029073334c611/docs/Endstop_Phase.md)\n* [skew correction](https://github.com/KevinOConnor/klipper/blob/57eb0e8975f0fc038dbf323f5ff029073334c611/docs/skew_correction.md)\n* [advanced macro capability](https://github.com/KevinOConnor/klipper/blob/57eb0e8975f0fc038dbf323f5ff029073334c611/docs/Command_Templates.md)\n* [broad 3d printer board support](https://github.com/KevinOConnor/klipper/tree/57eb0e8975f0fc038dbf323f5ff029073334c611/config)\n* [great kinematics](https://github.com/KevinOConnor/klipper/blob/57eb0e8975f0fc038dbf323f5ff029073334c611/docs/Kinematics.md) that can be configured on the fly ( M204, SET_VELOCITY_LIMIT)\n\nKlipper downsides for hobby CNC\n* only 3 axis supported\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladbabii%2Fklippy-cnc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladbabii%2Fklippy-cnc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladbabii%2Fklippy-cnc/lists"}