




已阅读5页,还剩16页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Marlin固件配置文件Configuration.h中文备注浏览(13253)固件上传教程:/Marlin/marlin_upload.html-正文从下方开始-#ifndef CONFIGURATION_H#define CONFIGURATION_H/ This configuration file contains the basic settings./这个配置文件仅包含基本配置/ Advanced settings can be found in Configuration_adv.h/高级设置在Configurationg_adv.h文件/ BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration/基本设置:选择你的控制板类型、温度传感器类型、各轴移动校准和停止开关配置/=/= DELTA Printer =/=/ For a Delta printer replace the configuration files with the files in the/ example_configurations/delta directory./用三角洲打印机用户请从example_configurations/delta目录下同名文件替换这个文件。/ User-specified version info of this build to display in Pronterface, etc terminal window during/ startup. Implementation of an idea by Prof Braino to inform user that any changes made to this/ build by the user have been successfully uploaded into firmware.#define STRING_VERSION_CONFIG_H _DATE_ _TIME_ / build date and time#define STRING_CONFIG_H_AUTHOR (none, default config) / Who made the changes.设置修改配置的作者/ SERIAL_PORT selects which serial port should be used for communication with the host./ This allows the connection of wireless adapters (for instance) to non-default port pins./ Serial port 0 is still used by the Arduino bootloader regardless of this setting.#define SERIAL_PORT 0 /配置串口号,0表示忽略该设置,使用arduino bootloader配置/ This determines the communication speed of the printer/ This determines the communication speed of the printer#define BAUDRATE 250000 /设置波特率,默认即可。(这里要与pc中连接控制板软件设置的波特率相同,否则无法通信)/ This enables the serial port associated to the Bluetooth interface/#define BTENABLED / Enable BT interface on AT90USB devices/ The following define selects which electronics board you have. Please choose the one that matches your setup/下列控制板是marlin固件支持的/ 10 = Gen7 custom (Alfons3 Version) /Alfons3/Generation_7_Electronics/ 11 = Gen7 v1.1, v1.2 = 11/ 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 /该型号为功能最强大型号,各版对比页面:/wiki/Comparison_of_Electronics/ 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/ 301= Rambo/ 21 = Elefu Ra Board (v3)#ifndef MOTHERBOARD#define MOTHERBOARD 80 /根据你的控制板类型对应的编号设置,创客工作室淘宝店出售为该型号()#endif/ Define this to set a custom name for your generic Mendel,/ #define CUSTOM_MENDEL_NAME This Mendel /配置mendel打印机的名字/ Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)/ You can use an online service to generate a random UUID. (eg/version4)/ #define MACHINE_UUID 00000000-0000-0000-0000-000000000000/ This defines the number of extruders#define EXTRUDERS 1 /配置挤出机的个数/ The following define selects which power supply you have. Please choose the one that matches your setup/ 1 = ATX/ 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)#define POWER_SUPPLY 1 /配置电源类型,用于控制电源,如LCD中的关机选项。如果是pc的atx电源,并且按照要求连线该项才能生效。/ Define this to have the electronics keep the power supply off on startup. If you dont know what this is leave it./ #define PS_DEFAULT_OFF/=/=Thermal Settings =传感器设置/=/-NORMAL IS 4.7kohm PULLUP!- 1kohm pullup can be used on hotend sensor, using correct resistor and table/ Temperature sensor settings:/ -2 is thermocouple with MAX6675 (only for sensor 0)/ -1 is thermocouple with AD595/ 0 is not used/ 1 is 100k thermistor - best choice for EPCOS 100k (4.7k pullup)/ 2 is 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)/ 3 is Mendel-parts thermistor (4.7k pullup)/ 4 is 10k thermistor ! do not use it for a hotend. It gives bad resolution at high temp. !/ 5 is 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (4.7k pullup)/ 6 is 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup)/ 7 is 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup)/ 71 is 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup)/ 8 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)/ 9 is 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)/ 10 is 100k RS thermistor 198-961 (4.7k pullup)/ 11 is 100k beta 3950 1% thermistor (4.7k pullup)/ 20 is the PT100 circuit found in the Ultimainboard V2.x/ 60 is 100k Makers Tool Works Kapton Bed Thermistor beta=3950/ 1k ohm pullup tables - This is not normal, you would have to have changed out your 4.7k for 1k/ (but gives greater accuracy and more stable PID)/ 51 is 100k thermistor - EPCOS (1k pullup)/ 52 is 200k thermistor - ATC Semitec 204GT-2 (1k pullup)/ 55 is 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (1k pullup)/ 1047 is Pt1000 with 4k7 pullup/ 1010 is Pt1000 with 1k pullup (non standard)/ 147 is Pt100 with 4k7 pullup/ 110 is Pt100 with 1k pullup (non standard)/配置传感器,根据挤出机个数来配置连接传感器数量。如果只有1个挤出机,则只需要开启传感器0接口和热床接口即可。#define TEMP_SENSOR_0 -1 /设置传感器0接口连接的传感器类型编号,类型根据上面说明设置相应的编号#define TEMP_SENSOR_1 -1#define TEMP_SENSOR_2 0 /设置传感器2接口连接的传感器编号,0表示关闭该端口#define TEMP_SENSOR_BED 1 /设置热床传感器端口连接的传感器类型。该项如果设置错误将影响加热床温度控制。/ This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted./这里用传感器1来做传感器0的冗余。如果两个传感器温度差较大,将停止打印。/#define TEMP_SENSOR_1_AS_REDUNDANT /设置传感器1作为冗余传感器。#define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10 /设置温度最大差值/ Actual temperature must be close to target for this long before M109 returns success打印之前通过M109检查当前温度已经接近设置温度,并等待N秒作为缓冲。#define TEMP_RESIDENCY_TIME 10 / (seconds) 设置达到设置温度后等待时间,单位秒#define TEMP_HYSTERESIS 3 / (degC) range of +/- temperatures considered close to the target one/设置离设置温度的浮动范围#define TEMP_WINDOW 1 / (degC) Window around target to start the residency timer x degC early./ The minimal temperature defines the temperature below which the heater will not be enabled It is used/最低温度低于N时,加热头将不会工作。该功能确保温度传感器连接或配置错误时不会烧毁设备。/ to check that the wiring to the thermistor is not broken./检查热敏电阻是否正常。/ Otherwise this would lead to the heater being powered on all the time./如果热门电阻工作不正常,将使加热头电源一直工作。这是非常危险的。#define HEATER_0_MINTEMP 15 /设置加热头0的最小温度,一般设置成室内最低温度比较好。因为开机时应该测量到的是室温。#define HEATER_1_MINTEMP 15#define HEATER_2_MINTEMP 15#define BED_MINTEMP 15/ When temperature exceeds max temp, your heater will be switched off./当温度超过最大设置值,加热头会自动关闭。/ This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!/该项配置是为了保护你的设备,避免加热温度过高产生以外。但不能防止温度传感器非正常工作的情况。/ You should use MINTEMP for thermistor short/failure protection./你应该使用MINTEMP选项来保证温度传感器短路或损坏时的设备安全。#define HEATER_0_MAXTEMP 275#define HEATER_1_MAXTEMP 275#define HEATER_2_MAXTEMP 275#define BED_MAXTEMP 150/ If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the/ average current. The value should be an integer and the heat bed will be turned on for 1 interval of/ HEATER_BED_DUTY_CYCLE_DIVIDER intervals./如果你的热床电流较大,你可以通过设置占空比的方式降低电流,这个值应该是个整数,数字越大,电流越小。/#define HEATER_BED_DUTY_CYCLE_DIVIDER 4/ If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS/如果你想用M105命令来显示加热器的功耗,需要设置下面两个参数/#define EXTRUDER_WATTS (12.0*12.0/6.7) / P=I2/R/#define BED_WATTS (12.0*12.0/1.1) / P=I2/R/ PID settings:/PID设置/ Comment the following line to disable PID and enable bang-bang.#define PIDTEMP#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 actual temperature / 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 dont understand the issues involved, you probably/ shouldnt use bed PID until someone else verifies your hardware works./ If this is enabled, find your own PID constants below./#define PIDTEMPBED/#define BED_LIMIT_SWITCHING/ This sets the max power delivered to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option./ all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)/ setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,/ so you shouldnt use it unless you are OK with PWM on your bed. (see the comment on enabling PIDTEMPBED)#define MAX_BED_POWER 255 / limits duty cycle to bed; 255=full current/通过占空比方式限制热床的最大功率,255表示不限制#ifdef PIDTEMPBED/120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)/from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10) #define DEFAULT_bedKp 10.00 #define DEFAULT_bedKi .023 #define DEFAULT_bedKd 305.4/120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)/from pidautotune/ #define DEFAULT_bedKp 97.1/ #define DEFAULT_bedKi 1.41/ #define DEFAULT_bedKd 1675.16/ FIND YOUR OWN: M303 E-1 C8 S90 to run autotune on the bed at 90 degreesC for 8 cycles.#endif / PIDTEMPBED/this prevents dangerous Extruder moves, i.e. if the temperature is under the limit/can be software-disabled for whatever purposes by/为了防止加热头未开启时的冷挤出,这里设置当加热头温度未达到N时不允许挤出操作执行。(M302指令可以解除冷挤出限制)#define PREVENT_DANGEROUS_EXTRUDE/if PREVENT_DANGEROUS_EXTRUDE is on, you can still disable (uncomment) very long bits of extrusion separately.#define PREVENT_LENGTHY_EXTRUDE#define EXTRUDE_MINTEMP 170 /设置挤出头运行的最低温度#define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) /prevent extrusion of very large distances./避免非常长的挤出操作/=/=Mechanical Settings=机械方面设置/=/ Uncomment the following line to enable CoreXY kinematics/ #define COREXY /取消前面的注释可以期待用corexy运动系统/ coarse Endstop Settings 限位开关设置#define ENDSTOPPULLUPS / Comment this out (using / at the start of the line) to disable the endstop pullup resistors/将上面参数用“/”注释掉,将禁用限位开关的上拉电阻。该配置是全局配置,不用该参数可以用下面单独设置是否开启上拉电阻#ifndef ENDSTOPPULLUPS / fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined /分别对限位开关单独设置上拉电阻。如果ENDSTOPPULLUPS被定义,该配置将被忽略 / #define ENDSTOPPULLUP_XMAX / #define ENDSTOPPULLUP_YMAX / #define ENDSTOPPULLUP_ZMAX / #define ENDSTOPPULLUP_XMIN / #define ENDSTOPPULLUP_YMIN / #define ENDSTOPPULLUP_ZMIN#endif#ifdef ENDSTOPPULLUPS #define ENDSTOPPULLUP_XMAX #define ENDSTOPPULLUP_YMAX #define ENDSTOPPULLUP_ZMAX #define ENDSTOPPULLUP_XMIN #define ENDSTOPPULLUP_YMIN #define ENDSTOPPULLUP_ZMIN#endif/ The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins./如果你使用机械式的限位开关,并且接到了信号和GND两个接口,那么上面的上拉配置需要打开/配置3个轴的限位开关类型的,配置为true,限位开关应该接常开端子。如果你接常闭端子,则将true改为false。const bool X_MIN_ENDSTOP_INVERTING = true; / set to true to invert the logic of the endstop./设置为true来颠倒限位开关逻辑值。如果设置为true时,限位开关实际的开/合与检测相反,则将该参数配置为falseconst bool Y_MIN_ENDSTOP_INVERTING = true; / set to true to invert the logic of the endstop.const bool Z_MIN_ENDSTOP_INVERTING = true; / set to true to invert the logic of the endstop.const bool X_MAX_ENDSTOP_INVERTING = true; / set to true to invert the logic of the endstop.const bool Y_MAX_ENDSTOP_INVERTING = true; / set to true to invert the logic of the endstop.const bool Z_MAX_ENDSTOP_INVERTING = true; / set to true to invert the logic of the endstop./#define DISABLE_MAX_ENDSTOPS/#define DISABLE_MIN_ENDSTOPS/ Disable max endstops for compatibility with endstop checking routine/为了挡块检查程序的兼容性禁用最大终点挡块#if defined(COREXY) & !defined(DISABLE_MAX_ENDSTOPS) #define DISABLE_MAX_ENDSTOPS#endif/ For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1/设置步进电机使能引脚的电平。(4988模块保持0即可)#define X_ENABLE_ON 0#define Y_ENABLE_ON 0#define Z_ENABLE_ON 0#define E_ENABLE_ON 0 / For all extruders 针对所有挤出机有效/ Disables axis when its not being used./当哪个轴不运动时是否关闭电机。(注意:如果这里打开将会使电机在不使用时被锁止,而导致电机温度急剧上升)#define DISABLE_X false#define DISABLE_Y false#define DISABLE_Z false#define DISABLE_E false / For all extruders 针对所有挤出机有效/电机运动方向控制。由于电机连线不同,电机的运动方向也不同,但打印机的0点位置在左下角,如果电机的运动方向/与控制方向不同,则可以将下面参数值true和false对调,也可以将步进电机的4根线反过来插。#define INVERT_X_DIR true / for Mendel set to false, for Orca set to true (X轴配置)#define INVERT_Y_DIR false / for Mendel set to true, for Orca set to false(Y轴配置)#define INVERT_Z_DIR true / for Mendel set to false, for Orca set to true(Z轴配置)#define INVERT_E0_DIR false / for direct drive extruder v9 set to true, for geared extruder set to false (挤出机0配置)#define INVERT_E1_DIR false / for direct drive extruder v9 set to true, for geared extruder set to false (挤出机1配置)#define INVERT_E2_DIR false / for direct drive extruder v9 set to true, for geared extruder set to false (挤出机2配置)/ ENDSTOP SETTINGS: 停止开关设置/ Sets direction of endstops when homing; 1=MAX, -1=MIN/设置回0时,电机的运动方向。1最大限位方向,-1最小限位方向。一般都是设置为-1#define X_HOME_DIR -1#define Y_HOME_DIR -1#define Z_HOME_DIR -1/软限位开关设置#define min_software_endstops true / If true, axis wont move to coordinates less than HOME_POS./最小值设置,如果设置为true,则移动距离HOME_POS值#define max_software_endstops true / If true, axis wont move to coordinates greater than the defined lengths below./最大值设置,如果设置为true,轴不会移动到坐标大于下面定义的长度。/ Travel limits after homing/各轴的软件限位值#define X_MAX_POS 205#define X_MIN_POS 0#define Y_MAX_POS 205#define Y_MIN_POS 0#define Z_MAX_POS 200#define Z_MIN_POS 0#define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)#define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)#define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)/= Bed Auto Leveling =热床自动平衡配置/#define ENABLE_AUTO_BED_LEVELING / Delete the comment to enable (remove / at the start of the line)/是否开启自动调平功能#ifdef ENABLE_AUTO_BED_LEVELING/ There are 2 different ways to pick the X and Y locations to probe:/ - grid mode/ Probe every point in a rectangular grid/ You must specify the rectangle, and the density of sample points/ This mode is preferred because there are more measurements./ It used to be called ACCURATE_BED_LEVELING but grid is more descriptive/ - 3-point mode/ Probe 3 arbitrary points on the bed (that arent coline
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 农村供水管网提升工程可行性分析报告(参考范文)
- 集装箱码头项目可行性分析报告
- 5GW动力电池制造工程可行性分析报告(范文)
- 2025版钢结构工程劳务分包合同范本及合同解除与补偿条款
- 2025版跨境贸易抵押贷款合同模板及细则
- 二零二五年度城市地下管线电工维修服务合同
- 二零二五年度文化娱乐产业财务风险防范合同
- 2025版高性能水泥产品买卖合同
- 2025版工程车运输废弃物处理与资源化利用合同
- 二零二五年度办公楼水电工程设计与施工绿色施工合同
- 混凝土结构设计原理教学教案
- 民间文学(全套课件)
- 专升本00465心理卫生与心理辅导历年试题题库(考试必备)
- 既有重载铁路无缝线路改造及运维技术探索
- 2022年教师副高职称评答辩范文(七篇)
- 高压罗茨风机选型参数表
- 中国监察制度史
- 架桥机日常检查记录表架桥机验收及试吊安全检查表
- 屠宰加工企业组织机构职能分配表正式版
- 善交益友、乐交诤友、不交损友(课堂PPT)
- 消防水泵房上墙制度
评论
0/150
提交评论