<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iQ-F</title>
	<atom:link href="https://adroitscada.com/category/knowledge-base/iq-f/feed/" rel="self" type="application/rss+xml" />
	<link>https://adroitscada.com</link>
	<description>Operational Technology Focused Products</description>
	<lastBuildDate>Tue, 21 Apr 2026 11:35:36 +0000</lastBuildDate>
	<language>en-ZA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>

<image>
	<url>https://adroitscada.com/wp-content/uploads/2021/06/cropped-Logo-32x32.png</url>
	<title>iQ-F</title>
	<link>https://adroitscada.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>iQ-F &#8211; Conversion between a single STRING and an array of WORD values</title>
		<link>https://adroitscada.com/iq-f-conversion-between-a-single-string-and-an-array-of-word-values/</link>
					<comments>https://adroitscada.com/iq-f-conversion-between-a-single-string-and-an-array-of-word-values/#respond</comments>
		
		<dc:creator><![CDATA[samanthab]]></dc:creator>
		<pubDate>Wed, 02 Oct 2024 13:06:05 +0000</pubDate>
				<category><![CDATA[iQ-F]]></category>
		<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[NEWS]]></category>
		<category><![CDATA[Adroit SCADA]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[function blocks]]></category>
		<category><![CDATA[GX Works3]]></category>
		<category><![CDATA[GX Works3 function blocks]]></category>
		<category><![CDATA[GX Works3 string functions]]></category>
		<category><![CDATA[iQ-F CPU]]></category>
		<category><![CDATA[Mitsubishi Electric]]></category>
		<category><![CDATA[Mitsubishi Electric PLC]]></category>
		<category><![CDATA[PLC programming]]></category>
		<category><![CDATA[PLC programming tips]]></category>
		<category><![CDATA[PLC string manipulation]]></category>
		<category><![CDATA[SCADA]]></category>
		<category><![CDATA[serial communication]]></category>
		<category><![CDATA[serial communication PLC]]></category>
		<category><![CDATA[string conversion]]></category>
		<category><![CDATA[string to word array conversion]]></category>
		<category><![CDATA[word array]]></category>
		<category><![CDATA[word array to string conversion]]></category>
		<guid isPermaLink="false">https://adroitscada.com/?p=38956</guid>

					<description><![CDATA[iQ-F &#8211; Conversion between a single STRING and an array of WORD values This article contains GX Works3 function blocks [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-uagb-container uagb-block-4cbcea43 alignfull uagb-is-root-container"><div class="uagb-container-inner-blocks-wrap">
<h2 class="wp-block-heading"><strong>iQ-F &#8211; Conversion between a single STRING and an array of WORD values</strong></h2>
</div></div>



<div class="wp-block-uagb-container uagb-block-dd63ae12 alignfull uagb-is-root-container"><div class="uagb-container-inner-blocks-wrap">
<ul class="wp-block-list">
<li><a>Function blocks</a></li>



<li><a>Conversion example</a></li>
</ul>



<p class="wp-block-paragraph">This article contains GX Works3 function blocks for the iQ-F CPU that allow the division of a single string into an array of WORD values and joining an array of WORD values into a single string.</p>



<h2 class="wp-block-heading" id="Function_blocks">Function blocks</h2>



<p class="wp-block-paragraph">These function blocks can be used to convert an array of numbers to one string with a specified separator or to convert a string with a specified separator to an array of numbers. An example of an application where this could be useful is exchanging multiple numerical values with another device over serial communication.</p>



<p class="wp-block-paragraph"><strong>a) Array to string conversion</strong></p>



<p class="wp-block-paragraph"><strong>&nbsp;</strong>This block takes all the WORD values specified by&nbsp;<em>wArray</em>&nbsp;(up to&nbsp;<em>wArrayLength</em>) and converts them to one string (sResult) containing the numbers separated by&nbsp;<em>sSeparator</em>.</p>



<figure class="wp-block-image"><img decoding="async" src="https://www.fasupportme.com/galleryDocuments/edbsn7dfa601e5225bac4c5a59877d2c0f01a5063f4657706b772e7187ef04dc8b868e24ca91e7281ca7803643a6d358085fd9105cf7c542bb4977195be2054d6331e?inline=true" alt=""/></figure>



<p class="wp-block-paragraph">Input:</p>



<p class="wp-block-paragraph"><em>bEnable</em>&#8211; signal to start the conversion&nbsp;&nbsp;[bit]<br><br><em>wArray</em>&#8211; array of numbers&nbsp;&nbsp;&nbsp;[Word [Signed](0..4)] <br><br><em>sSeparator</em>&#8211; separator of numbers in final string [String(32)]<br><br><em>wArrayLength</em>&#8211; length of wArray&nbsp;&nbsp;&nbsp;&nbsp;[Word[Signed]] (maximum value is 5 by default)</p>



<p class="wp-block-paragraph">Output:</p>



<p class="wp-block-paragraph"><em>sResult</em>&#8211; result string&nbsp;&nbsp;[String(68)]</p>



<p class="wp-block-paragraph"><strong>b) String to array conversion</strong></p>



<p class="wp-block-paragraph">This block takes the string specified by&nbsp;<em>sString</em>, searches it for separators based on&nbsp;<em>sSeparator</em>&nbsp;and divides the string into an array of WORD values (<em>wArrayOutput</em>).</p>



<figure class="wp-block-image"><img decoding="async" src="https://www.fasupportme.com/galleryDocuments/edbsn7dfa601e5225bac4c5a59877d2c0f01aa9e1389b0c3ac84c95dc14b7d5cd9d3e2af4aec2185bc0bc321405599c383f3b0c9e049549d5a45f120d489482f1417f?inline=true" alt="iQ-F"/></figure>



<p class="wp-block-paragraph">Input:</p>



<p class="wp-block-paragraph"><em>bEnable</em>&#8211; signal to start the conversion&nbsp;&nbsp;&nbsp;[bit]<br><br><em>sString</em>&#8211; string which will be converted&nbsp;&nbsp;&nbsp;[String(68)]<br><br><em>sSeparator</em>&#8211;&nbsp;&nbsp;separator of words in&nbsp;<em>sString</em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String(32)]</p>



<p class="wp-block-paragraph">Output:</p>



<p class="wp-block-paragraph"><em>wArrayOutput</em>&#8211;  array of numbers   [Word [Signed](0..4)]<br><br>In both cases, the size of the WORD arrays is 5; it is possible to change the sizes of the arrays by changing the local variables of the function blocks.<br><br>The same situation with the output string, which is a String(68) variable by default. You can change it if you need to have a longer string than (68).</p>



<h2 class="wp-block-heading" id="Conversion_example">Conversion example</h2>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="633" src="https://adroitscada.com/wp-content/uploads/2024/10/Conversion-example-1024x633.png" alt="iQ-F - Mitsubishi Electric" class="wp-image-38958" srcset="https://adroitscada.com/wp-content/uploads/2024/10/Conversion-example-1024x633.png 1024w, https://adroitscada.com/wp-content/uploads/2024/10/Conversion-example-600x371.png 600w, https://adroitscada.com/wp-content/uploads/2024/10/Conversion-example-300x185.png 300w, https://adroitscada.com/wp-content/uploads/2024/10/Conversion-example-768x474.png 768w, https://adroitscada.com/wp-content/uploads/2024/10/Conversion-example.png 1151w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div></div>



<div class="wp-block-uagb-container uagb-block-3e62bbda alignfull uagb-is-root-container"><div class="uagb-container-inner-blocks-wrap">
<p class="wp-block-paragraph">DOWNLOAD &#8211; <a href="https://adroitscada.com/download/string-to-array-and-array-to-string-conversion-function-blocks/" target="_blank" rel="noreferrer noopener">String to array and array to string conversion function blocks</a><br>Original article for more downloads &#8211; <a href="https://www.fasupportme.com/portal/en/kb/articles/iq-f-conversion-between-single-string-and-array-of-word-values">Article</a><br><br></p>
</div></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<div class="wp-block-uagb-container uagb-block-1760b6c8 alignfull uagb-is-root-container"><div class="uagb-container-inner-blocks-wrap">
<div class="wp-block-columns alignfull are-vertically-aligned-center is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:66.66%">
<h3 class="wp-block-heading has-text-align-left">Need the most open, advanced, and scalable industrial SCADA platform on the market? We Are Experts!</h3>
</div>



<div class="wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:33.33%">
<div class="wp-block-buttons is-horizontal is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-cbcdc57d wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link has-vivid-red-background-color has-background wp-element-button" href="https://adroitscada.com/contact/" style="border-radius:20px" target="_blank" rel="noreferrer noopener">Contact us</a></div>
</div>
</div>
</div>
</div></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<div class="wp-block-uagb-container uagb-block-41c9b45c alignfull uagb-is-root-container"><div class="uagb-container-inner-blocks-wrap">
<div class="wp-block-uagb-container uagb-block-0c971b73"></div>



<div class="wp-block-uagb-container uagb-block-f0d1b8c1">
<ul class="wp-block-social-links has-normal-icon-size has-ffffff-background-color has-background is-horizontal is-content-justification-center is-nowrap is-layout-flex wp-container-core-social-links-is-layout-a991b807 wp-block-social-links-is-layout-flex"><li class="wp-social-link wp-social-link-facebook wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://www.facebook.com/AdroitSA/" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"></path></svg><span class="wp-block-social-link-label screen-reader-text">Facebook</span></a></li>

<li class="wp-social-link wp-social-link-twitter wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://twitter.com/AdroitTechnolog" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"></path></svg><span class="wp-block-social-link-label screen-reader-text">Twitter</span></a></li>

<li class="wp-social-link wp-social-link-linkedin wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://www.linkedin.com/company/57733/admin/" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path></svg><span class="wp-block-social-link-label screen-reader-text">LinkedIn</span></a></li>

<li class="wp-social-link wp-social-link-pinterest wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://za.pinterest.com/adroittechi/" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"></path></svg><span class="wp-block-social-link-label screen-reader-text">Pinterest</span></a></li>

<li class="wp-social-link wp-social-link-youtube wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://www.youtube.com/c/AdroitTechnologies" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"></path></svg><span class="wp-block-social-link-label screen-reader-text">YouTube</span></a></li>

<li class="wp-social-link wp-social-link-instagram wp-block-social-link"><a rel="noopener nofollow" target="_blank" href="https://www.instagram.com/adroittechnologies_1/" class="wp-block-social-link-anchor"><svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"></path></svg><span class="wp-block-social-link-label screen-reader-text">Instagram</span></a></li></ul>
</div>



<div class="wp-block-uagb-container uagb-block-94ca70c4"></div>
</div></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
]]></content:encoded>
					
					<wfw:commentRss>https://adroitscada.com/iq-f-conversion-between-a-single-string-and-an-array-of-word-values/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
