<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.docs.technorouters.com/index.php?action=history&amp;feed=atom&amp;title=G-code_examples</id>
		<title>G-code examples - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.docs.technorouters.com/index.php?action=history&amp;feed=atom&amp;title=G-code_examples"/>
		<link rel="alternate" type="text/html" href="http://www.docs.technorouters.com/index.php?title=G-code_examples&amp;action=history"/>
		<updated>2026-04-11T15:37:22Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.4</generator>

	<entry>
		<id>http://www.docs.technorouters.com/index.php?title=G-code_examples&amp;diff=805&amp;oldid=prev</id>
		<title>Mfrost: /* Using Incremental Motion */</title>
		<link rel="alternate" type="text/html" href="http://www.docs.technorouters.com/index.php?title=G-code_examples&amp;diff=805&amp;oldid=prev"/>
				<updated>2010-10-06T12:29:27Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Using Incremental Motion&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:29, 6 October 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Using Incremental Motion ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Using Incremental Motion ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This program uses &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;absolute &lt;/del&gt;motion to cut a four-sided figure with rounded corners.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This program uses &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;incremental &lt;/ins&gt;motion to cut a four-sided figure with rounded corners.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mfrost</name></author>	</entry>

	<entry>
		<id>http://www.docs.technorouters.com/index.php?title=G-code_examples&amp;diff=701&amp;oldid=prev</id>
		<title>Jbeck at 21:21, 1 October 2010</title>
		<link rel="alternate" type="text/html" href="http://www.docs.technorouters.com/index.php?title=G-code_examples&amp;diff=701&amp;oldid=prev"/>
				<updated>2010-10-01T21:21:44Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:21, 1 October 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 97:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 97:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Software]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Software]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Catetory&lt;/del&gt;:Manual]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Category&lt;/ins&gt;:Manual]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jbeck</name></author>	</entry>

	<entry>
		<id>http://www.docs.technorouters.com/index.php?title=G-code_examples&amp;diff=699&amp;oldid=prev</id>
		<title>Jbeck: Created page with &quot;The following should help you get familiar with some of the common g-code commands.  == Using Absolute Motion ==  This program uses absolute motion to cut a four-sided figure wit...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.docs.technorouters.com/index.php?title=G-code_examples&amp;diff=699&amp;oldid=prev"/>
				<updated>2010-10-01T21:21:05Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;The following should help you get familiar with some of the common g-code commands.  == Using Absolute Motion ==  This program uses absolute motion to cut a four-sided figure wit...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The following should help you get familiar with some of the common g-code commands.&lt;br /&gt;
