Skip to content

Commit a24960c

Browse files
DerAndere1thinkyhead
authored andcommitted
✨ FOAMCUTTER_XYUV (for RAMPS) (MarlinFirmware#24325)
Co-authored-by: Scott Lahteine <[email protected]>
1 parent d079459 commit a24960c

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

Marlin/Configuration.h

+7
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,13 @@
865865
#define POLAR_SEGMENTS_PER_SECOND 5
866866
#endif
867867

868+
// Enable for an articulated robot (robot arm). Joints are directly mapped to axes (no kinematics).
869+
//#define ARTICULATED_ROBOT_ARM
870+
871+
// For a hot wire cutter with parallel horizontal axes (X, I) where the heights of the two wire
872+
// ends are controlled by parallel axes (Y, J). Joints are directly mapped to axes (no kinematics).
873+
//#define FOAMCUTTER_XYUV
874+
868875
//===========================================================================
869876
//============================== Endstop Settings ===========================
870877
//===========================================================================

Marlin/src/inc/SanityCheck.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1567,8 +1567,8 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
15671567
/**
15681568
* Allow only one kinematic type to be defined
15691569
*/
1570-
#if MANY(DELTA, MORGAN_SCARA, MP_SCARA, AXEL_TPARA, COREXY, COREXZ, COREYZ, COREYX, COREZX, COREZY, MARKFORGED_XY, MARKFORGED_YX, FOAMCUTTER_XYUV)
1571-
#error "Please enable only one of DELTA, MORGAN_SCARA, MP_SCARA, AXEL_TPARA, COREXY, COREXZ, COREYZ, COREYX, COREZX, COREZY, MARKFORGED_XY, MARKFORGED_YX, or FOAMCUTTER_XYUV."
1570+
#if MANY(DELTA, MORGAN_SCARA, MP_SCARA, AXEL_TPARA, COREXY, COREXZ, COREYZ, COREYX, COREZX, COREZY, MARKFORGED_XY, MARKFORGED_YX, ARTICULATED_ROBOT_ARM, FOAMCUTTER_XYUV)
1571+
#error "Please enable only one of DELTA, MORGAN_SCARA, MP_SCARA, AXEL_TPARA, COREXY, COREXZ, COREYZ, COREYX, COREZX, COREZY, MARKFORGED_XY, MARKFORGED_YX, ARTICULATED_ROBOT_ARM, or FOAMCUTTER_XYUV."
15721572
#endif
15731573

15741574
/**

Marlin/src/pins/ramps/pins_RAMPS.h

+28-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,31 @@
7878
#define SERVO3_PIN 4
7979
#endif
8080

81+
//
82+
// Foam Cutter requirements
83+
//
84+
85+
#if ENABLED(FOAMCUTTER_XYUV)
86+
#ifndef MOSFET_C_PIN
87+
#define MOSFET_C_PIN -1
88+
#endif
89+
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN) && NUM_SERVOS < 2
90+
#define SPINDLE_LASER_PWM_PIN 8 // Hardware PWM
91+
#endif
92+
#ifndef Z_MIN_PIN
93+
#define Z_MIN_PIN -1
94+
#endif
95+
#ifndef Z_MAX_PIN
96+
#define Z_MAX_PIN -1
97+
#endif
98+
#ifndef I_STOP_PIN
99+
#define I_STOP_PIN 18
100+
#endif
101+
#ifndef J_STOP_PIN
102+
#define J_STOP_PIN 19
103+
#endif
104+
#endif
105+
81106
//
82107
// Limit Switches
83108
//
@@ -272,7 +297,9 @@
272297
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN)
273298
#if NUM_SERVOS < 2 // Use servo connector if possible
274299
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
275-
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
300+
#ifndef SPINDLE_LASER_PWM_PIN
301+
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
302+
#endif
276303
#define SPINDLE_DIR_PIN 5
277304
#elif HAS_FREE_AUX2_PINS
278305
#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!

0 commit comments

Comments
 (0)