3的打印固件說明和修改.doc_第1頁
3的打印固件說明和修改.doc_第2頁
3的打印固件說明和修改.doc_第3頁
3的打印固件說明和修改.doc_第4頁
3的打印固件說明和修改.doc_第5頁
已閱讀5頁,還剩16頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

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/高級設(shè)置在Configurationg_adv.h文件/ BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration/基本設(shè)置:選擇你的控制板類型、溫度傳感器類型、各軸移動校準(zhǔn)和停止開關(guān)配置/=/= DELTA Printer =/=/ For a Delta printer replace the configuration files with the files in the/ example_configurations/delta directory./用三角洲打印機(jī)用戶請從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.設(shè)置修改配置的作者/ 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表示忽略該設(shè)置,使用arduino bootloader配置/ This determines the communication speed of the printer/ This determines the communication speed of the printer#define BAUDRATE 250000 /設(shè)置波特率,默認(rèn)即可。(這里要與pc中連接控制板軟件設(shè)置的波特率相同,否則無法通信)/ 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 /該型號為功能最強(qiáng)大型號,各版對比頁面:/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 /根據(jù)你的控制板類型對應(yīng)的編號設(shè)置,創(chuàng)客工作室淘寶店出售為該型號()#endif/ Define this to set a custom name for your generic Mendel,/ #define CUSTOM_MENDEL_NAME This Mendel /配置mendel打印機(jī)的名字/ 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 /配置擠出機(jī)的個數(shù)/ 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中的關(guān)機(jī)選項。如果是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 =傳感器設(shè)置/=/-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)/配置傳感器,根據(jù)擠出機(jī)個數(shù)來配置連接傳感器數(shù)量。如果只有1個擠出機(jī),則只需要開啟傳感器0接口和熱床接口即可。#define TEMP_SENSOR_0 -1 /設(shè)置傳感器0接口連接的傳感器類型編號,類型根據(jù)上面說明設(shè)置相應(yīng)的編號#define TEMP_SENSOR_1 -1#define TEMP_SENSOR_2 0 /設(shè)置傳感器2接口連接的傳感器編號,0表示關(guān)閉該端口#define TEMP_SENSOR_BED 1 /設(shè)置熱床傳感器端口連接的傳感器類型。該項如果設(shè)置錯誤將影響加熱床溫度控制。/ 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 /設(shè)置傳感器1作為冗余傳感器。#define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10 /設(shè)置溫度最大差值/ Actual temperature must be close to target for this long before M109 returns success打印之前通過M109檢查當(dāng)前溫度已經(jīng)接近設(shè)置溫度,并等待N秒作為緩沖。#define TEMP_RESIDENCY_TIME 10 / (seconds) 設(shè)置達(dá)到設(shè)置溫度后等待時間,單位秒#define TEMP_HYSTERESIS 3 / (degC) range of +/- temperatures considered close to the target one/設(shè)置離設(shè)置溫度的浮動范圍#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時,加熱頭將不會工作。該功能確保溫度傳感器連接或配置錯誤時不會燒毀設(shè)備。/ 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 /設(shè)置加熱頭0的最小溫度,一般設(shè)置成室內(nèi)最低溫度比較好。因為開機(jī)時應(yīng)該測量到的是室溫。#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./當(dāng)溫度超過最大設(shè)置值,加熱頭會自動關(guān)閉。/ This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!/該項配置是為了保護(hù)你的設(shè)備,避免加熱溫度過高產(chǎn)生以外。但不能防止溫度傳感器非正常工作的情況。/ You should use MINTEMP for thermistor short/failure protection./你應(yīng)該使用MINTEMP選項來保證溫度傳感器短路或損壞時的設(shè)備安全。#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./如果你的熱床電流較大,你可以通過設(shè)置占空比的方式降低電流,這個值應(yīng)該是個整數(shù),數(shù)字越大,電流越小。/#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命令來顯示加熱器的功耗,需要設(shè)置下面兩個參數(shù)/#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設(shè)置/ 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/為了防止加熱頭未開啟時的冷擠出,這里設(shè)置當(dāng)加熱頭溫度未達(dá)到N時不允許擠出操作執(zhí)行。(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 /設(shè)置擠出頭運行的最低溫度#define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) /prevent extrusion of very large distances./避免非常長的擠出操作/=/=Mechanical Settings=機(jī)械方面設(shè)置/=/ Uncomment the following line to enable CoreXY kinematics/ #define COREXY /取消前面的注釋可以期待用corexy運動系統(tǒng)/ coarse Endstop Settings 限位開關(guān)設(shè)置#define ENDSTOPPULLUPS / Comment this out (using / at the start of the line) to disable the endstop pullup resistors/將上面參數(shù)用“/”注釋掉,將禁用限位開關(guān)的上拉電阻。該配置是全局配置,不用該參數(shù)可以用下面單獨設(shè)置是否開啟上拉電阻#ifndef ENDSTOPPULLUPS / fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined /分別對限位開關(guān)單獨設(shè)置上拉電阻。如果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./如果你使用機(jī)械式的限位開關(guān),并且接到了信號和GND兩個接口,那么上面的上拉配置需要打開/配置3個軸的限位開關(guān)類型的,配置為true,限位開關(guān)應(yīng)該接常開端子。如果你接常閉端子,則將true改為false。const bool X_MIN_ENDSTOP_INVERTING = true; / set to true to invert the logic of the endstop./設(shè)置為true來顛倒限位開關(guān)邏輯值。如果設(shè)置為true時,限位開關(guān)實際的開/合與檢測相反,則將該參數(shù)配置為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/設(shè)置步進(jìn)電機(jī)使能引腳的電平。(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 針對所有擠出機(jī)有效/ Disables axis when its not being used./當(dāng)哪個軸不運動時是否關(guān)閉電機(jī)。(注意:如果這里打開將會使電機(jī)在不使用時被鎖止,而導(dǎo)致電機(jī)溫度急劇上升)#define DISABLE_X false#define DISABLE_Y false#define DISABLE_Z false#define DISABLE_E false / For all extruders 針對所有擠出機(jī)有效/電機(jī)運動方向控制。由于電機(jī)連線不同,電機(jī)的運動方向也不同,但打印機(jī)的0點位置在左下角,如果電機(jī)的運動方向/與控制方向不同,則可以將下面參數(shù)值true和false對調(diào),也可以將步進(jìn)電機(jī)的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 (擠出機(jī)0配置)#define INVERT_E1_DIR false / for direct drive extruder v9 set to true, for geared extruder set to false (擠出機(jī)1配置)#define INVERT_E2_DIR false / for direct drive extruder v9 set to true, for geared extruder set to false (擠出機(jī)2配置)/ ENDSTOP SETTINGS: 停止開關(guān)設(shè)置/ Sets direction of endstops when homing; 1=MAX, -1=MIN/設(shè)置回0時,電機(jī)的運動方向。1最大限位方向,-1最小限位方向。一般都是設(shè)置為-1#define X_HOME_DIR -1#define Y_HOME_DIR -1#define Z_HOME_DIR -1/軟限位開關(guān)設(shè)置#define min_software_endstops true / If true, axis wont move to coordinates less than HOME_POS./最小值設(shè)置,如果設(shè)置為true,則移動距離HOME_POS值#define max_software_endstops true / If true, axis wont move to coordinates greater than the defined lengths below./最大值設(shè)置,如果設(shè)置為true,軸不會移動到坐標(biāo)大于下面定義的長度。/ 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)/是否開啟自動調(diào)平功能#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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論