<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Is there a pragma for init/instantiation of local variables in FB (like in Methods)</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9dc69bbdf8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9dc69bbdf8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/9dc69bbdf8/</id><updated>2024-11-05T17:52:40.988000Z</updated><subtitle>Recent posts to Is there a pragma for init/instantiation of local variables in FB (like in Methods)</subtitle><entry><title>Is there a pragma for init/instantiation of local variables in FB (like in Methods)</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9dc69bbdf8/?limit=25#9707" rel="alternate"/><published>2024-11-05T17:52:40.988000Z</published><updated>2024-11-05T17:52:40.988000Z</updated><author><name>pernockham</name><uri>https://forge.codesys.com/u/pernockham/</uri></author><id>https://forge.codesys.comc58b9c55c183b9796eda28cfbf5b262c8962f691</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Never seen VAR_TEMP before, but seems to be what I was looking for! Thank you!!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Is there a pragma for init/instantiation of local variables in FB (like in Methods)</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9dc69bbdf8/?limit=25#f7b2" rel="alternate"/><published>2024-11-05T13:55:13.190000Z</published><updated>2024-11-05T13:55:13.190000Z</updated><author><name>TimvH</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com2aa5f7f50dc61423bfe32064f60467b21bbbc34d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Do you mean VAR_TEMP?&lt;br/&gt;
&lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_vartypes_var_temp.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_vartypes_var_temp.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Is there a pragma for init/instantiation of local variables in FB (like in Methods)</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9dc69bbdf8/?limit=25#72fa" rel="alternate"/><published>2024-10-31T11:33:08.873000Z</published><updated>2024-10-31T11:33:08.873000Z</updated><author><name>pernockham</name><uri>https://forge.codesys.com/u/pernockham/</uri></author><id>https://forge.codesys.com3e6389191f5da9329111009874d7582b09652c2c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Im using a pointer as input for a FB and for convenience I like to use 'referenced' variable internally. &lt;/p&gt;
&lt;p&gt;In methods I like this setup which works because internal variables are instanced for each call. In a FB these variables are instance and initiated for the first call only. Is there a pragma/attribute available that changes this behaviour to mirror a 'method'-call?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>