Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

[SOLVED] how to implement second heater? (2 replies)

$
0
0
Hey there,
I've got a FLsun Cube and got it with a single extruder but I want to implement a second extruder. The printer uses the MKS GEN_L V1.0 Board which actually has two heater ports but uses the RAMPS 14 configuration.
I normally like modifying my Marlin FW but I only adjust values and do not change the code itself untill now... So my question is the following:
[ATTACHEMENTS IN DROPBOX LINK AT THE END OF THE POST]

Does anyone know how the second extruder (more specifically the second heater) is implemented in the attached Marlin 1.1.4-cube-chimera (I attached my Version as well: "DualCore Marlin-1.1.5")? I see that it runs the RAMPS_14_EFB mode, but where is the HEATER_1_PIN defined then?
I wanted to do as less changes as possible concerning the original code file but in order to get it work (and leave the FW usable for other settings) I had to do the following:

configuration.h (besides adjusting the values for a second extruder):
-change "#define MOTHERBOARD BOARD_RAMPS_14_EFB"
to "#define MOTHERBOARD BOARD_RAMPS_14_EFBE"

pins.h:
-add lines "#elif MB(RAMPS_14_EFBF || RAMPS_14_EFBE)
#include "pins_RAMPS.h"
which avoids to set a mode for the ramps board (as "#define IS_RAMPS_EFB" would do)

pins_RAMPS.h:
-disable the "Augumentation for auto-assigning RAMPS plugs" section in order to leave the ramps mode unspecified
-set the MOSFET_D_PIN (from-1) to 7 which is the actual port for heater 1 (which then will be assigned to HEATER_1_PIN a few lines below in "[...] #else #define HEATER_1_PIN MOSFET_D_PIN")

Compiling was successfull so far and I think my way could also work but I would like to know how it is done in the firmware supplied with the original dual extruder setup.

FILES: [www.dropbox.com]

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>