<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Global variables]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=150&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=150"/>
	<updated>2016-05-20T13:47:25Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=150</id>
	<entry>
		<title type="html"><![CDATA[Re: Global variables]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=657#p657"/>
		<content type="html"><![CDATA[<p>Jaroslav, it does indeed help. Thank you very much</p>]]></content>
		<author>
			<name><![CDATA[ad_t]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=71</uri>
		</author>
		<updated>2016-05-20T13:47:25Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=657#p657</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Global variables]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=656#p656"/>
		<content type="html"><![CDATA[<p>Dear Adam,<br />thanks for your question. The philosophy of the REX Control System is a bit different. </p><p>If you just need to use the value from previous iteration, then simply feed the signal back and use the <a href="https://www.rexcontrols.com/media/HTML/DOC/ENGLISH/LPBRK.html" rel="nofollow">LPBRK block</a>. The following will increment the value by 1 in each cycle:<br /><a href="https://www.rexcontrols.cz/forum/img/members/3/global_variables.png" rel="nofollow"><span class="postimg"><img src="https://www.rexcontrols.cz/forum/img/members/3/mini_global_variables.png" alt="mini_global_variables.png" /></span></a></p><p>If you need to store some value for longer than 1 period of the task, you can use the <a href="https://www.rexcontrols.com/media/HTML/DOC/ENGLISH/SHLD.html" rel="nofollow">SHLD function block</a>.</p><p>As for connecting tasks, this is done using the <a href="https://www.rexcontrols.com/media/HTML/DOC/ENGLISH/Inport.html" rel="nofollow">Outport and Inport function blocks</a>, whose names correspond to each other:<br /><a href="https://www.rexcontrols.cz/forum/img/members/3/connecting_tasks.jpg" rel="nofollow"><span class="postimg"><img src="https://www.rexcontrols.cz/forum/img/members/3/mini_connecting_tasks.jpg" alt="mini_connecting_tasks.jpg" /></span></a></p><p>Hope this helps!</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2016-05-20T11:51:29Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=656#p656</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Global variables]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=654#p654"/>
		<content type="html"><![CDATA[<p>Hello all,</p><p>I need to store a calculated value in a task between iterations, and also be able to read that value between tasks. Is there a block or blocks that will allow me to do this; data stored to RAM and not using SGSLP (to minimise sd card writes), and also ideally without using a external database?</p><p>Thannks in advance,</p><p>Adam</p>]]></content>
		<author>
			<name><![CDATA[ad_t]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=71</uri>
		</author>
		<updated>2016-05-19T18:51:56Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=654#p654</id>
	</entry>
</feed>
