From 5b4646a8dc4383284effb6f0f4bf04f28a4b7dfa Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Wed, 9 May 2018 13:46:30 -0600 Subject: [PATCH] Add initial support for JTech laser toolhead on a LulzBot TAZ 6 --- Marlin/Conditionals_LulzBot.h | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Marlin/Conditionals_LulzBot.h b/Marlin/Conditionals_LulzBot.h index ec4a7acf5..0a4ca71f7 100644 --- a/Marlin/Conditionals_LulzBot.h +++ b/Marlin/Conditionals_LulzBot.h @@ -37,7 +37,8 @@ !defined(TOOLHEAD_Longfin_FlexyDually) && \ !defined(TOOLHEAD_Yellowfin_DualExtruderV3) && \ !defined(TOOLHEAD_Angelfish_Aerostruder) && \ - !defined(TOOLHEAD_Devel_ServoDual) \ + !defined(TOOLHEAD_Devel_ServoDual) && \ + !defined(TOOLHEAD_Laser) \ ) #error Must specify model and toolhead. Please see "Configuration_LulzBot.h" for directions. #endif @@ -897,6 +898,27 @@ #define LULZBOT_AO_Hexagon #endif /* TOOLHEAD_Devel_ServoDual */ +#if defined(TOOLHEAD_Laser) + #define LULZBOT_Laserhead + #define LULZBOT_LCD_TOOLHEAD_NAME "JTech Laser" + #define LULZBOT_M115_EXTRUDER_TYPE "Laser" + #define LULZBOT_EXTRUDERS 1 + #define LULZBOT_TOOLHEAD_X_MAX_ADJ 0 + #define LULZBOT_TOOLHEAD_X_MIN_ADJ 0 + #define LULZBOT_TOOLHEAD_Y_MAX_ADJ 0 + #define LULZBOT_TOOLHEAD_Y_MIN_ADJ 0 + #define LULZBOT_TOOLHEAD_Z_MAX_ADJ 0 + #define LULZBOT_TOOLHEAD_Z_MIN_ADJ 0 + #define LULZBOT_TOOLHEAD_WIPE_X1_ADJ 0 + #define LULZBOT_TOOLHEAD_WIPE_X2_ADJ 0 + #define LULZBOT_TOOLHEAD_WIPE_Y1_ADJ 0 + #define LULZBOT_TOOLHEAD_WIPE_Y2_ADJ 0 + #define LULZBOT_E_STEPS 833 + #define LULZBOT_X_MAX_ENDSTOP_INVERTING LULZBOT_NORMALLY_OPEN_ENDSTOP + #define LULZBOT_MOTOR_CURRENT_E 750 // mA +#endif /* TOOLHEAD_Laser */ + + /************************ CUSTOMIZE VERSION STRING ***************************/ // The Makefile and build-lulzbot-firmware.sh has an option to generate @@ -995,6 +1017,17 @@ #define LULZBOT_DEFAULT_Kd 61.93 #endif /* LULZBOT_E3D_Titan_Aero */ +#if defined(LULZBOT_Laserhead) + // LulzBot Laserhead + #define HEATER_0_MINTEMP 0 + #define HEATER_0_MAXTEMP 255 + #define LULZBOT_HEATER_MAXTEMP 255 + #define LULZBOT_TEMP_SENSOR_0 998 + #define LULZBOT_DEFAULT_Kp 28.79 + #define LULZBOT_DEFAULT_Ki 1.91 + #define LULZBOT_DEFAULT_Kd 108.51 +#endif /* LULZBOT_Laserhead */ + // Heated bed variants //24V 360W silicone heater from NPH on 3mm borosilicate (TAZ 2.2+)