&lt;br /&gt;
== Using Absolute Motion ==&lt;br /&gt;
&lt;br /&gt;
This program uses absolute motion to cut a four-sided figure with rounded corners.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
G90&lt;br /&gt;
M91 OUT1&lt;br /&gt;
M91 OUT2&lt;br /&gt;
G1 Z-0.50&lt;br /&gt;
G1 Y2.00&lt;br /&gt;
G2 X1.00 Y3.00 I1.00 J0.00&lt;br /&gt;
G1 X4.00&lt;br /&gt;
G2 X5.00 Y2.00 I0.00 J-1.00&lt;br /&gt;
G1 Y0.00&lt;br /&gt;
G2 X4.00 Y-1.00 I-1.00 J0.00&lt;br /&gt;
G1 X1.00 Y-1.00&lt;br /&gt;
G2 X0.00 Y0.00 I0.00 J1.00&lt;br /&gt;
G0 Z0.00&lt;br /&gt;
M90 OUT2&lt;br /&gt;
M90 OUT1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Gcode_foursidedfigure.gif|thumb|right|Four-sided figure using linear moves and arcs]]&lt;br /&gt;
&lt;br /&gt;
In this example, the first command indicates that absolute motion&lt;br /&gt;
will be used to execute the commands that follow. Output 1 and&lt;br /&gt;
output 2 are turned on. Then, a linear move brings the Z axis down&lt;br /&gt;
to the -0.5 position. A linear cut is made when the Y axis moves to&lt;br /&gt;
the +2 position. Next, a clockwise arc is made along the XY plane.&lt;br /&gt;
When making this arc, the X axis moves to the +1 position, and the&lt;br /&gt;
Y axis moves to the +3 position. The X and Y axes move clockwise&lt;br /&gt;
around a center point whose coordinates are 1 unit away in a&lt;br /&gt;
positive direction along the X axis and the current position of the Y&lt;br /&gt;
axis.&lt;br /&gt;
&lt;br /&gt;
After the arc is executed, a linear cut is made along the X axis to the&lt;br /&gt;
+4 position. Then, another clockwise arc is then executed in the XY&lt;br /&gt;
plane. To make this arc, the X axis moves to the +5 position, and the&lt;br /&gt;
Y axis moves to the +2 position. The X and Y axes move clockwise&lt;br /&gt;
around a center point that is equal to the current position of the X&lt;br /&gt;
axis and is 1 unit away in a negative direction along the Y axis. An&lt;br /&gt;
additional cutting move brings the Y axis to 0.&lt;br /&gt;
For the next arc, which is also made in the XY plane, the X axis&lt;br /&gt;
moves to the +4 position, and the Y axis moves to the -1 position.&lt;br /&gt;
The X and Y axes move clockwise around a center point that is 1&lt;br /&gt;
unit away in a negative direction along the X axis and is equal to&lt;br /&gt;
the current position of the Y axis. Then, a linear cutting move is&lt;br /&gt;
executed, bringing the X axis to the +1 position, and the Y axis to&lt;br /&gt;
the -1 position.&lt;br /&gt;
&lt;br /&gt;
The final arc connects the last linear cut made along the XY axis&lt;br /&gt;
with the first linear cut. This arc, also a clockwise arc in the XY&lt;br /&gt;
plane, is created when the X and Y axes both move to the 0 position.&lt;br /&gt;
The X and Y axes move clockwise around a center point that is&lt;br /&gt;
equal to the current position of the X axis and is 1 unit away in a&lt;br /&gt;
positive direction along the Y axis. Then, the Z axis rapids up to the&lt;br /&gt;
0 point, and outputs 2 and 1 are turned off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Using Incremental Motion ==&lt;br /&gt;
&lt;br /&gt;
This program uses absolute motion to cut a four-sided figure with rounded corners.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
G91&lt;br /&gt;
M91 OUT1&lt;br /&gt;
M91 OUT2&lt;br /&gt;
G1 Z-0.50&lt;br /&gt;
G1 Y2.00&lt;br /&gt;
G2 X1.00 Y1.00 I1.00 J0.00&lt;br /&gt;
G1 X3.00&lt;br /&gt;
G2 X1.00 Y-1.00 I0.00 J-1.00&lt;br /&gt;
G1 Y-2.00&lt;br /&gt;
G2 X-1.00 Y-1.00 I-1.00 J0.00&lt;br /&gt;
G1 X-3.00&lt;br /&gt;
G2 X-1.00 Y1.00 I0.00 J1.00&lt;br /&gt;
G0 Z0.50&lt;br /&gt;
M90 OUT2&lt;br /&gt;
M90 OUT1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Gcode_foursidedfigure.gif|thumb|right|Four-sided figure using linear moves and arcs]]&lt;br /&gt;
&lt;br /&gt;
In the example above, the first command indicates that incremental motion will be used to execute the commands that follow. Output 1 and output 2 are turned on. Then, a linear move brings the Z axis to a position that is 0.5 units away in a negative direction from its current position. A linear cut is made when the Y axis moves 2 units in a positive direction away from its current position. Next, a clockwise arc is made along the XY plane. When making this arc, the X axis moves to a position that is 1 unit away in a positive direction from its current position, and the Y axis moves to a position that is 1 unit away in a positive direction from its current position. The X and Y axes move clockwise around a center point that is 1 unit away in a positive direction along the X axis and is equal to the current position of the Y axis.&lt;br /&gt;
&lt;br /&gt;
After the arc is executed, a linear cut is made along the X axis to a position that is 3 units away in a positive direction from its current position. Then, another clockwise arc is executed in the XY plane. To make this arc, the X axis moves 1 unit away in a positive&lt;br /&gt;
direction and the Y axis moves 1 unit away in a negative direction from their current positions. The X and Y axes move clockwise around a center point that is equal to the current position of the X axis and is 1 unit away in a negative direction along the Y axis from its current position. A linear cutting move then brings the Y axis to a position that is 2 units away in a negative direction from its current position.&lt;br /&gt;
&lt;br /&gt;
For the next arc, which is also made in the XY plane, the X axis moves 1 unit in a negative direction, and the Y axis moves 1 unit in a negative direction from their current positions. The X and Y axes move clockwise around a center point that is 1 unit away in a negative direction along the X axis and is equal to the current position of the Y axis. Then, a linear cutting move is executed, bringing the X axis to a position that is 3 units away in a negative direction from its current position.&lt;br /&gt;
&lt;br /&gt;
The final arc connects the last linear cut made along the XY axis with the first linear cut. This arc, also a clockwise arc in the XY plane, is created when the X axis moves 1 unit in a negative direction and the Y axis moves 1 unit in a positive direction from their current positions. The X and Y axes move clockwise around a center point that is equal to the current position of the X axis and is 1 unit away in a positive direction along the Y axis. After the arc is completed, the Z axis rapids to a position that is .5 unit away in a positive direction from its current position. Finally, output 2 and then&lt;br /&gt;
output 1 are turned off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Catetory:Manual]]&lt;/div&gt;</summary>
		<author><name>Jbeck</name></author>	</entry>

	</feed>