<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / How to use Subsystem mask parameters in REXLANG FB?]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=414&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=414"/>
	<updated>2018-01-16T08:23:44Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=414</id>
	<entry>
		<title type="html"><![CDATA[Re: How to use Subsystem mask parameters in REXLANG FB?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1880#p1880"/>
		<content type="html"><![CDATA[<p>Thanks for the example, this solution should be working for my case as I do not need more than 16 strings.</p>]]></content>
		<author>
			<name><![CDATA[scoobsalamander]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=6</uri>
		</author>
		<updated>2018-01-16T08:23:44Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1880#p1880</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: How to use Subsystem mask parameters in REXLANG FB?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1879#p1879"/>
		<content type="html"><![CDATA[<p>Dear scoobsalamander,<br />I was able to replicate your problem. Our developers are investigating the root cause of it.</p><p>In the meantime, here is an <a href="https://www.rexcontrols.cz/forum/img/members/3/subsys_strings.zip" rel="nofollow">example on using string parameters from subsystem mask inside the REXLANG code</a> (without using the CNS function block). The CNS block is present in the example project but it is not used anywhere.</p><p>And thanks for spotting the copy-paste error in the documentation.</p><p>Let me know if this solves your needs.</p><p>Kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2018-01-16T07:56:28Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1879#p1879</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: How to use Subsystem mask parameters in REXLANG FB?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1874#p1874"/>
		<content type="html"><![CDATA[<p>...if I try the same with GetExtDouble() it is also working, I think there is something I&#039;m doing wrong with handling strings or maybe it is a bug?</p>]]></content>
		<author>
			<name><![CDATA[scoobsalamander]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=6</uri>
		</author>
		<updated>2018-01-14T10:26:00Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1874#p1874</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[How to use Subsystem mask parameters in REXLANG FB?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1873#p1873"/>
		<content type="html"><![CDATA[<p>I have assigned several Subsystem mask parameters (string) and now I want to use them inside a REXLANG function block which is inside the same subsystem.</p><p>What is the best way to do this?</p><br /><p>I wanted to use GetExtString together with a CNS FB but I have problems to use the string inside the REXLANG FB. If I send it straight to an output then it is working fine but if I assign it to a string variable I always get an error.</p><p>This is working fine :</p><div class="codebox"><pre><code>string output(0) dataOut;

long init(void)
{	
	return 0;
}

long main(void)
{
	dataOut = GetExtString(&quot;.CNS_IN1_name:sy&quot;);
	return 0;
}

long exit(void)
{	
	return 0;
}</code></pre></div><p>For the following code I always get the error <span style="color: blue">code -504:Invalid numeric address);</span></p><div class="codebox"><pre><code>string output(0) dataOut;

string tempString[20];

long init(void)
{	
	return 0;
}

long main(void)
{
	tempString = GetExtString(&quot;.CNS_IN1_name:sy&quot;);	
	dataOut = tempString;
	return 0;
}

long exit(void)
{	
	return 0;
}</code></pre></div><p>...and if I replace </p><div class="codebox"><pre><code>tempString = GetExtString(&quot;.CNS_IN1_name:sy&quot;);</code></pre></div><p>by</p><div class="codebox"><pre><code>tempString = &quot;testString&quot;;</code></pre></div><p>then it is working fine again.</p><p>BTW, I also think that the following is not correct inside the REXLANG docu. </p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/6/2018-01-13-22_32_41-REXLANG--User-programmable-block.png" alt="2018-01-13-22_32_41-REXLANG--User-programmable-block.png" /></span></p>]]></content>
		<author>
			<name><![CDATA[scoobsalamander]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=6</uri>
		</author>
		<updated>2018-01-13T21:34:42Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1873#p1873</id>
	</entry>
</feed>
