最新 Marlin固件全中文解析.docx
- 文档编号:2349127
- 上传时间:2023-05-03
- 格式:DOCX
- 页数:34
- 大小:36.51KB
最新 Marlin固件全中文解析.docx
《最新 Marlin固件全中文解析.docx》由会员分享,可在线阅读,更多相关《最新 Marlin固件全中文解析.docx(34页珍藏版)》请在冰点文库上搜索。
最新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)"
//11=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 =Sanguinololu<1.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_NAME"ThisMendel"
//Definethistosetauniqueidentifierforthisprinter,(Usedbysomeprogramstodifferentiatebetweenmachines)
//YoucanuseanonlineservicetogeneratearandomUUID.(eg
//#defineMACHINE_UUID"00000000-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)
//52is200kthermistor-ATCSemitec204GT-2(1kpullup)
//55is100kthermistor-ATCSemitec104GT-2(UsedinParCan&J-Head)(1kpullup)
//
//1047isPt1000with4k7pullup
//1010isPt1000with1kpullup(nonstandard)
//147isPt100with4k7pullup
//110isPt100with1kpullup(nonstandard)
#defineTEMP_SENSOR_01
#defineTEMP_SENSOR_10
#defineTEMP_SENSOR_20
#defineTEMP_SENSOR_BED1
//////////上面这些值是温度传感器类型配置,是能否正常读取温度的重要参数。
TEMP_SENSOR_0是喷嘴温度传感器,TEMP_SENSOR_BED是热床温度传感器,配置为1说明两个都是100Kntc热敏电阻。
如果你使用了其它温度传感器需要根据情况自行更改。
如果没有,配置为0
//Thismakestempsensor1aredundantsensorforsensor0.Ifthetemperaturesdifferencebetweenthesesensorsistohightheprintwillbeaborted.
//#defineTEMP_SENSOR_1_AS_REDUNDANT
#defineMAX_REDUNDANT_TEMP_SENSOR_DIFF10
//ActualtemperaturemustbeclosetotargetforthislongbeforeM109returnssuccess
#defineTEMP_RESIDENCY_TIME10 //(seconds)
#defineTEMP_HYSTERESIS3 //(degC)rangeof+/-temperaturesconsidered"close"tothetargetone
//////////这个值决定当实际温度在正负3度时被认为接近设定的目标温度。
适当加大该值可以减少等待升温的时间,过大则对出丝不利,建议该值保持默认
#defineTEMP_WINDOW 1 //(degC)WindowaroundtargettostarttheresidencytimerxdegCearly.
//TheminimaltemperaturedefinesthetemperaturebelowwhichtheheaterwillnotbeenabledItisused
//tocheckthatthewiringtothethermistorisnotbroken.
//Otherwisethiswouldleadtotheheaterbeingpoweredonallthetime.
#defineHEATER_0_MINTEMP5
#defineHEATER_1_MINTEMP5
#defineHEATER_2_MINTEMP5
#defineBED_MINTEMP5
//////////以上几个配置是喷嘴和热床在温度低于5度时,打印机将不能启动,表现为报错,并且加热头和热床的加热无法打开
//Whentemperatureexceedsmaxtemp,yourheaterwillbeswitchedoff.
//Thisfeatureexiststoprotectyourhotendfromoverheatingaccidentally,but*NOT*fromthermistorshort/failure!
//YoushoulduseMINTEMPforthermistorshort/failureprotection.
#defineHEATER_0_MAXTEMP275
#defineHEATER_1_MAXTEMP275
#defineHEATER_2_MAXTEMP275
#defineBED_MAXTEMP150
//////////以上是喷嘴和热床的最高温度配置,防止烧坏主板
//Ifyourbedhaslowresistancee.g..6ohmandthrowsthefuseyoucandutycycleittoreducethe
//averagecurrent.Thevalueshouldbeanintegerandtheheatbedwillbeturnedonfor1intervalof
//HEATER_BED_DUTY_CYCLE_DIVIDERintervals.
//#defineHEATER_BED_DUTY_CYCLE_DIVIDER4
//////////该配置是为了防止热床电阻太小,长时间加热容易烧mos管,增加这个数字,可以防止mos管过热,但加热时间会增长
//IfyouwanttheM105heaterpowerreportedinwatts,definetheBED_WATTS,and(sharedforallextruders)EXTRUDER_WATTS
//#defineEXTRUDER_WATTS(12.0*12.0/6.7)// P=I^2/R
//#defineBED_WATTS(12.0*12.0/1.1) //P=I^2/R
//////////如果你希望用M105命令实时查看挤出机和热床功率,请将这两行取消注释(即去掉代码前的//)
//////////PID温控配置,PID参数设置,需要根据系统情况设置,可以通过M303代码调用PID_autotune函数获得基本PID参数,然后参照修改下面的DEFAULT_Kp、DEFAULT_Ki、DEFAULT_Kd,例如:
M303E0C8S190,表示获取打印头0(第一个打印头)、目标温度190度、循环调用PID_autotune8次后的相应的PID参数。
系统自动生成的PID参数相当不错,可保持默认。
当然机器不同,也不一定都有效
//PIDsettings:
//CommentthefollowinglinetodisablePIDandenablebang-bang.
#definePIDTEMP
#defineBANG_MAX255//limitscurrenttonozzlewhileinbang-bangmode;255=fullcurrent
#definePID_MAX255//limitscurrenttonozzlewhilePIDisactive(seePID_FUNCTIONAL_RANGEbelow);255=fullcurrent
#ifdefPIDTEMP
//#definePID_DEBUG//Sendsdebugdatatotheserialport.
//#definePID_OPENLOOP1//PutsPIDinopenloop.M104/M140setstheoutputpowerfrom0toPID_MAX
#definePID_FUNCTIONAL_RANGE10//Ifthetemperaturedifferencebetweenthetargettemperatureandtheactualtemperature
//ismorethenPID_FUNCTIONAL_RANGEthenthePIDwillbeshutoffandtheheaterwillbesettomin/max.
#definePID_INTEGRAL_DRIVE_MAX255 //limitfortheintegralterm
#defineK10.95//smoothingfactorwithinthePID
#definePID_dT((OVERSAMPLENR*8.0)/(F_CPU/64.0/256.0))//samplingperiodofthetemper
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
下载 | 加入VIP,免费下载 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 最新 Marlin固件全中文解析 Marlin 全中文 解析
