<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to G-Code with M Code</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/be9bc2f2e1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/be9bc2f2e1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/be9bc2f2e1/</id><updated>2020-02-27T18:26:32.725000Z</updated><subtitle>Recent posts to G-Code with M Code</subtitle><entry><title>G-Code with M Code</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/be9bc2f2e1/?limit=25#320a" rel="alternate"/><published>2020-02-27T18:26:32.725000Z</published><updated>2020-02-27T18:26:32.725000Z</updated><author><name>jovan</name><uri>https://forge.codesys.com/u/jovan/</uri></author><id>https://forge.codesys.com815f98b043b0a589e04866fc7c90f4148326e0a2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
I have difficulities with combining G-Code and M-code.&lt;br/&gt;
&lt;strong&gt;For example:&lt;/strong&gt;&lt;br/&gt;
M127&lt;br/&gt;
M104 S205 T0 ; set temperature&lt;br/&gt;
G1 X0 Y0 Z5 F1000 ; lift nozzle &amp;lt;- &lt;br/&gt;
G21 ; set units to millimeters&lt;br/&gt;
G90 ; use absolute coordinates&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The following code works smoothly:&lt;/strong&gt;&lt;br/&gt;
G1 X0 Y0 Z5 F1000 ; lift nozzle &amp;lt;- &lt;br/&gt;
M127&lt;br/&gt;
M104 S205 T0 ; set temperature&lt;/p&gt;
&lt;p&gt;For some reason, if the G-Code starts with an M-command, the first next G-command causes a jerk on the machine.&lt;br/&gt;
If we remove the M-command from the beginning, the code causes no jerks on the machine.&lt;br/&gt;
What command should I use with SoftMotion, so we can avoid the problem?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>