klippy-cnc icon indicating copy to clipboard operation
klippy-cnc copied to clipboard

How to use/install these macros?

Open jevermeister opened this issue 3 years ago • 10 comments

Can you provide a guideline how to install these macros and how a sample printer.cfg could look like for a CNC?

jevermeister avatar Nov 30 '21 12:11 jevermeister

Yes, please.

WackoKacko avatar Sep 22 '22 15:09 WackoKacko

This is how i did it - untested so far:

  1. download (and unzip) or clone this repo
  2. rename the containing folder "klipper" (in there is the "macros" folder) to "klippy-cnc"
  3. move "klippy-cnc" folder in the "klippy-cnc-macros.cfg" into the same folder where your "printer.cfg" is - i my case it's "/home/pi"
  4. add "[include ./klippy-cnc-macros.cfg]" to your "printer.cfg"
  5. issue "RESTART" command

Additional steps - cause i got renaming errors

  1. "./klippy-cnc/macros/g2.cfg" comment out the "rename_existing" line
  2. "./klippy-cnc/macros/g3.cfg" comment out the "rename_existing" line
  3. "./klippy-cnc/macros/m30.cfg" comment out the "rename_existing" line
  4. issue "RESTART" command

Again: i did not finally test the macros - be careful! But: "KCNC_STATUS" command is now working for me.

Hope this helps

SK-StYleZ avatar Oct 01 '22 17:10 SK-StYleZ

I'll be giving this a go asap, thanks so much!

On Sat, Oct 1, 2022, 18:40 SK-StYleZ @.***> wrote:

This is how i did it - untested so far:

  1. download (and unzip) or clone this repo
  2. rename the containing folder "klipper" (in there is the "macros" folder) to "klippy-cnc"
  3. move "klippy-cnc" into the same folder where your "printer.cfg" is
  • i my case it's "/home/pi"
  1. add "[include ./klippy-cnc-macros.cfg]" to your "printer.cfg"

Additional steps - cause i got renaming errors

  1. "./klippy-cnc/macros/g2.cfg" comment out the "rename_existing" line
  2. "./klippy-cnc/macros/g3.cfg" comment out the "rename_existing" line
  3. "./klippy-cnc/macros/m30.cfg" comment out the "rename_existing" line

Again: i did not finally test the macros - be careful! But: "KCNC_STATUS" command is now working for me.

Hope this helps

— Reply to this email directly, view it on GitHub https://github.com/vladbabii/klippy-cnc/issues/2#issuecomment-1264433413, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKT6Q4GP7PM7XHG3UQJMFO3WBBZR7ANCNFSM5JBTVLZA . You are receiving this because you commented.Message ID: @.***>

WackoKacko avatar Oct 01 '22 18:10 WackoKacko

Just did some testing and ran into more issues. "G28.1" is not working and "G38.2" too.

Primarily i wanted to use the macros for probing X,Y and Z with a piece of metal and G38.2

I think the issues i am facing is a result of a newer klipper version on my machine. I'd love to use these macros, but to get them working will take a lot of time for me, since the macros need some updates.

Maybe i'll try out Marlin Firmware, since the gcodes i am looking for are natively implemented. But installing and setting up Marlin will consume a lot of time too.

SK-StYleZ avatar Oct 01 '22 19:10 SK-StYleZ

Hmm meanwhile I want to stick with Klipper because it has native polar support. I hope G68 works as desired.

WackoKacko avatar Oct 03 '22 07:10 WackoKacko

I meant to say G54 and G10. It was a long day. Anyways, I've had some issues, too. Not sure how to fix them...yet. I get an error with G10 saying "!! Error evaluating 'gcode_macro G10:gcode': UndefinedError: 'instance object' has no attribute 'gcode' ". For now I'll just have to use G28 X0 a few more times than I would have liked to for my project. Any ideas @vladbabii ?

WackoKacko avatar Oct 05 '22 16:10 WackoKacko

Hmm it seems G54 and G55 don't do anything, either...yet. Tried to use G92 to set them, but that ends up just setting the absolute coordinate system (G53 workspace).

WackoKacko avatar Oct 05 '22 17:10 WackoKacko

@SK-StYleZ I expanded klipper support for G2/G3 and awaiting feedback : https://github.com/Klipper3d/klipper/pull/5910 @WackoKacko I'm about to open a pull request for klipper work offset / coordinate system support (G10, G53, G54-59). If you are on klipper discord, reach out ('AndrewM'). Feedback on functionality would be much appreciated!

ajmirsky avatar Nov 28 '22 19:11 ajmirsky

@ajmirsky thanks for your work, but i'm especially interested in G38.2 command. hence i switched to marlin - sorry to tell.

SK-StYleZ avatar Nov 30 '22 11:11 SK-StYleZ

I have just created a PR (https://github.com/vladbabii/klippy-cnc/pull/9) with the above mentioned corrections

RREE avatar Jun 07 '23 15:06 RREE