123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600 |
- #ifndef CONFIGURATION_ADV_H
- #define CONFIGURATION_ADV_H
-
- #include "Conditionals.h"
-
-
-
-
-
-
-
- #ifdef BED_LIMIT_SWITCHING
- #define BED_HYSTERESIS 2
- #endif
- #define BED_CHECK_INTERVAL 5000
-
-
- #ifdef THERMAL_PROTECTION_HOTENDS
- #define THERMAL_PROTECTION_PERIOD 40
- #define THERMAL_PROTECTION_HYSTERESIS 4
-
-
-
- #define WATCH_TEMP_PERIOD 16
- #define WATCH_TEMP_INCREASE 4
- #endif
-
- #ifdef THERMAL_PROTECTION_BED
- #define THERMAL_PROTECTION_BED_PERIOD 20
- #define THERMAL_PROTECTION_BED_HYSTERESIS 2
- #endif
-
-
- #ifdef PIDTEMP
-
-
- #define PID_ADD_EXTRUSION_RATE
- #ifdef PID_ADD_EXTRUSION_RATE
- #define DEFAULT_Kc (1)
- #endif
- #endif
-
-
-
-
-
-
-
-
-
- #define AUTOTEMP
- #ifdef AUTOTEMP
- #define AUTOTEMP_OLDWEIGHT 0.98
- #endif
-
-
-
-
-
-
-
-
-
-
- #define EXTRUDER_RUNOUT_MINTEMP 190
- #define EXTRUDER_RUNOUT_SECONDS 30.
- #define EXTRUDER_RUNOUT_ESTEPS 14.
- #define EXTRUDER_RUNOUT_SPEED 1500.
- #define EXTRUDER_RUNOUT_EXTRUDE 100
-
-
-
-
-
- #define TEMP_SENSOR_AD595_OFFSET 0.0
- #define TEMP_SENSOR_AD595_GAIN 1.0
-
-
-
-
- #define CONTROLLERFAN_PIN -1
- #define CONTROLLERFAN_SECS 60
- #define CONTROLLERFAN_SPEED 255
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define EXTRUDER_0_AUTO_FAN_PIN -1
- #define EXTRUDER_1_AUTO_FAN_PIN -1
- #define EXTRUDER_2_AUTO_FAN_PIN -1
- #define EXTRUDER_3_AUTO_FAN_PIN -1
- #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
- #define EXTRUDER_AUTO_FAN_SPEED 255
-
-
-
-
-
-
-
-
- #define ENDSTOPS_ONLY_FOR_HOMING
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef Z_DUAL_STEPPER_DRIVERS
-
-
-
-
-
-
-
-
-
-
- #define Z_DUAL_ENDSTOPS
-
- #ifdef Z_DUAL_ENDSTOPS
- #define Z2_STEP_PIN E2_STEP_PIN
- #define Z2_DIR_PIN E2_DIR_PIN
- #define Z2_ENABLE_PIN E2_ENABLE_PIN
- #define Z2_MAX_PIN 36
- const bool Z2_MAX_ENDSTOP_INVERTING = false;
- #define DISABLE_XMAX_ENDSTOP
- #endif
-
- #endif
-
-
-
-
-
- #define INVERT_Y2_VS_Y_DIR true
-
-
-
-
-
-
- #ifdef DUAL_X_CARRIAGE
-
-
-
- #define X2_MIN_POS 80
- #define X2_MAX_POS 353
- #define X2_HOME_DIR 1
- #define X2_HOME_POS X2_MAX_POS
-
-
-
-
-
-
- #define X2_ENABLE_PIN 29
- #define X2_STEP_PIN 25
- #define X2_DIR_PIN 23
-
-
-
-
-
-
-
-
-
-
-
- #define DEFAULT_DUAL_X_CARRIAGE_MODE 0
-
-
- #define TOOLCHANGE_PARK_ZLIFT 0.2
- #define TOOLCHANGE_UNPARK_ZLIFT 1
-
-
- #define DEFAULT_DUPLICATION_X_OFFSET 100
-
- #endif
-
-
-
-
- #define X_HOME_BUMP_MM 5
- #define Y_HOME_BUMP_MM 5
- #define Z_HOME_BUMP_MM 5
- #define HOMING_BUMP_DIVISOR {10, 10, 20}
-
-
-
-
-
-
-
- #define AXIS_RELATIVE_MODES {false, false, false, false}
-
-
-
-
- #define INVERT_X_STEP_PIN false
- #define INVERT_Y_STEP_PIN false
- #define INVERT_Z_STEP_PIN false
- #define INVERT_E_STEP_PIN false
-
-
- #define DEFAULT_STEPPER_DEACTIVE_TIME 60
-
- #define DEFAULT_MINIMUMFEEDRATE 0.0
- #define DEFAULT_MINTRAVELFEEDRATE 0.0
-
-
-
- #ifdef ULTIPANEL
- #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}
- #define ULTIPANEL_FEEDMULTIPLY
- #endif
-
-
-
-
- #define DEFAULT_MINSEGMENTTIME 20000
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define MINIMUM_PLANNER_SPEED 0.05
-
-
- #define MICROSTEP_MODES {16,16,16,16,16}
-
-
- #define DIGIPOT_MOTOR_CURRENT {135,135,135,135,135}
-
-
-
-
- #define DIGIPOT_I2C_NUM_CHANNELS 8
-
- #define DIGIPOT_I2C_MOTOR_CURRENTS {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
-
-
-
-
-
- #define ENCODER_RATE_MULTIPLIER
- #define ENCODER_10X_STEPS_PER_SEC 75
- #define ENCODER_100X_STEPS_PER_SEC 160
-
-
- #define CHDK_DELAY 50
-
-
-
- #ifdef SDSUPPORT
-
-
-
-
-
- #define SDCARDDETECTINVERTED
-
- #define SD_FINISHED_STEPPERRELEASE true
- #define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E"
-
- #define SDCARD_RATHERRECENTFIRST
-
-
-
-
-
-
-
- #ifdef LCD_PROGRESS_BAR
-
- #define PROGRESS_BAR_BAR_TIME 2000
-
- #define PROGRESS_BAR_MSG_TIME 3000
-
- #define PROGRESS_MSG_EXPIRE 0
-
-
- #endif
-
-
-
-
- #endif
-
-
- #ifdef DOGLCD
-
-
-
-
-
-
-
- #endif
-
-
-
-
-
-
-
- #ifdef USE_WATCHDOG
-
-
-
-
- #endif
-
-
-
-
-
-
-
-
-
-
- #ifdef BABYSTEPPING
- #define BABYSTEP_XY
- #define BABYSTEP_INVERT_Z false
- #define BABYSTEP_Z_MULTIPLICATOR 2
- #endif
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef ADVANCE
- #define EXTRUDER_ADVANCE_K .0
- #define D_FILAMENT 2.85
- #define STEPS_MM_E 836
- #endif
-
-
-
-
- #define MM_PER_ARC_SEGMENT 1
- #define N_ARC_CORRECTION 25
-
- const unsigned int dropsegments=5;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef SDSUPPORT
- #define BLOCK_BUFFER_SIZE 16
- #else
- #define BLOCK_BUFFER_SIZE 16
- #endif
-
-
-
-
- #define MAX_CMD_SIZE 96
- #define BUFSIZE 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef FWRETRACT
- #define MIN_RETRACT 0.1
- #define RETRACT_LENGTH 3
- #define RETRACT_LENGTH_SWAP 13
- #define RETRACT_FEEDRATE 45
- #define RETRACT_ZLIFT 0
- #define RETRACT_RECOVER_LENGTH 0
- #define RETRACT_RECOVER_LENGTH_SWAP 0
- #define RETRACT_RECOVER_FEEDRATE 8
- #endif
-
-
- #ifdef ULTIPANEL
-
- #ifdef FILAMENTCHANGEENABLE
- #define FILAMENTCHANGE_XPOS 3
- #define FILAMENTCHANGE_YPOS 3
- #define FILAMENTCHANGE_ZADD 10
- #define FILAMENTCHANGE_FIRSTRETRACT -2
- #define FILAMENTCHANGE_FINALRETRACT -100
- #endif
- #endif
-
-
-
-
-
-
- #ifdef HAVE_TMCDRIVER
-
-
- #define X_MAX_CURRENT 1000
- #define X_SENSE_RESISTOR 91
- #define X_MICROSTEPS 16
-
-
- #define X2_MAX_CURRENT 1000
- #define X2_SENSE_RESISTOR 91
- #define X2_MICROSTEPS 16
-
-
- #define Y_MAX_CURRENT 1000
- #define Y_SENSE_RESISTOR 91
- #define Y_MICROSTEPS 16
-
-
- #define Y2_MAX_CURRENT 1000
- #define Y2_SENSE_RESISTOR 91
- #define Y2_MICROSTEPS 16
-
-
- #define Z_MAX_CURRENT 1000
- #define Z_SENSE_RESISTOR 91
- #define Z_MICROSTEPS 16
-
-
- #define Z2_MAX_CURRENT 1000
- #define Z2_SENSE_RESISTOR 91
- #define Z2_MICROSTEPS 16
-
-
- #define E0_MAX_CURRENT 1000
- #define E0_SENSE_RESISTOR 91
- #define E0_MICROSTEPS 16
-
-
- #define E1_MAX_CURRENT 1000
- #define E1_SENSE_RESISTOR 91
- #define E1_MICROSTEPS 16
-
-
- #define E2_MAX_CURRENT 1000
- #define E2_SENSE_RESISTOR 91
- #define E2_MICROSTEPS 16
-
-
- #define E3_MAX_CURRENT 1000
- #define E3_SENSE_RESISTOR 91
- #define E3_MICROSTEPS 16
-
- #endif
-
-
-
-
-
-
- #ifdef HAVE_L6470DRIVER
-
-
- #define X_MICROSTEPS 16
- #define X_K_VAL 50
- #define X_OVERCURRENT 2000
- #define X_STALLCURRENT 1500
-
-
- #define X2_MICROSTEPS 16
- #define X2_K_VAL 50
- #define X2_OVERCURRENT 2000
- #define X2_STALLCURRENT 1500
-
-
- #define Y_MICROSTEPS 16
- #define Y_K_VAL 50
- #define Y_OVERCURRENT 2000
- #define Y_STALLCURRENT 1500
-
-
- #define Y2_MICROSTEPS 16
- #define Y2_K_VAL 50
- #define Y2_OVERCURRENT 2000
- #define Y2_STALLCURRENT 1500
-
-
- #define Z_MICROSTEPS 16
- #define Z_K_VAL 50
- #define Z_OVERCURRENT 2000
- #define Z_STALLCURRENT 1500
-
-
- #define Z2_MICROSTEPS 16
- #define Z2_K_VAL 50
- #define Z2_OVERCURRENT 2000
- #define Z2_STALLCURRENT 1500
-
-
- #define E0_MICROSTEPS 16
- #define E0_K_VAL 50
- #define E0_OVERCURRENT 2000
- #define E0_STALLCURRENT 1500
-
-
- #define E1_MICROSTEPS 16
- #define E1_MICROSTEPS 16
- #define E1_K_VAL 50
- #define E1_OVERCURRENT 2000
- #define E1_STALLCURRENT 1500
-
-
- #define E2_MICROSTEPS 16
- #define E2_MICROSTEPS 16
- #define E2_K_VAL 50
- #define E2_OVERCURRENT 2000
- #define E2_STALLCURRENT 1500
-
-
- #define E3_MICROSTEPS 16
- #define E3_MICROSTEPS 16
- #define E3_K_VAL 50
- #define E3_OVERCURRENT 2000
- #define E3_STALLCURRENT 1500
-
- #endif
-
- #include "Conditionals.h"
- #include "SanityCheck.h"
-
- #endif
|