![Marlin固件全中文解析_第1頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-4/1/7a11754a-9c70-43fb-b312-540a5893099c/7a11754a-9c70-43fb-b312-540a5893099c1.gif)
![Marlin固件全中文解析_第2頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-4/1/7a11754a-9c70-43fb-b312-540a5893099c/7a11754a-9c70-43fb-b312-540a5893099c2.gif)
![Marlin固件全中文解析_第3頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-4/1/7a11754a-9c70-43fb-b312-540a5893099c/7a11754a-9c70-43fb-b312-540a5893099c3.gif)
下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、#ifndefCONFIGURATIONH#defineCONFIGURATION_H/Thisconfigurationfilecontainsthebasicsettings./AdvancedsettingscanbefoundinConfiguration_adv.h/BASICSETTINGS:selectyourboardtype,temperaturesensortype,axisscaling,andendstopconfiguration/基本設(shè)置包括:主板類型,溫度傳感器類型,軸設(shè)置,限位開(kāi)關(guān)配置/=/=DELTAPrinter/=/ForaDeltaprinterrepl
2、acetheconfigurationfileswiththefilesinthe|/example_configurations/deltadirectory./對(duì)于三角洲并聯(lián)打印機(jī),請(qǐng)找到固件里example_configurations文件夾下的delta子文件夾,并將其中的Configuration.h和Configuration_adv.h兩個(gè)頭文件拷貝到固件文件夾下,替換原先固件里的這兩個(gè)頭文件,并針對(duì)delta打印機(jī)作相應(yīng)參數(shù)配置。/User-specifiedversioninfoofthisbuildtodisplayinPronterface,etcterminalwind
3、owduring/startup.ImplementationofanideabyProfBrainotoinformuserthatanychangesmadetothis/buildbytheuserhavebeensuccessfullyuploadedintofirmware.#defineSTRINGVERSIONCONFIGHDATETIME/builddateandtime#defineSTRING_CONFIG_H_AUTHOR(none,defaultconfig)/Whomadethechanges./SERIAL_PORTselectswhichserialportsho
4、uldbeusedforcommunicationwiththehost./Thisallowstheconnectionofwirelessadapters(forinstance)tonon-defaultportpins./Serialport0isstillusedbytheArduinobootloaderregardlessofthissetting.I#defineSERIALPORT0/選擇用于和上位機(jī)通訊的串口,該值請(qǐng)保持0不動(dòng)/Thisdeterminesthecommunicationspeedoftheprinter/Thisdeterminesthecommunica
5、tionspeedoftheprinter#defineBAUDRATE250000/波特率配置,該值必須和你的上位機(jī)波特率相匹配,否則無(wú)法通訊。常用波特率有115200和250000/ThisenablestheserialportassociatedtotheBluetoothinterface/#defineBTENABLED115200和250000/ThisenablestheserialportassociatedtotheBluetoothinterface/#defineBTENABLED/#defineBTENABLED/#defineBTENABLED/EnableBTin
6、terfaceonAT90USBdevices/Thefollowingdefineselectswhichelectronicsboardyouhave.Pleasechoosetheone|thatmatchesyoursetup/10=Gen7custom(Alfons3Version)/YoucanuseanonlineservicetogeneratearandomUUID.(eg/version4)/Thisdefinesthenumberofextruders#defineEXTRUDERS1/Thefollowingdefi
7、neselectswhichpowersupplyyouhave.Pleasechoosetheonethatmatchesyoursetup/1=ATX/2=X-Box360203Watts(thebluewireconnectedtoPS_ONandtheredwiretoVCC)#definePOWER_SUPPLY1/Definethistohavetheelectronicskeepthepowersupplyoffonstartup.Ifyoudontknowwhatthisisleaveit./#definePSDEFAULTOFF/=/=ThermalSettings=/=/-
8、NORMALIS4.7kohmPULLUP!-1kohmpullupcanbeusedonhotendsensor,usingcorrectresistorandtable/Temperaturesensorsettings:/-2isthermocouplewithMAX6675(onlyforsensor0)/-1isthermocouplewithAD595/0isnotused/1is100kthermistor-bestchoiceforEPCOS100k(4.7kpullup)/2is200kthermistor-ATCSemitec204GT-2(4.7kpullup)/3isM
9、endel-partsthermistor(4.7kpullup)/4is10kthermistor!donotuseitforahotend.Itgivesbadresolutionathightemp.!/5is100Kthermistor-ATCSemitec104GT-2(UsedinParCan&J-Head)(4.7kpullup)/6is100kEPCOS-Notasaccurateastable1(createdusingaflukethermocouple)(4.7kpullup)/7is100kHoneywellthermistor135-104LAG-J01(4.7kpu
10、llup)/71is100kHoneywellthermistor135-104LAF-J01(4.7kpullup)/8is100k0603SMDVishayNTCS0603E3104FXT(4.7kpullup)/9is100kGESensingAL03006-58.2K-97-G1(4.7kpullup)/10is100kRSthermistor198-961(4.7kpullup)/11is100kbeta39501%thermistor(4.7kpullup)/12is100k0603SMDVishayNTCS0603E3104FXT(4.7kpullup)(calibratedfo
11、rMakiboxhotbed)|/20isthePT100circuitfoundintheUltimainboardV2.x/60is100kMakersToolWorksKaptonBedThermistorbeta=3950/1kohmpulluptables-Thisisnotnormal,youwouldhavetohavechangedoutyour4.7kfor1k/(butgivesgreateraccuracyandmorestablePID)/51is100kthermistor-EPCOS(1kpullup)/52is200kthermistor-ATCSemitec20
12、4GT-2(1kpullup)/55is100kthermistor-ATCSemitec104GT-2(UsedinParCan&J-Head)(1kpullup)/1047isPt1000with4k7pullup/1010isPt1000with1kpullup(nonstandard)/147isPt100with4k7pullup/110isPt100with1kpullup(nonstandard)#defineTEMP_SENSOR_01#defineTEMPSENSOR10#defineTEMP_SENSOR_20#defineTEMPSENSORBED1/上面這些值是溫度傳感
13、器類型配置,是能否正常讀取溫度的重要參數(shù)。TEMP_SENSOR_0是噴嘴溫度傳感器,TEMP_SENSOR_BED是熱床溫度傳感器,配置為1說(shuō)明兩個(gè)都是100Kntc熱敏電阻。如果你使用了其它溫度傳感器需要根據(jù)情況自行更改。如果沒(méi)有,配置為0/Thismakestempsensor1aredundantsensorforsensor0.Ifthetemperaturesdifferencebetweenthesesensorsistohightheprintwillbeaborted./#defineTEMPSENSOR1ASREDUNDANT#defineMAX_REDUNDANT_TEM
14、P_SENSOR_DIFF10/ActualtemperaturemustbeclosetotargetforthislongbeforeM109returnssuccess#defineTEMP_RESIDENCY_TIME10/(seconds)#defineTEMPHYSTERESIS3/(degC)rangeof+/-temperaturesconsideredclosetothetargetone/這個(gè)值決定當(dāng)實(shí)際溫度在正負(fù)3度時(shí)被認(rèn)為接近設(shè)定的目標(biāo)溫度。適當(dāng)加大該值可以減少等待升溫的時(shí)間,過(guò)大則對(duì)出絲不利,建議該值保持默認(rèn)#defineTEMPWINDOW1/(degC)Windo
15、waroundtargettostarttheresidencytimerxdegCearly./TheminimaltemperaturedefinesthetemperaturebelowwhichtheheaterwillnotbeenabledItisused/tocheckthatthewiringtothethermistorisnotbroken./Otherwisethiswouldleadtotheheaterbeingpoweredonallthetime.#defineHEATER_0_MINTEMP5#defineHEATER1MINTEMP5#defineHEATER
16、_2_MINTEMP5#defineBED_MINTEMP5J/以上幾個(gè)配置是噴嘴和熱床在溫度低于5度時(shí),打印機(jī)將不能啟動(dòng),表現(xiàn)為報(bào)錯(cuò),并且加熱頭和熱床的加熱無(wú)法打開(kāi)-/Whentemperatureexceedsmaxtemp,yourheaterwillbeswitchedoff./Thisfeatureexiststoprotectyourhotendfromoverheatingaccidentally,but*NOT*fromthermistorshort/failure!/YoushoulduseMINTEMPforthermistorshort/failureprotection
17、.#defineHEATER0MAXTEMP275#defineHEATER_1_MAXTEMP275#defineHEATER2MAXTEMP275#defineBEDMAXTEMP150/以上是噴嘴和熱床的最高溫度配置,防止燒壞主板/Ifyourbedhaslowresistancee.g.6ohmandthrowsthefuseyoucandutycycleittoreducethe/averagecurrent.Thevalueshouldbeanintegerandtheheatbedwillbeturnedonfor1intervalof/HEATERBEDDUTYCYCLEDIV
18、IDERintervals./#defineHEATER_BED_DUTY_CYCLE_DIVIDER4/該配置是為了防止熱床電阻太小,長(zhǎng)時(shí)間加熱容易燒mos管,增加這個(gè)數(shù)字,可以防止mos管過(guò)熱,但加熱時(shí)間會(huì)增長(zhǎng)/IfyouwanttheM105heaterpowerreportedinwatts,definetheBED_WATTS,and(sharedforallextruders)EXTRUDER_WATTS/#defineEXTRUDERWATTS(12.0*12.0/6.7)/P=IA2/R/#defineBED_WATTS(12.0*12.0/1.1)/P=B2/R/如果你希望用
19、M105命令實(shí)時(shí)查看擠出機(jī)和熱床功率,請(qǐng)將這兩行取消注釋(即去掉代碼前的/)/PID溫控配置,PID參數(shù)設(shè)置,需要根據(jù)系統(tǒng)情況設(shè)置,可以通過(guò)M303代碼調(diào)用PID_autotune函數(shù)獲得基本PID參數(shù),然后參照修改下面的DEFAULT_Kp、DEFAULT_Ki、DEFAULTKd,例如:M303E0C8S190,表示獲取打印頭0(第一個(gè)打印頭)、目標(biāo)溫度190度、循環(huán)調(diào)用PID_autotune8次后的相應(yīng)的PID參數(shù)。系統(tǒng)自動(dòng)生成的PID參數(shù)相當(dāng)不錯(cuò),可保持默認(rèn)。當(dāng)然機(jī)器不同,也不一定都有效/PIDsettings:/CommentthefollowinglinetodisablePID
20、andenablebang-bang.#definePIDTEMP#defineBANGMAX255/limitscurrenttonozzlewhileinbang-bangmode;255=fullcurrent#definePIDMAX255/limitscurrenttonozzlewhilePIDisactive(seePIDFUNCTIONALRANGEbelow);255=fullcurrent#ifdefPIDTEMP/#definePIDDEBUG/Sendsdebugdatatotheserialport./#definePID_OPENLOOP1/PutsPIDinope
21、nloop.M104/M140setstheoutputpowerfrom0toPIDMAX#definePIDFUNCTIONALRANGE10/Ifthetemperaturedifferencebetweenthetargettemperatureandtheactualtemperature/ismorethenPIDFUNCTIONALRANGEthenthePIDwillbeshutoffandtheheaterwillbesettomin/max.#definePIDINTEGRALDRIVEMAX255/limitfortheintegralterm#defineK10.95/
22、smoothingfactorwithinthePID#definePID_dT(OVERSAMPLENR*8.0)/(F_CPU/64.0/256.0)/samplingperiodofthetemperatureroutine/Ifyouareusingapre-configuredhotendthenyoucanuseoneofthevaluesetsbyuncommentingit/Ultimaker#defineDEFAULTKp22.2#defineDEFAULT_Ki1.08#defineDEFAULT_Kd114/MakerGear/#defineDEFAULT_Kp7.0/#
23、defineDEFAULT_Ki0.1/#defineDEFAULT_Kd12/MendelPartsV9on12V/#defineDEFAULTKp63.0/#defineDEFAULT_Ki2.25/#defineDEFAULTKd440#endif/PIDTEMP/BedTemperatureControl/SelectPIDorbang-bangwithPIDTEMPBED.Ifbang-bang,BED_LIMIT_SWITCHINGwillenablehysteresis/UncommentthistoenablePIDonthebed.Itusesthesamefrequency
24、PWMastheextruder./IfyourPIDdTaboveisthedefault,andcorrectforyourhardware/configuration,thatmeans7.689Hz,/whichisfinefordrivingasquarewaveintoaresistiveloadanddoesnotsignificantlyimpactyouFETheating./ThisalsoworksfineonaFotekSSR-10DASolidStateRelayintoa250Wheater./Ifyourconfigurationissignificantlydi
25、fferentthanthisandyoudontunderstandtheissuesinvolved,youprobably/shouldntusebedPIDuntilsomeoneelseverifiesyourhardwareworks./Ifthisisenabled,findyourownPIDconstantsbelow.|/#definePIDTEMPBED/#defineBED_LIMIT_SWITCHING/Thissetsthemaxpowerdeliveredtothebed,andreplacestheHEATER_BED_DUTY_CYCLE_DIVIDERopt
26、ion./allformsofbedcontrolobeythis(PID,bang-bang,bang-bangwithhysteresis)/settingthistoanythingotherthan255enablesaformofPWMtothebedjustlikeHEATER_BED_DUTY_CYCLE_DIVIDERdid,/soyoushouldntuseitunlessyouareOKwithPWMonyourbed.(seethecommentonenablingPIDTEMPBED)#defineMAX_BED_POWER255/limitsdutycycletobe
27、d;255=fullcurrent#ifdefPIDTEMPBED/120v250Wsiliconeheaterinto4mmborosilicate(MendelMax1.5+)|/fromFOPDTmodel-kp=.39Tp=405Tdead=66,Tcsetto79.2,aggressivefactorof.15(vs.1,1,10)#defineDEFAULTbedKp10.00#defineDEFAULT_bedKi.023#defineDEFAULT_bedKd305.4/120v250Wsiliconeheaterinto4mmborosilicate(MendelMax1.5
28、+)/frompidautotune/#defineDEFAULT_bedKp97.1/#defineDEFAULTbedKi1.41/#defineDEFAULT_bedKd1675.16/FINDYOUROWN:M303E-1C8S90torunautotuneonthebedat90degreesCfor8cycles.#endif/PIDTEMPBED/thispreventsdangerousExtrudermoves,i.e.ifthetemperatureisunderthelimit/canbesoftware-disabledforwhateverpurposesby#def
29、inePREVENT_DANGEROUS_EXTRUDE/ifPREVENTDANGEROUSEXTRUDEison,youcanstilldisable(uncomment)verylongbitsofextrusionseparately.#definePREVENT_LENGTHY_EXTRUDE#defineEXTRUDE_MINTEMP170/該值防止擠出頭溫度未達(dá)到設(shè)定目標(biāo)溫度而進(jìn)行擠出操作時(shí)的潛在風(fēng)險(xiǎn)#defineEXTRUDEMAXLENGTH(X_MAX_LENGTH+Y_MAX_LENGTH)/preventextrusionofverylargedistances./該值
30、限制擠出的最大長(zhǎng)度,超過(guò)該長(zhǎng)度,擠出機(jī)不動(dòng)作/=/UncommentthefollowinglinetoenableCoreXYkinematics/#defineCOREXY/coarseEndstopSettings#defineENDSTOPPULLUPS/Commentthisout(using/atthestartoftheline)todisabletheendstoppullupresistors/限位開(kāi)關(guān)上拉電阻配置,如果你使用的是機(jī)械式的限位開(kāi)關(guān),請(qǐng)保留此部分/機(jī)械式限位開(kāi)關(guān)請(qǐng)保持該處不動(dòng)#ifndefENDSTOPPULLUPS/沒(méi)有配置限位開(kāi)關(guān)上拉電阻時(shí),限位開(kāi)關(guān)上拉電阻
31、細(xì)分控制/fineendstopsettings:Individualpullups.willbeignoredifENDSTOPPULLUPSisdefined/#defineENDSTOPPULLUPXMAX/#defineENDSTOPPULLUP_YMAX/#defineENDSTOPPULLUP_ZMAX/#defineENDSTOPPULLUP_XMIN/#defineENDSTOPPULLUPYMIN/#defineENDSTOPPULLUPZMIN#endif#ifdefENDSTOPPULLUPS/配置限位開(kāi)關(guān)上拉電阻時(shí),限位開(kāi)關(guān)上拉電阻細(xì)分控制#defineENDSTOPP
32、ULLUP_XMAX#defineENDSTOPPULLUPYMAX#defineENDSTOPPULLUPZMAX#defineENDSTOPPULLUP_XMIN_#defineENDSTOPPULLUPYMIN#defineENDSTOPPULLUP_ZMIN#endif/機(jī)械限位開(kāi)關(guān)通常會(huì)把連線連在NC端,這就會(huì)有個(gè)一個(gè)數(shù)字信號(hào)1輸入到主板中。如果你的機(jī)械限位開(kāi)關(guān)的連線是連在NO端,這就需要ENDSTOP_INVERTING采用ture從而使數(shù)字信號(hào)0反向變?yōu)?。對(duì)于光學(xué)開(kāi)關(guān)來(lái)說(shuō),則一般不用進(jìn)行調(diào)整。J你應(yīng)該在電腦控制軟件中實(shí)際試驗(yàn)一下限位開(kāi)關(guān)的方向是否與你的預(yù)期相符,如果軸運(yùn)動(dòng)時(shí)觸動(dòng)
33、限位開(kāi)關(guān)就停止則說(shuō)明,該項(xiàng)設(shè)置正常。如果沒(méi)有停止,則應(yīng)相應(yīng)修改該值。注意!在做此測(cè)試時(shí),應(yīng)該給各個(gè)軸留出足夠的運(yùn)動(dòng)反應(yīng)空間。以免損壞機(jī)器/Thepullupsareneededifyoudirectlyconnectamechanicalendswitchbetweenthesignalandgroundpins.constboolX_MIN_ENDSTOP_INVERTING=true;/settotruetoinvertthelogicoftheendstop.constboolYMINENDSTOPINVERTING=true;/settotruetoinvertthelogicofth
34、eendstop.constboolZMINENDSTOPINVERTING=true;/settotruetoinvertthelogicoftheendstop.constboolX_MAX_ENDSTOP_INVERTING=true;/settotruetoinvertthelogicoftheendstop.constboolY_MAX_ENDSTOP_INVERTING=true;/settotruetoinvertthelogicoftheendstop.constboolZ_MAX_ENDSTOP_INVERTING=true;/settotruetoinvertthelogi
35、coftheendstop./#defineDISABLEMAXENDSTOPS/#defineDISABLE_MIN_ENDSTOPS/Disablemaxendstopsforcompatibilitywithendstopcheckingroutine#ifdefined(COREXY)&!defined(DISABLEMAXENDSTOPS)#defineDISABLE_MAX_ENDSTOPS#endif/ForInvertingStepperEnablePins(ActiveLow)use0,NonInverting(ActiveHigh)use1#defineX_ENABLE_ON0#defineY_ENABLE_ON0#defineZENABLEON0#defineE_ENABLE_ON0/Foral
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025伸縮縫安裝工程勞務(wù)分包合同修改
- 9 知法守法依法維權(quán) 第二課時(shí)(說(shuō)課稿)-2023-2024學(xué)年道德與法治六年級(jí)上冊(cè)統(tǒng)編版001
- 2023二年級(jí)數(shù)學(xué)上冊(cè) 六 表內(nèi)乘法和表內(nèi)除法(二)練習(xí)十四說(shuō)課稿 蘇教版001
- 10《爬山虎的腳》第二課時(shí) 說(shuō)課稿-2024-2025學(xué)年語(yǔ)文四年級(jí)上冊(cè)統(tǒng)編版
- Unit 3 My weekend plan Part 6(說(shuō)課稿)-2024-2025學(xué)年人教PEP版英語(yǔ)六年級(jí)上冊(cè)
- 生了病怎么辦 (課件)-2024-2025學(xué)年人教版(2024)體育一年級(jí)全一冊(cè)
- Review Module Unit 1(說(shuō)課稿)-2023-2024學(xué)年外研版(三起)英語(yǔ)四年級(jí)下冊(cè)
- 17《松鼠》說(shuō)課稿-2024-2025學(xué)年五年級(jí)語(yǔ)文上冊(cè)統(tǒng)編版001
- 2025農(nóng)村宅基地轉(zhuǎn)讓合同模板
- 8網(wǎng)絡(luò)新世界 第一課時(shí) 說(shuō)課稿-2023-2024學(xué)年道德與法治四年級(jí)上冊(cè)統(tǒng)編版
- 2025年日歷(日程安排-可直接打印)
- 《VAVE價(jià)值工程》課件
- 分享二手房中介公司的薪酬獎(jiǎng)勵(lì)制度
- 安徽省2022年中考道德與法治真題試卷(含答案)
- GB 4793-2024測(cè)量、控制和實(shí)驗(yàn)室用電氣設(shè)備安全技術(shù)規(guī)范
- 重大火災(zāi)隱患判定方法
- 挖掘機(jī)售后保養(yǎng)及維修服務(wù)協(xié)議(2024版)
- 2024年電工(高級(jí)技師)考前必刷必練題庫(kù)500題(含真題、必會(huì)題)
- 公司組織架構(gòu)與管理體系制度
- 2024-2030年中國(guó)涂碳箔行業(yè)現(xiàn)狀調(diào)查與投資策略分析研究報(bào)告
- 2023-2024年度數(shù)字經(jīng)濟(jì)與驅(qū)動(dòng)發(fā)展公需科目答案(第5套)
評(píng)論
0/150
提交評(píng)論