<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to using ETCSlave as an FB's inout parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8b53910d31/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8b53910d31/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/8b53910d31/</id><updated>2020-02-27T14:01:16.639000Z</updated><subtitle>Recent posts to using ETCSlave as an FB's inout parameter</subtitle><entry><title>using ETCSlave as an FB's inout parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8b53910d31/?limit=25#de51" rel="alternate"/><published>2020-02-27T14:01:16.639000Z</published><updated>2020-02-27T14:01:16.639000Z</updated><author><name>alejho</name><uri>https://forge.codesys.com/u/alejho/</uri></author><id>https://forge.codesys.com2c8bea159e59101baee56a1e8acfc167bc7c6852</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your answer...of course it's what I tried to do!&lt;br/&gt;
The point is that if the slave has (suppose) a given ethercat i/o mapping:&lt;/p&gt;
&lt;p&gt;%QW0&lt;br/&gt;
%QW1&lt;br/&gt;
...&lt;br/&gt;
...&lt;br/&gt;
%IW0&lt;br/&gt;
%IW1&lt;/p&gt;
&lt;p&gt;It seems there's no way to access the i/o data of the ETCSlave passed as in/out parameter at the FB from inside the FB itself.&lt;/p&gt;
&lt;p&gt;It's not difficult to find a workaround for this...but I would like to create an FB that hide all the implementation details to the programmers that will use it in the future!&lt;br/&gt;
Thank you again!&lt;br/&gt;
Ciao!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>using ETCSlave as an FB's inout parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8b53910d31/?limit=25#73fb" rel="alternate"/><published>2020-02-27T14:01:15.788000Z</published><updated>2020-02-27T14:01:15.788000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.combe946bd2dc48a3f8552def75cac2c3017a205b00</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; rickj&lt;/p&gt;
&lt;p&gt;Define an input parameter (eg Slave)  of type ETCSlave.  he inside the FB you an access the ETCSlave instance using Slave.Parameter, Slave.Method(...), etc.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>using ETCSlave as an FB's inout parameter</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8b53910d31/?limit=25#3913" rel="alternate"/><published>2020-02-27T14:01:15.498000Z</published><updated>2020-02-27T14:01:15.498000Z</updated><author><name>alejho</name><uri>https://forge.codesys.com/u/alejho/</uri></author><id>https://forge.codesys.com4848111883bf7aa8d8d8e53a391458017e2f37b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
I imported the ESI file of my device (it's an inverter) in my project.&lt;br/&gt;
Automatically &lt;strong&gt;an ETCSlave instance was generated by the system&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;To manage this inverter &lt;strong&gt;I would like to create an FB that accept as inout the whole ETCSlave&lt;/strong&gt; but, internally in my FB, I don't know how to handle the in/out of my ETCSlave.&lt;/p&gt;
&lt;p&gt;I tried with the pointers to input/output data (".InputData" and ".OutputData") but it seems that I just have read access in this way (may be I'm wrong!) &lt;/p&gt;
&lt;p&gt;There is any way to do this?&lt;br/&gt;
Thank you in advance for any kind of help!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>