User Tools

Site Tools


mycnc:gcodes_list

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mycnc:gcodes_list [2018/09/25 09:51] skirillovmycnc:gcodes_list [2019/09/26 15:51] ivan
Line 1: Line 1:
 ===== G-Codes list ===== ===== G-Codes list =====
 +
 +Below is a list of G-codes currently implemented in the myCNC system.
  
 ^ G-codes ^^^^ ^ G-codes ^^^^
 ^ Code ^ Description ^ Mill (M)\\ Lathe(L)\\ Cutting table (C) ^ Comments ^ ^ Code ^ Description ^ Mill (M)\\ Lathe(L)\\ Cutting table (C) ^ Comments ^
-| G00 | Rapid Positioning | +| G00 | Rapid Positioning | | {{:mycnc:gcodes-list-003-g0.jpg}} |  
-| G01 | Linear Interpolation | +| G01 | Linear Interpolation | | {{:mycnc:gcodes-list-004-g1.jpg}} 
-| G02 | Arc CCW Interpolation | +| G02 | Arc CCW Interpolation | | {{:mycnc:gcodes-list-005-g02.jpg}} 
-| G03 | Arc CW Interpolation | +| G03 | Arc CW Interpolation | | {{:mycnc:gcodes-list-006-g3.jpg}} |  
-| G04 | Dwell | +| G04 | Dwell | | In milliseconds. Will prevent the axes from moving during the specified time period 
-| G5.1 | <del>Spline Inrepolation</del>+| G5.1 | <del>Spline Interpolation</del>
-| G5.2 | <del>Nurbs Inrepolation</del>+| G5.2 | <del>Nurbs Interpolation</del>
-| G5.3 | <del>Nurbs Inrepolation End</del> |+| G5.3 | <del>Nurbs Interpolation End</del> |
 | G10 | [[mycnc:gcodes_list#G10 Data Set|Data Set]] | | G10 | [[mycnc:gcodes_list#G10 Data Set|Data Set]] |
 | G11 | Mirror Cancel | | G11 | Mirror Cancel |
Line 23: Line 25:
 | G20 | Unit Inches | | | G20 | Unit Inches | |
 | G21 | Unit Metric | | | G21 | Unit Metric | |
-| G28 | G28 Home |+| G28 | [[mycnc:gcodes_list:g28|G28 Home]] |
 | G28.1 | Home Position Set | | G28.1 | Home Position Set |
 | G28.2 | Home Position #1 Save | | G28.2 | Home Position #1 Save |
Line 42: Line 44:
 | G38.5 | G38.5 Probing | | G38.5 | G38.5 Probing |
 | G38.9 | Tool Measure | | G38.9 | Tool Measure |
-| G40 | Tool Correction Cancel | +| G40 | Tool Correction Cancel | | {{:mycnc:gcodes-list-008-g40.jpg}} 
-| G41 | Tool Correction Left | +| G41 | Tool Correction Left | | {{:mycnc:gcodes-list-009-g41.jpg}} 
-| G42 | Tool Correction Right |+| G42 | Tool Correction Right | | {{:mycnc:gcodes-list-010-g42.jpg}} |
 | G43 | G43 Tool Length Offset | | G43 | G43 Tool Length Offset |
 | G44 | G44 Tool Length Offset | | G44 | G44 Tool Length Offset |
Line 67: Line 69:
 | G64 | <del>Mode Cutting</del> | M | | G64 | <del>Mode Cutting</del> | M |
 | G65 | G-code macro | M | | G65 | G-code macro | M |
-| G68 | Rotation Coordinates Mode On | M | 
-| G69 | Rotation Coordinates Mode Off | M | 
 | G73 | Cycle Deep Hole Drilling | M | | G73 | Cycle Deep Hole Drilling | M |
 | G74 | Cycle Left Hand Tapping | M | | G74 | Cycle Left Hand Tapping | M |
Line 93: Line 93:
 | G96 | Lathe Surface Speed | L | (constant surface for lathe) | | G96 | Lathe Surface Speed | L | (constant surface for lathe) |
 | G97 | Set Spindle Speed | L | (revolutions per minute) | | G97 | Set Spindle Speed | L | (revolutions per minute) |
-| G98 | TURN_FEEDRATE_PER_MINUTE | L | +| G98 | Turn Feedrate per Minute | L | 
-| G99 | TURN_FEEDRATE_PER_REVOLUTION | L | +| G98 | Canned Return Back to initial height | M | {{:mycnc:gcodes-list-007-g98g99.jpg}} 
-| G98 | Canned Return Back | M | | +On mill machines, G98 allows to return the tool back to initial height Z during the canned return process. 
-| G99 | Canned Return R | M | | +| G99 | Turn Feedrate per Revolution 
-G70 Unit Inches (2) | | +G99 Canned Return to a set height {{:mycnc:gcodes-list-007-g98g99.jpg}}. As opposed to G98, which returns the tool to the initial height (height before cutting), G99 returns the tool to some set height Z |
-| G71 | Unit Metric (2| | |+
 | G150 | Tool Correction Radius Set | | G150 | Tool Correction Radius Set |
 ^ Miscellaneous M-codes ^^^^ ^ Miscellaneous M-codes ^^^^
Line 120: Line 119:
 | M20 | Start Cutting | PLC | Cutting Tables | | M20 | Start Cutting | PLC | Cutting Tables |
 | M21 | Stop Cutting | PLC | Cutting Tables | | M21 | Stop Cutting | PLC | Cutting Tables |
-| M23 | Thread Finishing On | PLC | Lathe | +| M23 | [[mycnc:gcodes_list:m23_m24|Thread Finishing ON]] | PLC | Lathe | 
-| M24 | Thread Finishing Off | PLC | Lathe | +| M24 | [[mycnc:gcodes_list:m23_m24|Thread Finishing OFF]] | PLC | Lathe | 
-| M30 | End Program with Rewind Pointer | Macro |  |+| M30 | [[mycnc:gcodes_list:m30|End Program with Rewind Pointer]] | Macro |  |
 | M41 | Set Low Gears | PLC |  | | M41 | Set Low Gears | PLC |  |
 | M41 | Set High Gears | PLC |  | | M41 | Set High Gears | PLC |  |
Line 148: Line 147:
 | M101-199 | User defined M-codes (Section 2) | | M101-199 | User defined M-codes (Section 2) |
 | M200-999 | User defined M-codes (Section 3) | | M200-999 | User defined M-codes (Section 3) |
 +| M421 | Tool Length Measure |
 +| M422 | Tool Breakage Check |
 +| M440-M470 | Probing tool macros (locating surface, edges, etc) |
 ^ Misc Macros ^^^^ ^ Misc Macros ^^^^
 ^ Code ^ Description ^ Implementation ^ Comments ^ ^ Code ^ Description ^ Implementation ^ Comments ^
Line 158: Line 160:
 | M136 | Homing C axis | Macro |  | | M136 | Homing C axis | Macro |  |
 | M138 | Homing All axes | Macro |  | | M138 | Homing All axes | Macro |  |
-^ Tool Measure ^^^^ 
-| M131 | Homing X axis | Macro |  | 
-| M132 | Homing Y axis | Macro |  | 
-| M133 | Homing Z axis | Macro |  | 
-| M134 | Homing A axis | Macro |  | 
-| M135 | Homing B axis | Macro |  | 
-| M136 | Homing C axis | Macro |  | 
-| M138 | Homing All axes | Macro |  | 
- 
  
  
Line 181: Line 174:
   - **L70** - set position to given values   - **L70** - set position to given values
     - **P0** - Set **Machine Position** to given values <code>G10L70 P0 X0 Y0 (Set Machine coordinates X=0, Y=0)</code>     - **P0** - Set **Machine Position** to given values <code>G10L70 P0 X0 Y0 (Set Machine coordinates X=0, Y=0)</code>
-    - **P1** - Set Work Position in **G54** Coordinates system to given values <code>G10 L70 P1 X10 Y20 Z30 (Set G54/Work coordinates X=10, Y=20, Z=30)</code><code>G10L70 P1 X0 Y0 Z0 A0 B0 C0 (Set G54/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> +    - **P1** - Set Work Position in **G54** Coordinates system to given values <code>G10L70 P1 X10 Y20 Z30 (Set G54/Work coordinates X=10, Y=20, Z=30)</code><code>G10L70 P1 X0 Y0 Z0 A0 B0 C0 (Set G54/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> 
-    - **P2** - Set Work Position in **G55** Coordinates system to given values <code>G10 L70 P2 X0 Y10 Z20 (Set G55/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P2 X0 Y0 Z0 A0 B0 C0 (Set G55/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> +    - **P2** - Set Work Position in **G55** Coordinates system to given values <code>G10L70 P2 X0 Y10 Z20 (Set G55/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P2 X0 Y0 Z0 A0 B0 C0 (Set G55/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> 
-    - **P3** - Set Work Position in **G56** Coordinates system to given values <code>G10 L70 P2 X0 Y10 Z20 (Set G56/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P2 X0 Y0 Z0 A0 B0 C0 (Set G56/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> +    - **P3** - Set Work Position in **G56** Coordinates system to given values <code>G10L70 P2 X0 Y10 Z20 (Set G56/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P2 X0 Y0 Z0 A0 B0 C0 (Set G56/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> 
-    - **P4** - Set Work Position in **G57** Coordinates system to given values <code>G10 L70 P4 X0 Y10 Z20 (Set G57/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P4 X0 Y0 Z0 A0 B0 C0 (Set G57/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> +    - **P4** - Set Work Position in **G57** Coordinates system to given values <code>G10L70 P4 X0 Y10 Z20 (Set G57/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P4 X0 Y0 Z0 A0 B0 C0 (Set G57/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> 
-    - **P5** - Set Work Position in **G58** Coordinates system to given values <code>G10 L70 P5 X0 Y10 Z20 (Set G58/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P5 X0 Y0 Z0 A0 B0 C0 (Set G58/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> +    - **P5** - Set Work Position in **G58** Coordinates system to given values <code>G10L70 P5 X0 Y10 Z20 (Set G58/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P5 X0 Y0 Z0 A0 B0 C0 (Set G58/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> 
-    - **P6** - Set Work Position in **G59** Coordinates system to given values <code>G10 L70 P6 X0 Y10 Z20 (Set G59/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P6 X0 Y0 Z0 A0 B0 C0 (Set G59/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> +    - **P6** - Set Work Position in **G59** Coordinates system to given values <code>G10L70 P6 X0 Y10 Z20 (Set G59/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P6 X0 Y0 Z0 A0 B0 C0 (Set G59/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code> 
-    - **P7** - Set Work Position in **G59.1** Coordinates system to given values <code>G10 L70 P7 X0 Y10 Z20 (Set G59.1/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P7 X0 Y0 Z0 A0 B0 C0 (Set G59.1/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code>+    - **P7** - Set Work Position in **G59.1** Coordinates system to given values <code>G10L70 P7 X0 Y10 Z20 (Set G59.1/Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P7 X0 Y0 Z0 A0 B0 C0 (Set G59.1/Work coordinates X=0,Y=0,Z=0,A=0,B=0,C=0)</code>
     - **P8** - Set Work Position in **G59.2** Coordinates system to given values     - **P8** - Set Work Position in **G59.2** Coordinates system to given values
     - **P9** - Set Work Position in **G59.3** Coordinates system to given values     - **P9** - Set Work Position in **G59.3** Coordinates system to given values
-    - Current coordinates number is stored in Global variables register #5220. This register can be used to set Work coordinates in **the Current Coordinates System** <code>G10L70 P#5220 X0 Y10 Z20 (Set The Current Work coordinates X=0, Y=10, Z=20)</code><code>G10 L70 P#5220 X0 Y0 Z0 A0 B0 C0 (Set The Current Work coordinates to X=0,Y=0,Z=0,A=0,B=0,C=0)</code> +    - Current coordinates number is stored in Global variables register #5220. This register can be used to set Work coordinates in **the Current Coordinates System** <code>G10L70 P#5220 X0 Y10 Z20 (Set The Current Work coordinates X=0, Y=10, Z=20)</code><code>G10L70 P#5220 X0 Y0 Z0 A0 B0 C0 (Set The Current Work coordinates to X=0,Y=0,Z=0,A=0,B=0,C=0)</code> 
-  - L80 - **Assign** value from **Q** to Register Address **P**<code C>G10 L80 P100 Q10 (//Assign "10" to Register #100 // #100=10 //)</code> +  - L80 - **Assign** value from **Q** to Register Address **P**<code C>G10L80 P100 Q10 (//Assign "10" to Register #100 // #100=10 //)</code> 
-  - L81 - **Copy** value from Register Address **Q** to Register Address **P**<code C>G10 L81 P100 Q10 (//Assign a value of Register #10 to Register #100 // #100=#10 //)</code> +  - L81 - **Copy** value from Register Address **Q** to Register Address **P**<code C>G10L81 P100 Q10 (//Assign a value of Register #10 to Register #100 // #100=#10 //)</code> 
-  - L180 - **Add** **Q** value to Register Address **P** and store the result to Register Address **P** <code C>G10 L180 P100 Q10 (//Add 10 to Register #100 // #100=#100 + 10 //)</code> +  - L180 - **Add** **Q** value to Register Address **P** and store the result to Register Address **P** <code C>G10L180 P100 Q10 (//Add 10 to Register #100 // #100=#100 + 10 //)</code> 
-  - L181 - **Subtract** **Q** value from Register Address **P** and store the result to Register Address **P** <code C>G10 L181 P100 Q10 (//Subtract 10 from Register #100 // #100=#100 - 10 //)</code> +  - L181 - **Subtract** **Q** value from Register Address **P** and store the result to Register Address **P** <code C>G10L181 P100 Q10 (//Subtract 10 from Register #100 // #100=#100 - 10 //)</code> 
-  - L182 - **Mul** Register Address **P** by **Q** value and store the iresult to Register Address **P** <code C>G10 L180 P100 Q10 (//Multiply Register #100 by 10 // #100=#100 * 10 //)</code> +  - L182 - **Mul** Register Address **P** by **Q** value and store the iresult to Register Address **P** <code C>G10L180 P100 Q10 (//Multiply Register #100 by 10 // #100=#100 * 10 //)</code> 
-  - L183 - **Divide** Register Address **P** to **Q**value and store the result to Register Address **P** <code C>G10 L180 P100 Q10 (//Divide Register #100 by 10 // #100=#100 / 10 //)</code> +  - L183 - **Divide** Register Address **P** to **Q**value and store the result to Register Address **P** <code C>G10L180 P100 Q10 (//Divide Register #100 by 10 // #100=#100 / 10 //)</code> 
-  - L184 - **Binary AND** value **Q** with Register Address **P** and store the result to Register Address **P** <code C>G10 L184 P100 Q66 (//Binary AND Register #100 with 66 // #100=#100 & 66 //)</code> +  - L184 - **Binary AND** value **Q** with Register Address **P** and store the result to Register Address **P** <code C>G10L184 P100 Q66 (//Binary AND Register #100 with 66 // #100=#100 & 66 //)</code> 
-  - L185 - **Binary OR** value **Q** with Register Address **P** and store the result to Register Address **P** <code C>G10 L185 P100 Q66 (//Binary OR Register #100 with 66 // #100=#100 | 66 //)</code> +  - L185 - **Binary OR** value **Q** with Register Address **P** and store the result to Register Address **P** <code C>G10L185 P100 Q66 (//Binary OR Register #100 with 66 // #100=#100 | 66 //)</code> 
-  - L186 - **Binary XOR** value **Q** with Register Address **P** and store the result to Register Address **P** <code C>G10 L186 P100 Q77 (//Binary XOR Register #100 with 77 // #100=#100 ^ 77 //)</code> +  - L186 - **Binary XOR** value **Q** with Register Address **P** and store the result to Register Address **P** <code C>G10L186 P100 Q77 (//Binary XOR Register #100 with 77 // #100=#100 ^ 77 //)</code> 
-  - L190 - **Add** value from Register Address **Q** with Register Address **P** and store the result to Register Address **P** <code C>G10 L190 P100 Q101 (//Add Register #100 with Register #101 // #100=#100 + #101 //)</code> +  - L190 - **Add** value from Register Address **Q** with Register Address **P** and store the result to Register Address **P** <code C>G10L190 P100 Q101 (//Add Register #100 with Register #101 // #100=#100 + #101 //)</code> 
-  - L191 - **Subtract** value from Register Address **Q** from Register Address **P** and store the result to Register Address **P** <code C>G10 L191 P100 Q101 (//Subtract Register #101 from Register #100 // #100=#100 - #101 //)</code> +  - L191 - **Subtract** value from Register Address **Q** from Register Address **P** and store the result to Register Address **P** <code C>G10L191 P100 Q101 (//Subtract Register #101 from Register #100 // #100=#100 - #101 //)</code> 
-  - L192 - **Mul** value from Register Address **Q** by Register Address **P** and store the result to Register Address **P** <code C>G10 L192 P100 Q105 (//Multiply Register #100 by Register #105 // #100=#100 * #105 //)</code> +  - L192 - **Mul** value from Register Address **Q** by Register Address **P** and store the result to Register Address **P** <code C>G10L192 P100 Q105 (//Multiply Register #100 by Register #105 // #100=#100 * #105 //)</code> 
-  - L193 - **Divide** value from Register Address **P** to Register Address **Q** and store the result to Register Address **P** <code C>G10 L193 P100 Q101 (//Divide Register #100 to Register #101 // #100=#100 / #101 //)</code> +  - L193 - **Divide** value from Register Address **P** to Register Address **Q** and store the result to Register Address **P** <code C>G10L193 P100 Q101 (//Divide Register #100 to Register #101 // #100=#100 / #101 //)</code> 
-  - L194 - **ABS** calculate absolute value of Register Address **P** and store the result to Register Address **P** <code C>G10 L194 P100 (//Absolute value of Register #100 // #100=ABS(#100) //)</code>+  - L194 - **ABS** calculate absolute value of Register Address **P** and store the result to Register Address **P** <code C>G10L194 P100 (//Absolute value of Register #100 // #100=ABS(#100) //)</code>
  
 ==== M07 - Plasma Dot Marking ==== ==== M07 - Plasma Dot Marking ====
Line 258: Line 251:
 ==== M08 - Plasma cutting table - Drill Marking ==== ==== M08 - Plasma cutting table - Drill Marking ====
  
-M08 is used for Drill Marking operations on Plasma Cutting machines which have drill head. Drill Marking procedure is  +M08 is used for Drill Marking operations on Plasma Cutting machines which have drill head. Drill Marking procedure is the following: 
-  * Drill Head Cylinder and Drill Powr turned ON +  * Drill Head Cylinder and Drill Power turned ON 
-  * Drill Head moves down on **Probing Speed** till **Drill probe sensor** activated+  * Drill Head moves down on **Probing Speed** until **Drill probe sensor** activated
   * Moving speed switched to **Drill Speed** and the Head move lower to programmed **Drill Depth**   * Moving speed switched to **Drill Speed** and the Head move lower to programmed **Drill Depth**
   * Drill Head moves up to **Lift Height**   * Drill Head moves up to **Lift Height**
mycnc/gcodes_list.txt · Last modified: 2023/09/29 14:15 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki