<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to VAR_OUTPUT</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/fe128cb549/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/fe128cb549/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/fe128cb549/</id><updated>2020-02-27T21:40:16.903000Z</updated><subtitle>Recent posts to VAR_OUTPUT</subtitle><entry><title>VAR_OUTPUT</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/fe128cb549/?limit=25#851a" rel="alternate"/><published>2020-02-27T21:40:16.903000Z</published><updated>2020-02-27T21:40:16.903000Z</updated><author><name>Joan M</name><uri>https://forge.codesys.com/u/joan-m/</uri></author><id>https://forge.codesys.com87adc9ddeccbce0d3d5f213426b9c2c036691b40</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You've answered yourself in the subject of your question...&lt;/p&gt;
&lt;p&gt;From the external part of the code you can write something like yourfunctionblockInstance.YourArray to access the array freely.&lt;/p&gt;
&lt;p&gt;If the array declaration is in the normal var or var_output areas you'll not be able to modify it from outside (which is always a good thing regarding design and peace of mind when you are programming).&lt;br/&gt;
If you want to modify that array from outside you have to declare it in the VAR_INPUT area.&lt;/p&gt;
&lt;p&gt;Of course another approach would be using a pointer and pointer arithmetics to find the next positions of the array like you'd do in any high level language.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>VAR_OUTPUT</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/fe128cb549/?limit=25#5615" rel="alternate"/><published>2020-02-27T21:40:15.396000Z</published><updated>2020-02-27T21:40:15.396000Z</updated><author><name>Eager</name><uri>https://forge.codesys.com/u/eager/</uri></author><id>https://forge.codesys.comcddb152a2d9a79d44cdcbd412cbdef828893b39b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I made a FB type and do some calculation on some array inside the FB.&lt;br/&gt;
I would like to expose this array to the "parent" POU.&lt;br/&gt;
Currently the array is defined inside a VAR block (like MyArray:ARRAY&lt;span&gt;[0..99]&lt;/span&gt; OF WORD)).&lt;br/&gt;
Is it possible to make this variable visible from outside by some attribute or something similar?&lt;br/&gt;
Alternatively, can a pointer to an array defined outside the FB be used instead of a local variable?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>