您好,欢迎访问三七文档
当前位置:首页 > 办公文档 > 总结/报告 > Marlin固件全中文解析
3D打印机——Marlin固件全中文解析#ifndefCONFIGURATION_H#defineCONFIGURATION_H//Thisconfigurationfilecontainsthebasicsettings.//AdvancedsettingscanbefoundinConfiguration_adv.h//BASICSETTINGS:selectyourboardtype,temperaturesensortype,axisscaling,andendstopconfiguration//////////基本设置包括:主板类型,温度传感器类型,轴设置,限位开关配置//===========================================================================//=============================DELTAPrinter===============================//===========================================================================//ForaDeltaprinterreplacetheconfigurationfileswiththefilesinthe//example_configurations/deltadirectory.////////////对于三角洲并联打印机,请找到固件里“example_configurations”文件夹下的“delta”子文件夹,并将其中的Configuration.h和Configuration_adv.h两个头文件拷贝到固件文件夹下,替换原先固件里的这两个头文件,并针对delta打印机作相应参数配置。//User-specifiedversioninfoofthisbuildtodisplayin[Pronterface,etc]terminalwindowduring//startup.ImplementationofanideabyProfBrainotoinformuserthatanychangesmadetothis//buildbytheuserhavebeensuccessfullyuploadedintofirmware.#defineSTRING_VERSION_CONFIG_H__DATE____TIME__//builddateandtime#defineSTRING_CONFIG_H_AUTHOR(none,defaultconfig)//Whomadethechanges.//SERIAL_PORTselectswhichserialportshouldbeusedforcommunicationwiththehost.//Thisallowstheconnectionofwirelessadapters(forinstance)tonon-defaultportpins.//Serialport0isstillusedbytheArduinobootloaderregardlessofthissetting.#defineSERIAL_PORT0//////////选择用于和上位机通讯的串口,该值请保持0不动//Thisdeterminesthecommunicationspeedoftheprinter//Thisdeterminesthecommunicationspeedoftheprinter#defineBAUDRATE250000//////////波特率配置,该值必须和你的上位机波特率相匹配,否则无法通讯。常用波特率有115200和250000//ThisenablestheserialportassociatedtotheBluetoothinterface//#defineBTENABLED//EnableBTinterfaceonAT90USBdevices////Thefollowingdefineselectswhichelectronicsboardyouhave.Pleasechoosetheonethatmatchesyoursetup//10=Gen7custom(Alfons3Version)=Gen7v1.1,v1.2=11//12=Gen7v1.3//13=Gen7v1.4//2=Cheaptronicv1.0//20=Sethi3D_1//3=MEGA/RAMPSupto1.2=3//33=RAMPS1.3/1.4(Poweroutputs:Extruder,Fan,Bed)//34=RAMPS1.3/1.4(Poweroutputs:Extruder0,Extruder1,Bed)//35=RAMPS1.3/1.4(Poweroutputs:Extruder,Fan,Fan)//4=Duemilanovew/ATMega328Ppinassignment//5=Gen6//51=Gen6deluxe//6=Sanguinololu1.2//62=Sanguinololu1.2andabove//63=Melzi//64=STBV1.1//65=AzteegX1//66=MelziwithATmega1284(MaKr3dversion)//67=AzteegX3//68=AzteegX3Pro//7=Ultimaker//71=Ultimaker(Olderelectronics.Pre1.5.4.Thisisrare)//72=Ultimainboard2.x(UsesTEMP_SENSOR20)//77=3DragController//8=Teensylu//80=Rumba//81=Printrboard(AT90USB1286)//82=Brainwave(AT90USB646)//83=SAVMk-I(AT90USB1286)//9=Gen3+//70=Megatronics//701=Megatronicsv2.0//702=Minitronicsv1.0//90=AlphaOMCAboard//91=FinalOMCAboard//301=Rambo//21=ElefuRaBoard(v3)//88=5DPrintD8DriverBoard#ifndefMOTHERBOARD#defineMOTHERBOARD33//////////主板类型选择,请按以上各主板相应代号选择你个人的主板类型。33是ramps1.3/1.4(一个挤出机),34是ramps1.3/1.4(两个挤出机)#endif//DefinethistosetacustomnameforyourgenericMendel,//#defineCUSTOM_MENDEL_NAMEThisMendel//Definethistosetauniqueidentifierforthisprinter,(Usedbysomeprogramstodifferentiatebetweenmachines)//YoucanuseanonlineservicetogeneratearandomUUID.(eg)//#defineMACHINE_UUID00000000-0000-0000-0000-000000000000//Thisdefinesthenumberofextruders#defineEXTRUDERS1////Thefollowingdefineselectswhichpowersupplyyouhave.Pleasechoosetheonethatmatchesyoursetup//1=ATX//2=X-Box360203Watts(thebluewireconnectedtoPS_ONandtheredwiretoVCC)#definePOWER_SUPPLY1//Definethistohavetheelectronicskeepthepowersupplyoffonstartup.Ifyoudon'tknowwhatthisisleaveit.//#definePS_DEFAULT_OFF//===========================================================================//=============================ThermalSettings============================//===========================================================================////--NORMALIS4.7kohmPULLUP!--1kohmpullupcanbeusedonhotendsensor,usingcorrectresistorandtable//////Temperaturesensorsettings://-2isthermocouplewithMAX6675(onlyforsensor0)//-1isthermocouplewithAD595//0isnotused//1is100kthermistor-bestchoiceforEPCOS100k(4.7kpullup)//2is200kthermistor-ATCSemitec204GT-2(4.7kpullup)//3isMendel-partsthermistor(4.7kpullup)//4is10kthermistor!!donotuseitforahotend.Itgivesbadresolutionathightemp.!!//5is100Kthermistor-ATCSemitec104GT-2(UsedinParCan&J-Head)(4.7kpullup)//6is100kEPCOS-Notasaccurateastable1(createdusingaflukethermocouple)(4.7kpullup)//7is100kHoneywellthermistor135-104LAG-J01(4.7kpullup)//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)(calibratedforMakiboxhotbed)//20isthePT100circuitfoundintheUltimainboardV2.x//60is100kMaker'sToolWorksKaptonBedThermistorbeta=3950////1kohmpulluptables-Thisisnotnormal,youwouldhavetohavechangedoutyour4.7kfor1k//(butgivesgreateraccuracyandmorestablePID)//51is100kthermistor-EPCOS(1kpullup)//52is200kthermi
本文标题:Marlin固件全中文解析
链接地址:https://www.777doc.com/doc-1433589 .html