admin 管理员组文章数量: 1086019
2023年12月22日发(作者:可乐发卡网源码)
// 12 = Gen7 v1.3// 13 = Gen7 v1.4// 2 = Cheaptronic v1.0// 20 = Sethi 3D_1// 3 = MEGA/RAMPS up to 1.2 = 3// 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)// 34 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)// 35 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)// 4 = Duemilanove w/ ATMega328P pin assignment// 5 = Gen6// 51 = Gen6 deluxe// 6 = Sanguinololu < 1.2// 62 = Sanguinololu 1.2 and above// 63 = Melzi// 64 = STB V1.1// 65 = Azteeg X1// 66 = Melzi with ATmega1284 (MaKr3d version)// 67 = Azteeg X3// 68 = Azteeg X3 Pro// 7 = Ultimaker// 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)// 72 = Ultimainboard 2.x (Uses TEMP_SENSOR 20)// 77 = 3Drag Controller// 8 = Teensylu// 80 = Rumba// 81 = Printrboard (AT90USB1286)// 82 = Brainwave (AT90USB646)// 83 = SAV Mk-I (AT90USB1286)// 9 = Gen3+// 70 = Megatronics// 701= Megatronics v2.0// 702= Minitronics v1.0// 90 = Alpha OMCA board// 91 = Final OMCA board
#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current#define PID_MAX 255 // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current#ifdef PIDTEMP//#define PID_DEBUG // Sends debug data to the serial port.//#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX#define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actualtemperature// is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.#define PID_INTEGRAL_DRIVE_MAX 255 //limit for the integral term#define K1 0.95 //smoothing factor within the PID#define PID_dT ((OVERSAMPLENR * 8.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it// Ultimaker#define DEFAULT_Kp 22.2#define DEFAULT_Ki 1.08#define DEFAULT_Kd 114// MakerGear// #define DEFAULT_Kp 7.0// #define DEFAULT_Ki 0.1// #define DEFAULT_Kd 12// Mendel Parts V9 on 12V// #define DEFAULT_Kp 63.0// #define DEFAULT_Ki 2.25// #define DEFAULT_Kd 440#endif // PIDTEMP// Bed Temperature Control// Select PID or bang-bang with PIDTEMPBED. If bang-bang, BED_LIMIT_SWITCHING will enable hysteresis//// Uncomment this to enable PID on the bed. It uses the same frequency PWM as the extruder.// If your PID_dT above is the default, and correct for your hardware/configuration, that means 7.689Hz,// which is fine for driving a square wave into a resistive load and does not significantly impact you FET heating.// This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W heater.// If your configuration is significantly different than this and you don't understand the issues involved, you probably// shouldn't use bed PID until someone else verifies your hardware works.
#define BACK_PROBE_BED_POSITION 180#define FRONT_PROBE_BED_POSITION 20// set the number of grid points per dimension// I wouldn't see a reason to go above 3 (=9 probing points on the bed)#define AUTO_BED_LEVELING_GRID_POINTS 2#else // not AUTO_BED_LEVELING_GRID// with no grid, just probe 3 arbitrary points. A simple cross-product// is used to esimate the plane of the print bed#define ABL_PROBE_PT_1_X 15#define ABL_PROBE_PT_1_Y 180#define ABL_PROBE_PT_2_X 15#define ABL_PROBE_PT_2_Y 20#define ABL_PROBE_PT_3_X 170#define ABL_PROBE_PT_3_Y 20#endif // AUTO_BED_LEVELING_GRID// these are the offsets to the probe relative to the extruder tip (Hotend - Probe)#define X_PROBE_OFFSET_FROM_EXTRUDER -25#define Y_PROBE_OFFSET_FROM_EXTRUDER -29#define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35#define Z_RAISE_BEFORE_HOMING 4 // (in mm) Raise Z before homing (G28) for Probe Clearance.// Be sure you have this distance over your Z_MAX_POS in case#define XY_TRAVEL_SPEED 8000 // X and Y axis travel speed between probes, in mm/min#define Z_RAISE_BEFORE_PROBING 15 //How much the extruder will be raised before traveling to the first probing point.#define Z_RAISE_BETWEEN_PROBINGS 5 //How much the extruder will be raised when traveling from between nextprobing points//If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk//The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but youcan try lower it.// You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will notcompile.// #define PROBE_SERVO_DEACTIVATION_DELAY 300//If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,//it is highly recommended you let this Z_SAFE_HOMING enabled#define Z_SAFE_HOMING // This feature is meant to avoid Z homing with probe outside the bed area.// When defined, it will:
// The RepRapWorld REPRAPWORLD_KEYPAD v1.1//#define REPRAPWORLD_KEYPAD//#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // how much should be moved when a key is pressed, eg 10.0means 10mm per click// The Elefu RA Board Control Panel//#define RA_CONTROL_PANEL//automatic expansion#if defined (MAKRPANEL)#define DOGLCD#define SDSUPPORT#define ULTIPANEL#define NEWPANEL#define DEFAULT_LCD_CONTRAST 17#endif#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)#define DOGLCD#define U8GLIB_ST7920#define REPRAP_DISCOUNT_SMART_CONTROLLER#endif#if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)#define ULTIPANEL#define NEWPANEL#endif#if defined(REPRAPWORLD_KEYPAD)#define NEWPANEL#define ULTIPANEL#endif#if defined(RA_CONTROL_PANEL)#define ULTIPANEL#define NEWPANEL#define LCD_I2C_TYPE_PCA8574#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander#endif//I2C PANELS
//#define LCD_I2C_SAINSMART_YWROBOT#ifdef LCD_I2C_SAINSMART_YWROBOT// Make sure it is placed in the Arduino libraries directory.#define LCD_I2C_TYPE_PCF8575#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander#define NEWPANEL#define ULTIPANEL#endif// PANELOLU2 LCD with status LEDs, separate encoder and click inputs//#define LCD_I2C_PANELOLU2#ifdef LCD_I2C_PANELOLU2// Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.// (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file)// Note: The PANELOLU2 encoder click input can either be directly connected to a pin// (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).#define LCD_I2C_TYPE_MCP23017#define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander#define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD#define NEWPANEL#define ULTIPANEL#ifndef ENCODER_PULSES_PER_STEP#define ENCODER_PULSES_PER_STEP 4#endif#ifndef ENCODER_STEPS_PER_MENU_ITEM#define ENCODER_STEPS_PER_MENU_ITEM 1#endif#ifdef LCD_USE_I2C_BUZZER#define LCD_FEEDBACK_FREQUENCY_HZ 1000#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100#endif#endif// Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs//#define LCD_I2C_VIKI#ifdef LCD_I2C_VIKI
// Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.// Note: The pause/stop/resume LCD button pin should be connected to the Arduino// BTN_ENC pin (or set BTN_ENC to -1 if not used)#define LCD_I2C_TYPE_MCP23017#define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander#define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)#define NEWPANEL#define ULTIPANEL#endif// Shift register panels// ---------------------// 2 wire Non-latching LCD SR from://#define SR_LCD#ifdef SR_LCD#define SR_LCD_2W_NL // Non latching 2 wire shift register//#define NEWPANEL#endif#ifdef ULTIPANEL// #define NEWPANEL //enable this if you have a click-encoder panel#define SDSUPPORT#define ULTRA_LCD#ifdef DOGLCD // Change number of lines to match the DOG graphic display#define LCD_WIDTH 20#define LCD_HEIGHT 5#else#define LCD_WIDTH 20#define LCD_HEIGHT 4#endif#else //no panel but just LCD#ifdef ULTRA_LCD#ifdef DOGLCD // Change number of lines to match the 128x64 graphics display#define LCD_WIDTH 20#define LCD_HEIGHT 5#else
#define LCD_WIDTH 16#define LCD_HEIGHT 2#endif#endif#endif// default LCD contrast for dogm-like LCD displays#ifdef DOGLCD# ifndef DEFAULT_LCD_CONTRAST# define DEFAULT_LCD_CONTRAST 32# endif#endif// Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino//#define FAST_PWM_FAN// Temperature status LEDs that display the hotend and bet temperature.// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.// Otherwise the RED led is on. There is 1C hysteresis.//#define TEMP_STAT_LEDS// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency// which is not ass annoying as with the hardware PWM. On the other hand, if this frequency// is too low, you should also increment SOFT_PWM_SCALE.//#define FAN_SOFT_PWM// Incrementing this by 1 will double the software PWM frequency,// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.// However, control resolution will be halved for each increment;// at zero value, there are 128 effective control positions.#define SOFT_PWM_SCALE 0// M240 Triggers a camera by emulating a Canon RC-1 Remote// #define PHOTOGRAPH_PIN 23// SF send wrong arc g-codes when using Arc Point as fillet procedure//#define SF_ARC_FIX// Support for the BariCUDA Paste Extruder.//#define BARICUDA//define BlinkM/CyzRgb Support//#define BLINKM
/********************************************************************** R/C SERVO support* Sponsored by TrinityLabs, Reworked by codexmas**********************************************************************/// Number of servos//// If you select a configuration below, this will receive a default value and does not need to be set manually// set it manually if you have more servos than extruders and wish to manually control some// leaving it undefined or defining as 0 will disable the servo subsystem// If unsure, leave commented / disabled////#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command// Servo Endstops//// This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.// Use M206 command to correct for switch height offset to actual nozzle height. Store that setting with M500.////#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1//#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles#include "Configuration_adv.h"#include "thermistortables.h"#endif //__CONFIGURATION_H
版权声明:本文标题:marlin固件烧录教程_3D打印机——Marlin固件全中文解析 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1703225580a443010.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论