Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5-Axis really required on Foam Cutter?[FR] (feature summary) #67

Open
ABLomas opened this issue Jan 16, 2023 · 3 comments
Open

5-Axis really required on Foam Cutter?[FR] (feature summary) #67

ABLomas opened this issue Jan 16, 2023 · 3 comments

Comments

@ABLomas
Copy link

ABLomas commented Jan 16, 2023

Is your feature request related to a problem? Please describe.

No response

Are you looking for hardware support?

No response

Describe the feature you want

There are many 4-axis boards (at least on definition - creality 1.x series (AVR), MKS E3 and so on, so on) - on paper they look like perfect candidate for foam cutter.
But in reality code requires 5 axis, one of them is unused.
I tried to add fake definitions for mks robin e3 - a bit too many checks, can't even select the same pins for "fake axis".

There is another issue with endstops - foam cutters work perfectly without any homing endstops. Still, code requires some axis min/max definitions (this one needs more testing, may be related to my (poor) 5-axis hack).

While second one is related to safety - first one is clearly artificial. Can we get rid of this requirement?

Additional context

No response

@DerAndere1
Copy link
Owner

It would be great if someone could prepare a pull request targeting upstream Marlin to compile without Y or Z axis. But it is a tedious task. For now much easier is to define a fake Z axis. You can have a look at my FOAMCUTTER_XYUV pull request to see how it can be done: MarlinFirmware@b06e378

@DerAndere1
Copy link
Owner

DerAndere1 commented Feb 2, 2023

My last answer was a bit incomplete. The default foamcutter example config for RAMPS relies on Marlins implicit pin-redifinitions. If I remember correctly, current Marlin redefines unused extruder pins as I axis STEP/DIR/ENAABLE pins.
The following is a more general approach for a fake Z axis:

  1. identify one or more free pin(s) that can be configured as an output pin, e.g. pin 36 in the case of the RAMPS - based foamcutter by rcKeith.
  2. In your motherboard's pins_YOUR_MOTHERBOARD.h file, change the Z_ENABLE_PIN, Z_STEP_PIN, Z_DIR_PIN to that free pin:
#define Z_ENABLE_PIN 36
#define Z_STEP_PIN 36
#define Z_DIR_PIN 36
  1. Change the Z stop pins to -1:
#define Z_MAX_PIN -1
#define Z_MIN_PIN -1

@ABLomas
Copy link
Author

ABLomas commented Feb 2, 2023

Yes, i did all this (on 32b board, too), this is simply additional job which is required to fool some checks, which are not required in first place ;-)
(btw, working good so far)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants