<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to FBlock instance on output</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7a765cba90/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7a765cba90/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/7a765cba90/</id><updated>2020-02-27T14:23:19.246000Z</updated><subtitle>Recent posts to FBlock instance on output</subtitle><entry><title>FBlock instance on output</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7a765cba90/?limit=25#6ad7" rel="alternate"/><published>2020-02-27T14:23:19.246000Z</published><updated>2020-02-27T14:23:19.246000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.coma14bc805bc79cbe12451d02434d0164c37b5572b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks Scott. I try that. But if I use this i Will use a copy of my instace, and if i Will use this^ i Will use an pointer. My idea was to use a "reference to" as an output, but Is not possible.&lt;/p&gt;
&lt;p&gt;I d like to use t'he same function like axes. I have seen that axes_ref is not an instance of the axes, is an intermediate classe beetwen the axes and t'he orders function blocs (mc move absolutes) i Will use t'he same method.&lt;/p&gt;
&lt;p&gt;Enviat des del meu bq Aquaris 5 usant Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>FBlock instance on output</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7a765cba90/?limit=25#8bc3" rel="alternate"/><published>2020-02-27T14:23:18.767000Z</published><updated>2020-02-27T14:23:18.767000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com28570fdf7071f68bfe89f214b42eaf7af0acecd6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;Look into using THIS keyword. You can define an output variable of type MyFunctionBlock and use THIS or THIS^ to supply your instance. I use something like this to add objects to a collection.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>FBlock instance on output</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7a765cba90/?limit=25#6bc0" rel="alternate"/><published>2020-02-27T14:23:17.587000Z</published><updated>2020-02-27T14:23:17.587000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.come69979ac4abc41e07a0f6d9983c44ffe72fb4c88</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dears.&lt;/p&gt;
&lt;p&gt;It is possible to declare, in a function block, an output which is the instance of the same function block.&lt;/p&gt;
&lt;p&gt;I' d like to use in my project  fucntion blocks orderers (like MC_MoveAbsolute) which accepts the instance of the object to be  ordered as an in_out (For example the ordered is the functionBlock Axis_ref_virtual and the orderer is the functionBlock MC_MoveAbsolute). &lt;/p&gt;
&lt;p&gt;But I'd dont like use global variables as an in_out to MC_MoveAbsolute (As axes are).&lt;/p&gt;
&lt;p&gt;I have made a fucntion block wich controls the movement of a pneumatic cillinder, I'd like that this function block gives an output as an one instance of himsrlf to be connected to the inout input of a functionBlock named FB_setCillinderIn, Because I d'ont like that the instance of the pneumatic cillinder be global.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>