资源预览内容
第1页 / 共13页
第2页 / 共13页
第3页 / 共13页
第4页 / 共13页
第5页 / 共13页
第6页 / 共13页
第7页 / 共13页
第8页 / 共13页
第9页 / 共13页
第10页 / 共13页
亲,该文档总共13页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
精品文档,仅供学习与交流,如有侵权请联系网站删除reprap wiki上面的Gcode说明G-codeFrom RepRapWiki(Redirected from Gcode)Jump to: navigation, searchContents hide1 Introduction2 RepRap G Code Fields3 Comments4 Individual commands 4.1 Checking 4.1.1 N and *4.2 Buffered G Commands 4.2.1 G0: Rapid move4.2.2 G1: Controlled move4.2.3 G28: Move to Origin4.3 Unbuffered G commands 4.3.1 G4: Dwell4.3.2 G20: Set Units to Inches4.3.3 G21: Set Units to Millimeters4.3.4 G90: Set to Absolute Positioning4.3.5 G91: Set to Relative Positioning4.3.6 G92: Set Position4.4 Unbuffered M and T commands 4.4.1 M0: Stop4.4.2 M17: Enable/Power all stepper motors4.4.3 M18: Disable all stepper motors4.4.4 M20: List SD card4.4.5 M21: Initialise SD card4.4.6 M22: Release SD card4.4.7 M23: Select SD file4.4.8 M24: Start/resume SD print4.4.9 M25: Pause SD print4.4.10 M26: Set SD position4.4.11 M27: Report SD print status4.4.12 M28: Begin write to SD card4.4.13 M29: Stop writing to SD card4.4.14 M40: Eject4.4.15 M41: Loop4.4.16 M42: Stop on material exhausted4.4.17 M43: Stand by on material exhausted4.4.18 M80: ATX Power On4.4.19 M81: ATX Power Off4.4.20 M84: Stop idle hold4.4.21 M92: Set axis_steps_per_unit4.4.22 M101 Turn extruder 1 on Forward4.4.23 M102 Turn extruder 1 on Reverse4.4.24 M103 Turn all extruders off4.4.25 M104: Set Extruder Temperature (Fast)4.4.26 M105: Get Extruder Temperature4.4.27 M106: Fan On4.4.28 M107: Fan Off4.4.29 M108: Set Extruder Speed4.4.30 M109: Set Extruder Temperature4.4.31 M110: Set Current Line Number4.4.32 M111: Set Debug Level4.4.33 M112: Emergency Stop4.4.34 M113: Set Extruder PWM4.4.35 M114: Get Current Position4.4.36 M115: Get Firmware Version and Capabilities4.4.37 M116: Wait4.4.38 M117: Get Zero Position4.4.39 M118: Negotiate Features4.4.40 M119: Get Endstop Status4.4.41 M126: Open Valve4.4.42 M127: Close Valve4.4.43 M128: Extruder Pressure PWM4.4.44 M129: Extruder pressure off4.4.45 M140: Bed Temperature (Fast)4.4.46 M141: Chamber Temperature (Fast)4.4.47 M142: Holding Pressure4.4.48 M143: Maximum hot-end temperature4.4.49 M160: Number of mixed materials4.4.50 M203: Record Z adjustment4.4.51 M226: Gcode Initiated Pause4.4.52 M227: Enable Automatic Reverse and Prime4.4.53 M228: Disable Automatic Reverse and Prime4.4.54 M229: Enable Automatic Reverse and Prime4.4.55 M230: Disable / Enable Wait for Temperature Change4.4.56 M240: Start conveyor belt motor4.4.57 M241: Stop conveyor belt motor4.4.58 M245: Start cooler4.4.59 M246: Stop cooler4.4.60 M300: Play beep sound4.4.61 T: Select Tool5 Proposed EEPROM configuration codes6 Replies from the RepRap machine to the host computer7 Proposal for sending multiple lines of G-code 7.1 Problem to solveIntroduction This page describes the G Codes that the RepRap firmware uses and how they work. The list of what can be done is extensible. But check this page first, and add your extension here first before you implement it. A typical piece of GCode as sent to a RepRap machine might look like this: N3 T0*57N4 G92 E0*67N5 G28*22N6 G1 F1500.0*82N7 G1 X2.0 Y2.0 F3000.0*85N8 G1 X3.0 Y3.0*33The meaning of all those symbols and numbers (and more) is explained below. TO find out which specific gcode/s are implemented in any given firmware, please see the Firmware_features page. (For the technically minded, the end of line is marked by both a and a . If you want to manually enter GCodes in your reprap using the Arduino Serial interface, make sure to select Both NL & CR on the bottom of the screen.) This isnt accurate, firmware accepts single as well as single , or combinations thereof. Hosts should accepts all four combinations as well. -Traumflug 09:34, 20 April 2011 (UTC) RepRap G Code Fields This section explains the letter-preceded fields. The numbers in the fields are represented by nnn. Numbers can be integers, or can contain a decimal point, depending on context. For example an X coordinate can be integer (X175) or fractional (X17.62), whereas trying to select extruder number 2.76 would make no sense. Letter Meaning Gnnn Standard GCode command, such as move to a point Mnnn RepRap-defined command, such as turn on a cooling fan Tnnn Select tool nnn. In RepRap, tools are extruders Snnn Command parameter, such as the voltage to send to a motor Pnnn Command parameter, such as a time in milliseconds Xnnn An X coordinate, usually to move to Ynnn A Y coordinate, usually to move to Znnn A Z coordinate, usually to move to Innn Parameter - not currently used Jnnn Parameter - not currently used Fnnn Feedrate in mm per minute. (Speed of print head movement) Rnnn Parameter - not currently used Qnnn Parameter - not currently used Ennn Length of extrudate in mm. This is exactly like X, Y and Z, but for the length of filament t
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号