<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Why don't use variables in G-code?</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/b1b1991969/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/b1b1991969/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/b1b1991969/</id><updated>2020-02-27T18:40:43.826000Z</updated><subtitle>Recent posts to Why don't use variables in G-code?</subtitle><entry><title>Why don't use variables in G-code?</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/b1b1991969/?limit=25#f39b" rel="alternate"/><published>2020-02-27T18:40:43.826000Z</published><updated>2020-02-27T18:40:43.826000Z</updated><author><name>eeleader</name><uri>https://forge.codesys.com/u/eeleader/</uri></author><id>https://forge.codesys.com9cbd52fc1a6f14a964c12cc6c5b0fa6786e88008</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
see screenshot...&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;oh, I see&lt;br/&gt;
The variable is showed by CNC's offline variable&lt;br/&gt;
But I have question, I set initial value in globe &lt;br/&gt;
see my screenshot ...however cnc's variable must be set value again...&lt;br/&gt;
    g_x: REAL:=100;&lt;br/&gt;
    g_y:REAL:=50;&lt;br/&gt;
why don't automatically set value to cnc's offline variable form globe ...?&lt;br/&gt;
please help me ..&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 2018" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4222"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Why don't use variables in G-code?</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/b1b1991969/?limit=25#2486" rel="alternate"/><published>2020-02-27T18:40:42.664000Z</published><updated>2020-02-27T18:40:42.664000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comf442e4f914763311f2eb45f72e3ee5477640b939</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
see screenshot...&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: GCODEVars.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4221"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Why don't use variables in G-code?</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/b1b1991969/?limit=25#18a5" rel="alternate"/><published>2020-02-27T18:40:39.382000Z</published><updated>2020-02-27T18:40:39.382000Z</updated><author><name>eeleader</name><uri>https://forge.codesys.com/u/eeleader/</uri></author><id>https://forge.codesys.comac7458f9616b3986a17a91114bcefd97513a675e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have some problem, I use the SMC_CNC_REF in my cnc compile mode&lt;/p&gt;
&lt;p&gt;and I try to key the G code to CNC editor&lt;br/&gt;
N0 G01 X$GVL.g_x$ Y0 F50 E30 E-30&lt;br/&gt;
N10 G01 X0 Y$GVL.g_y$&lt;br/&gt;
N20 G01 X0 Y0&lt;/p&gt;
&lt;p&gt;but compile occur some error massage, It's called &lt;/p&gt;
&lt;p&gt;but in my globe list, I declare two var ...&lt;/p&gt;
&lt;p&gt;please help me to solve the problem&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="https://imgur.com/jAq4Ltk"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="https://imgur.com/Asisfb3"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="https://imgur.com/kPqmyfr"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 2018" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4213"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 2018" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4212"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 2018" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4211"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>