首页 (精心整理)Gcode G代码详解

(精心整理)Gcode G代码详解

举报
开通vip

(精心整理)Gcode G代码详解reprapwiki上面的Gcode说明G-codeFromRepRapWiki(RedirectedfromGcode)Jumpto:navigation,searchContents[hide]1Introduction2RepRapGCodeFields3Comments4Individualcommands4.1Checking4.1.1Nand*4.2BufferedGCommands4.2.1G0:Rapidmove4.2.2G1:Controlledmove4.2.3G28:MovetoOrigin4...

(精心整理)Gcode G代码详解
reprapwiki上面的Gcode说明G-codeFromRepRapWiki(RedirectedfromGcode)Jumpto:navigation,searchContents[hide]1Introduction2RepRapGCodeFields3Comments4Individualcommands4.1Checking4.1.1Nand*4.2BufferedGCommands4.2.1G0:Rapidmove4.2.2G1:Controlledmove4.2.3G28:MovetoOrigin4.3UnbufferedGcommands4.3.1G4:Dwell4.3.2G20:SetUnitstoInches4.3.3G21:SetUnitstoMillimeters4.3.4G90:SettoAbsolutePositioning4.3.5G91:SettoRelativePositioning4.3.6G92:SetPosition4.4UnbufferedMandTcommands4.4.1M0:Stop4.4.2M17:Enable/Powerallsteppermotors4.4.3M18:Disableallsteppermotors4.4.4M20:ListSDcard4.4.5M21:InitialiseSDcard4.4.6M22:ReleaseSDcard4.4.7M23:SelectSDfile4.4.8M24:Start/resumeSDprint4.4.9M25:PauseSDprint4.4.10M26:SetSDposition4.4.11M27:ReportSDprintstatus4.4.12M28:BeginwritetoSDcard4.4.13M29:StopwritingtoSDcard4.4.14M40:Eject4.4.15M41:Loop4.4.16M42:Stoponmaterialexhausted4.4.17M43:Standbyonmaterialexhausted4.4.18M80:ATXPowerOn4.4.19M81:ATXPowerOff4.4.20M84:Stopidlehold4.4.21M92:Setaxis_steps_per_unit4.4.22M101Turnextruder1onForward4.4.23M102Turnextruder1onReverse4.4.24M103Turnallextrudersoff4.4.25M104:SetExtruderTemperature(Fast)4.4.26M105:GetExtruderTemperature4.4.27M106:FanOn4.4.28M107:FanOff4.4.29M108:SetExtruderSpeed4.4.30M109:SetExtruderTemperature4.4.31M110:SetCurrentLineNumber4.4.32M111:SetDebugLevel4.4.33M112:EmergencyStop4.4.34M113:SetExtruderPWM4.4.35M114:GetCurrentPosition4.4.36M115:GetFirmwareVersionandCapabilities4.4.37M116:Wait4.4.38M117:GetZeroPosition4.4.39M118:NegotiateFeatures4.4.40M119:GetEndstopStatus4.4.41M126:OpenValve4.4.42M127:CloseValve4.4.43M128:ExtruderPressurePWM4.4.44M129:Extruderpressureoff4.4.45M140:BedTemperature(Fast)4.4.46M141:ChamberTemperature(Fast)4.4.47M142:HoldingPressure4.4.48M143:Maximumhot-endtemperature4.4.49M160:Numberofmixedmaterials4.4.50M203:RecordZadjustment4.4.51M226:GcodeInitiatedPause4.4.52M227:EnableAutomaticReverseandPrime4.4.53M228:DisableAutomaticReverseandPrime4.4.54M229:EnableAutomaticReverseandPrime4.4.55M230:Disable/EnableWaitforTemperatureChange4.4.56M240:Startconveyorbeltmotor4.4.57M241:Stopconveyorbeltmotor4.4.58M245:Startcooler4.4.59M246:Stopcooler4.4.60M300:Playbeepsound4.4.61T:SelectTool5ProposedEEPROMconfigurationcodes6RepliesfromtheRepRapmachinetothehostcomputer7ProposalforsendingmultiplelinesofG-code7.1ProblemtosolveIntroductionThispagedescribestheGCodesthattheRepRapfirmwareusesandhowtheywork.Thelistofwhatcanbedoneisextensible.Butcheckthispagefirst,andaddyourextensionherefirstbeforeyouimplementit.AtypicalpieceofGCodeassenttoaRepRapmachinemightlooklikethis:N3T0*57N4G92E0*67N5G28*22N6G1F1500.0*82N7G1X2.0Y2.0F3000.0*85N8G1X3.0Y3.0*33Themeaningofallthosesymbolsandnumbers(andmore)isexplainedbelow.TOfindoutwhichspecificgcode/sareimplementedinanygivenfirmware,pleaseseetheFirmware_featurespage.(Forthetechnicallyminded,theendoflineismarkedbybothaanda.IfyouwanttomanuallyenterGCodesinyourreprapusingtheArduinoSerialinterface,makesuretoselect"BothNL&CR"onthebottomofthescreen.)Thisisn'taccurate,firmwareacceptssingleaswellassingle,orcombinationsthereof.Hostsshouldacceptsallfourcombinationsaswell.--Traumflug09:34,20April2011(UTC)RepRapGCodeFieldsThissectionexplainstheletter-precededfields.Thenumbersinthefieldsarerepresentedbynnn.Numberscanbeintegers,orcancontainadecimalpoint,dependingoncontext.ForexampleanXcoordinatecanbeinteger(X175)orfractional(X17.62),whereastryingtoselectextrudernumber2.76wouldmakenosense.LetterMeaningGnnnStandardGCodecommand,suchasmovetoapointMnnnRepRap-definedcommand,suchasturnonacoolingfanTnnnSelecttoolnnn.InRepRap,toolsareextrudersSnnnCommandparameter,suchasthevoltagetosendtoamotorPnnnCommandparameter,suchasatimeinmillisecondsXnnnAnXcoordinate,usuallytomovetoYnnnAYcoordinate,usuallytomovetoZnnnAZcoordinate,usuallytomovetoInnnParameter-notcurrentlyusedJnnnParameter-notcurrentlyusedFnnnFeedrateinmmperminute.(Speedofprintheadmovement)RnnnParameter-notcurrentlyusedQnnnParameter-notcurrentlyusedEnnnLengthofextrudateinmm.ThisisexactlylikeX,YandZ,butforthelengthoffilamenttoextrude.Itiscommonfornewerstepperbasedsystemstointerpret...Better:Skeinforge40andupinterpretsthisastheabsolutelengthofinputfilamenttoconsume,ratherthanthelengthoftheextrudedoutput.NnnnLinenumber.Usedtorequestrepeattransmissioninthecaseofcommunicationserrors.*nnnChecksum.Usedtocheckforcommunicationserrors.CommentsGCodecomments:N3T0*57;ThisisacommentN4G92E0*67;SoisthisN5G28*22WillbeignoredbyRepRap,aswillblanklines.Butit'sbettertostriptheseoutinthehostcomputerbeforethelinesaresent.Thissavesbandwidth.IndividualcommandsCheckingNand*Example:N123[...GCodeinhere...]*71Thesearethelinenumberandthechecksum.TheRepRapfirmwarechecksthechecksumagainstalocally-computedvalueand,iftheydiffer,requestsarepeattransmissionofthelineofthegivennumber.Youcanleavebothoftheseout-RepRapwillstillwork,butitwon'tdochecking.Youhavetohavebothorneitherthough.Thechecksum"cs"foraGCodestring"cmd"(includingitslinenumber)iscomputedbyexor-ingthebytesinthestringuptoandnotincludingthe*characterasfollows:intcs=0;for(i=0;cmd[i]!='*'&&cmd[i]!=NULL;i++)cs=cs^cmd[i];cs&=0xff;//Defensiveprogramming...andthevalueisappendedasadecimalintegertothecommandafterthe*character.TheRepRapfirmwareexpectslinenumberstoincreaseby1eachline,andifthatdoesn'thappenitisflaggedasanerror.ButyoucanresetthecountusingM110(seebelow).BufferedGCommandsTheRepRapfirmwarestoresthesecommandsinaringbufferinternallyforexecution.Thismeansthatthereisno(appreciable)delaywhileacommandisacknowledgedandthenexttransmitted.Inturn,thismeansthatsequencesoflinesegmentscanbeplottedwithoutadwellbetweenoneandthenext.Assoonasoneofthesebufferedcommandsisreceiveditisacknowledgedandstoredlocally.Ifthelocalbufferisfull,thentheacknowledgmentisdelayeduntilspaceforstorageinthebufferisavailable.Thisishowflowcontrolisachieved.G0:RapidmoveExample:G0X12InthiscasemoverapidlytoX=12mm.Infact,theRepRapfirmwareusesexactlythesamecodeforrapidasitusesforcontrolledmoves(seeG1below),as-fortheRepRapmachine-thisisjustasefficientasnotdoingso.(Thedistinctioncomesfromsomeoldmachinetoolsthatusedtomovefasteriftheaxeswerenotdriveninastraightline.ForthemG0allowedanymovementinspacetogettothedestinationasfastaspossible.)G1:ControlledmoveExample:G1X90.6Y13.8E22.4Goinastraightlinefromthecurrent(X,Y)pointtothepoint(90.6,13.8),extrudingmaterialasthemovehappensfromthecurrentextrudedlengthtoalengthof22.4mm.RepRapdoessubtlethingswithfeedrates.Thus:G1F1500G1X90.6Y13.8E22.4Willsetafeedrateof1500mm/minute,thendothemovedescribedaboveatthatfeedrate.ButG1F1500G1X90.6Y13.8E22.4F3000Willsetafeedrateof1500mm/minute,thendothemovedescribedaboveacceleratingtoafeedrateof3000mm/minuteasitdoesso.TheextrusionwillacceleratealongwiththeX,Ymovementsoeverythingstayssynchronized.RepRapthustreatsfeedrateassimplyanothervariable(likeX,Y,Z,andE)tobelinearlyinterpolated.Thisgivescompletecontroloveraccelerationsanddecelerationsinawaythatensuresthateverythingmovestogetherandtherightvolumeofmaterialisextrudedatallpoints.Thefirstexampleshowshowtogetaconstant-speedmovement.Thesecondhowtoaccelerateordecelerate.ThusG1F1500G1X90.6Y13.8E22.4F3000G1X80Y20E36F1500Willdothefirstmovementacceleratingasbefore,andtheseconddeceleratingfrom3000mm/minutebackto1500mm/minute.Toreversetheextruderbyagivenamount(forexampletoreduceitsinternalpressurewhileitdoesanin-airmovementsothatitdoesn'tdribble)simplyuseG1tosendanEvaluethatislessthanthecurrentlyextrudedlength.G28:MovetoOriginExample:G28ThiscausestheRepRapmachinetomovebacktoitsX,YandZzeroendstops,aprocessknownas"homing".Itdoessoaccelerating,soastogettherefast.Butwhenitarrivesitbacksoffby1mmineachdirectionslowly,thenmovesbackslowlytothestop.Thisensuresmoreaccuratepositioning.Ifyouaddcoordinates,thenjusttheaxeswithcoordinatesspecifiedwillbezeroed.ThusG28X0Y72.3willzerotheXandYaxes,butnotZ.Theactualcoordinatevaluesareignored.UnbufferedGcommandsThefollowingcommandsarenotbuffered.Whenoneisreceiveditisstored,butitisnotacknowledgedtothehostuntilthebufferisexhaustedandthenthecommandhasbeenexecuted.Thusthehostwillpauseatoneofthesecommandsuntilithasbeendone.Shortpausesbetweenthesecommandsandanythatmightfollowthemdonotaffecttheperformanceofthemachine.G4:DwellExample:G4P200Inthiscasesitstilldoingnothingfor200milliseconds.Duringdelaysthestateofthemachine(forexamplethetemperaturesofitsextruders)willstillbepreservedandcontrolled.G20:SetUnitstoInchesExample:G20Unitsfromnowonareininches.G21:SetUnitstoMillimetersExample:G21Unitsfromnowonareinmillimeters.(ThisistheRepRapdefault.)G90:SettoAbsolutePositioningExample:G90Allcoordinatesfromnowonareabsoluterelativetotheoriginofthemachine.(ThisistheRepRapdefault.)G91:SettoRelativePositioningExample:G91Allcoordinatesfromnowonarerelativetothelastposition.G92:SetPositionExample:G92X10E90Allowsprogrammingofabsolutezeropoint,byresetingthecurrentpositiontothevaluesspecified.Thiswouldsetthemachine'sXcoordinateto10,andtheextrudecoordinateto90.Nophysicalmotionwilloccur.UnbufferedMandTcommandsM0:StopExample:M0TheRepRapmachinefinishesanymovesleftinitsbuffer,thenshutsdown.Allmotorsandheatersareturnedoff.Itcanbestartedagainbypressingtheresetbuttononthemastermicrocontroller.SeealsoM112.M17:Enable/PowerallsteppermotorsExample:M17M18:DisableallsteppermotorsExample:M18Disablessteppermotorsandallowsaxistomove'freely.'M20:ListSDcardExample:M20AllfilesintherootfolderoftheSDcardarelistedtotheserialport.Thisresultsinalinelike:okFiles:{SQUARE.G,SQCOM.G,}Thetrailingcommaisoptional.Notethatfilenamesarereturnedinuppercase,but-whensenttotheM23command(below)theymustbeinlowercase.ThisseemstobeafunctionoftheSDsoftware.Gofigure...M21:InitialiseSDcardExample:M21TheSDcardisinitialised.IfanSDcardisloadedwhenthemachineisswitchedon,thiswillhappenbydefault.SDcardmustbeinitialisedfortheotherSDfunctionstowork.M22:ReleaseSDcardExample:M22SDcardisreleasedandcanbephysicallyremoved.M23:SelectSDfileExample:M23filename.gcoThefilespecifiedasfilename.gco(8.3namingconventionissupported)isselectedreadyforprinting.M24:Start/resumeSDprintExample:M24ThemachineprintsfromthefileselectedwiththeM23command.M25:PauseSDprintExample:M25ThemachinepauseprintingatthecurrentpositionwithinthefileselectedwiththeM23command.M26:SetSDpositionExample:M26SetSDpositioninbytes(M26S12345).M27:ReportSDprintstatusExample:M27ReportSDprintstatus.M28:BeginwritetoSDcardExample:M28filename.gcoFilespecifiedbyfilename.gcoiscreated(oroverwrittenifitexists)ontheSDcardandallsubsequentcommandssenttothemachinearewrittentothatfile.M29:StopwritingtoSDcardExample:M29filename.gcoFileopenedbyM28commandisclosed,andallsubsequentcommandssenttothemachineareexecutedasnormal.M40:EjectIfyourRepRapmachinecanejectthepartsithasbuiltoffthebed,thiscommandexecutestheejectcycle.Thisusuallyinvolvescoolingthebedandthenperformingasequenceofmovementsthatremovetheprintedpartsfromit.TheX,YandZpositionofthemachineattheendofthiscycleareundefined(thoughtheycanbefoundoutusingtheM114command,q.v.).SeealsoM240andM241below.M41:LoopExample:M41IftheRepRapmachinewasbuildingafilefromitsownmemorysuchasalocalSDcard(asopposedtoafilebeingtransmittedtoitfromahostcomputer)thisgoesbacktothebeginningofthefileandrunsitagain.So,forexample,ifyourRepRapiscapableofejectingpartsfromitsbuildbedthenyoucansetitprintinginaloopanditwillrunandrun.Usewithcaution-theonlythingsthatwillstopitare:1.Whenyoupresstheresetbutton,2.Whenthebuildmaterialrunsout(ifyourRepRapissetuptodetectthis),and3.Whenthere'sanerror(suchasaheaterfailure).M42:StoponmaterialexhaustedExample:M42IfyourRepRapcandetectwhenitsmaterialrunsout,thisdecidesthebehaviourwhenthathappens.TheXandYaxesarezeroed(butnotZ),andthenthemachineshutsallmotorsandheatersoff.Youhavetopressresettoreactivatethemachine.Inotherwords,itparksitselfandthenexecutesanM0command(q.v.).M43:StandbyonmaterialexhaustedExample:M43IfyourRepRapcandetectwhenitsmaterialrunsout,thisdecidesthebehaviourwhenthathappens.TheXandYaxesarezeroed(butnotZ),andthenthemachineshutsallmotorsandheatersoffexcepttheheatedbed,thetemperatureofwhichismaintained.ThemachinewillstillrespondtoGandMcodecommandsinthisstate.M80:ATXPowerOnExample:M80TurnsontheATXpowersupplyfromstandbymodetofullyoperationalmode.No-oponelectronicswithoutstandbymode.Note:somefirmwares,likeTeacup,handlepoweron/offautomatically,sothisisredundantthere.M81:ATXPowerOffExample:M81TurnsofftheATXpowersupply.CounterparttoM80.M84:StopidleholdExample:M84Stoptheidleholdonallaxisandextruder.Insomecasestheidleholdcausesannoyingnoises,whichcanbestoppedbydisablingthehold.Beawarethatbydisablingidleholdduringprinting,youwillgetqualityissues.Thisisrecommendedonlyinbetweenorafterprintjobs.M92:Setaxis_steps_per_unitExample:M92XSprinterandMarlinAllowsprogrammingofstepsperunitofaxistilltheelectronicsareresetforthespecifiedaxis.Veryusefulforcalibration.M101Turnextruder1onForwardDepreciated.seeMCodeReference.WasusedbyolderstyleDCextruders.SeealsoBitsFromBytesM102Turnextruder1onReverseDepreciated.seeMCodeReference.WasusedbyolderstyleDCextruders.SeealsoBitsFromBytesM103TurnallextrudersoffDepreciated.seeMCodeReference.WasusedbyolderstyleDCextruders.SeealsoBitsFromBytesM104:SetExtruderTemperature(Fast)Example:M104S190Setthetemperatureofthecurrentextruderto190oCandreturncontroltothehostimmediately(i.e.beforethattemperaturehasbeenreachedbytheextruder).SeealsoM109.M105:GetExtruderTemperatureExample:M105RequestthetemperatureofthecurrentextruderandthebuildbaseindegreesCelsius.Thetemperaturesarereturnedtothehostcomputer.Forexample,thelinesenttothehostinresponsetothiscommandlookslikeokT:201B:117M106:FanOnExample:M106S127Turnonthecoolingfanathalfspeed.Optionalparameter'S'declaresthePWMvalue(0-255)M107:FanOffExample:M107Turnoffthecoolingfan(ifany).M108:SetExtruderSpeedSetsspeedofextrudermotor.(Deprecatedincurrentfirmware,seeM113)M109:SetExtruderTemperatureExample:M109S190Setthetemperatureofthecurrentextruderto190oCandwaitforittoreachthatvaluebeforesendinganacknowledgmenttothehost.InfacttheRepRapfirmwarewaitsawhileafterthetemperaturehasbeenreachedfortheextrudertostabilise-typicallyabout40seconds.Thiscanbechangedbyaparameterinthefirmwareconfigurationfilewhenthefirmwareiscompiled.SeealsoM104andM116.M110:SetCurrentLineNumberExample:N123M110Setthecurrentlinenumberto123.Thustheexpectednextlineafterthiscommandwillbe124.M111:SetDebugLevelExample:M111S6Setthelevelofdebugginginformationtransmittedbacktothehosttolevel6.ThelevelistheORofthreebits:#defineDEBUG_ECHO(1<<0)#defineDEBUG_INFO(1<<1)#defineDEBUG_ERRORS(1<<2)Thus6meanssendinformationanderrors,butdon'techocommands.(ThisistheRepRapdefault.)M112:EmergencyStopExample:M112Anymovesinprogressareimmediatelyterminated,thenRepRapshutsdown.Allmotorsandheatersareturnedoff.Itcanbestartedagainbypressingtheresetbuttononthemastermicrocontroller.SeealsoM0.M113:SetExtruderPWMExample:M113SetthePWMforthecurrently-selectedextruder.OnitsownthiscommandsetsRepRaptousetheon-boardpotentiometerontheextrudercontrollerboardtosetthePWMforthecurrently-selectedextruder'sstepperpower.WithanSfield:M113S0.7itcausesthePWMtobesettotheSvalue(70%inthisinstance).M113S0turnstheextruderoff,untilanM113commandotherthanM113S0issent.M114:GetCurrentPositionExample:M114ThiscausestheRepRapmachinetoreportitscurrentX,Y,ZandEcoordinatestothehost.Forexample,themachinereturnsastringsuchas:okC:X:0.00Y:0.00Z:0.00E:0.00M115:GetFirmwareVersionandCapabilitiesExample:M115RequesttheFirmwareVersionandCapabilitiesofthecurrentmicrocontrollerThedetailsarereturnedtothehostcomputeraskey:valuepairsseparatedbyspacesandterminatedwithalinefeed.sampledatafromfirmware:okPROTOCOL_VERSION:0.1FIRMWARE_NAME:FiveDFIRMWARE_URL:http%3A//reprap.orgMACHINE_TYPE:MendelEXTRUDER_COUNT:1ThisM115codeisinconsistentlyimplemented,andshouldnotbereliedupontoexist,oroutputcorrectlyinallcases.AninitialimplementationwascommittedtosvnfortheFiveDReprapfirmwareon11Oct2010.Worktomoreformallydefineprotocolversionsiscurrently(October2010)beingdiscussed.SeeM115_Keywordsforonedraftsetofkeywordsandtheirmeanings.M116:WaitExample:M116Waitforalltemperaturesandotherslowly-changingvariablestoarriveattheirsetvalues.SeealsoM109.M117:GetZeroPositionExample:M117ThiscausestheRepRapmachinetoreporttheX,Y,ZandEcoordinatesinstepsnotmmtothehostthatitfoundwhenitlasthitthezerostopsforthoseaxes.Thatistosay,whenyouzeroX,thexcoordinateofthemachinewhenithitstheXendstopisrecorded.Thisvalueshouldbe0,ofcourse.Butifthemachinehasdrifted(forexamplebydroppingsteps)thenitwon'tbe.Thiscommandallowsyoutomeasureandtodiagnosesuchproblems.(Eisincludedforcompleteness.Itdoesn'tnormallyhaveanendstop.)M118:NegotiateFeaturesExample:M118P42ThisM-codeisforfutureproofing.NOfirmwareorhostwaresupportsthisatthemoment.ItisusedinconjunctionwithM115'sFEATURESkeyword.SeeProtocol_Feature_Negotiationformoreinfo.M119:GetEndstopStatusExample:M119ReturnsthecurrentstateoftheconfiguredX,Y,Zendstops.Shouldtakeintoaccountany'invertedendstop'settings,soonecanconfirmthatthemachineisinterpretingtheendstopscorrectly.M126:OpenValveExample:M126P500Opentheextruder'svalve(ifithasone)andwait500millisecondsforittodoso.M127:CloseValveExample:M127P400Closetheextruder'svalve(ifithasone)andwait400millisecondsforittodoso.M128:ExtruderPressurePWMExample:M128S255PWMvaluetocontrolinternalextruderpressure.S255isfullpressure.M129:ExtruderpressureoffExample:M129P100InadditiontosettingExtruderpressureto0,youcanturnthepressureoffentirely.P400willwait100mstodoso.M140:BedTemperature(Fast)Example:M140S55Setthetemperatureofthebuildbedto55oCandreturncontroltothehostimmediately(i.e.beforethattemperaturehasbeenreachedbythebed).M141:ChamberTemperature(Fast)Example:M141S30Setthetemperatureofthechamberto30oCandreturncontroltothehostimmediately(i.e.beforethattemperaturehasbeenreachedbythechamber).M142:HoldingPressureExample:M142S1Settheholdingpressureofthebedto1bar.Theholdingpressureisinbar.Forhardwarewhichonlyhason/offholding,whentheholdingpressureiszero,turnoffholding,whentheholdingpressureisgreaterthanzero,turnonholding.M143:Maximumhot-endtemperatureExample:M143S275Setthemaximumtemperatureofthehot-endto275CWhentemperatureofthehot-endexceedsthisvalue,takecountermeasures,forinstanceanemergencystop.Thisistopreventhot-enddamage.M160:NumberofmixedmaterialsExample:M160S4Setthenumberofmaterials,N,thatthecurrentextrudercanhandletothenumberspecified.Thedefaultis1.WhenN>=2,thentheEfieldthatcontrolsextrusionrequiresN+1valuesseparatedbyspacesafteritlikethis:M160S4G1X90.6Y13.8E22.40.10.10.10.7G1X70.6E42.40.00.00.01.0G1E42.41.00.00.00.0Thesecondlinemovesstraighttothepoint(90.6,13.8)extruding22.4mmoffilament.Themixratioattheendofthemoveis0.1:0.1:0.1:0.7.Thethirdlinemovesback20mminXextruding20mmoffilament.Themixvarieslinearlyfrom0.1:0.1:0.1:0.7to0:0:0:1asthemoveismade.Thefourthlinehasnophysicaleffect,butsetsthemixproportionsforthestartofthenextmoveto1:0:0:0.M203:RecordZadjustmentExample:M203Z-0.75ThisrecordsaZoffsetinnon-volatilememoryinRepRap'smicrocontrollerwhereitremainsactiveuntilnextset,evenwhenthepoweristurnedoffandonagain.Ifthefirstlayeristooclosetothebed,youneedtoeffectivelymovethebeddown,sotheZvaluewillbenegative.Ifthenozzleistoofarfromthebedduringthefirstlayer,theZvalueshouldbepositivetoraisethebed.Themaximumadjustmentis+/-1.27mm.M226:GcodeInitiatedPauseExample:M226Initiatesapauseinthesamewayasifthepausebuttonispressed.M227:EnableAutomaticReverseandPrimeExample:M227P1600S1600PandSaresteps.M228:DisableAutomaticReverseandPrimeExample:M228M229:EnableAutomaticReverseandPrimeExample:M229P1.0S1.0PandSareextruderscrewrotations.M230:Disable/EnableWaitforTemperatureChangeExample:M230S1S1DisablewaitfortemperaturechangeS0EnablewaitfortemperaturechangeM240:StartconveyorbeltmotorExample:M240TheconveyorbeltallowstostartmassproductionofapartwithareprapM241:StopconveyorbeltmotorExample:M241M245:StartcoolerExample:M245usedtocoolparts/heated-beddownafterprintingforeasyremoveofthepartsafterprintM246:StopcoolerExample:M246M300:PlaybeepsoundUsage:M300SPExample:M300S300P1000Playbeepsound,usetonotifyimportanteventsliketheendofprinting.SeeworkingexampleonR2C2electronics.T:SelectToolExample:T1Selectextrudernumber1tobuildwith.Extrudernumberingstartsat0.ProposedEEPROMconfigurationcodesBRIEFLY:eachRepRaphasanumberofphysicalparametersthatshouldbep
本文档为【(精心整理)Gcode G代码详解】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: ¥17.6 已有0 人下载
最新资料
资料动态
专题动态
机构认证用户
夕夕资料
拥有专业强大的教研实力和完善的师资团队,专注为用户提供合同简历、论文写作、PPT设计、计划书、策划案、各类模板等,同时素材和资料部分来自网络,仅供参考.
格式:doc
大小:81KB
软件:Word
页数:0
分类:互联网
上传时间:2021-03-29
浏览量:232