<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Axis EtherCAT address</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/226a3ef6a0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/226a3ef6a0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/226a3ef6a0/</id><updated>2025-03-07T14:19:01.523000Z</updated><subtitle>Recent posts to Axis EtherCAT address</subtitle><entry><title>Axis EtherCAT address</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/226a3ef6a0/?limit=25#172d/e068" rel="alternate"/><published>2025-03-07T14:19:01.523000Z</published><updated>2025-03-07T14:19:01.523000Z</updated><author><name>fgarcia</name><uri>https://forge.codesys.com/u/felipemsgarcia/</uri></author><id>https://forge.codesys.com93d3b6144387885ed97dc878b6c67b910545f22d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;I'm afraid I was not clear on what I was trying to achieve.&lt;/p&gt;
&lt;p&gt;I'm trying to change parameters and command axes from inside a function block and the first thing that came to my mind was pass both the EtherCAT slave and axis to the function block (as image attached). But, I believe it's worse than just pass directly the EtherCAT slave address to the function block (is it???). However I was wondering if there was a way to get the EtherCAT address directly from the axis, so I don't need to pass the EtherCAT slave nor the EtherCAT address to the function block.&lt;/p&gt;
&lt;p&gt;Thank you again!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Axis EtherCAT address</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/226a3ef6a0/?limit=25#172d" rel="alternate"/><published>2025-03-07T10:57:06.756000Z</published><updated>2025-03-07T10:57:06.756000Z</updated><author><name>ph0010421</name><uri>https://forge.codesys.com/u/ph0010421/</uri></author><id>https://forge.codesys.com605be4c9a0eaa07cde7263974e13a67237329981</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;br/&gt;
SDO will write to the drive, not the axis, so you need to pass in the etherct slave:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;VAR_IN_OUT&lt;br/&gt;
    Axis: IoDrvEthercatLib.ETCSlave;&lt;br/&gt;
END_VAR&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Then you can get the address with:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Axis.PhysSlaveAddr&lt;/strong&gt; (as UINT)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Axis EtherCAT address</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/226a3ef6a0/?limit=25#d2ba" rel="alternate"/><published>2025-03-06T19:26:45.255000Z</published><updated>2025-03-06T19:26:45.255000Z</updated><author><name>fgarcia</name><uri>https://forge.codesys.com/u/felipemsgarcia/</uri></author><id>https://forge.codesys.com14f8df442634c0aee98a96cce5d9780162f7f7f2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'd like to write some parameters to axes from inside a function block where I passed axis by reference, using ETC_CO_SdoWrite. Is it possible to get the device address from inside the function block?&lt;/p&gt;
&lt;p&gt;Please see example below.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>