<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SoftMotion, accessing PDO input data via object ref/pointer</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2f638824b0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2f638824b0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/2f638824b0/</id><updated>2025-10-29T02:48:21.920000Z</updated><subtitle>Recent posts to SoftMotion, accessing PDO input data via object ref/pointer</subtitle><entry><title>SoftMotion, accessing PDO input data via object ref/pointer</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2f638824b0/?limit=250#20e4" rel="alternate"/><published>2025-10-29T02:48:21.920000Z</published><updated>2025-10-29T02:48:21.920000Z</updated><author><name>kporter</name><uri>https://forge.codesys.com/u/kporter/</uri></author><id>https://forge.codesys.comddb93dbf355a64f2b6c33f1fd56e4727afb32290</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It looks like one can use the OutputData and InputData members of ETCSlaveStack:&lt;br/&gt;
&lt;a href="https://content.helpme-codesys.com/en/libs/EtherCATStack/4.2.0.0/EtherCATStack/ETCSlaveStack.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/libs/EtherCATStack/4.2.0.0/EtherCATStack/ETCSlaveStack.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion, accessing PDO input data via object ref/pointer</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2f638824b0/?limit=250#bdf8" rel="alternate"/><published>2025-10-29T00:31:38.477000Z</published><updated>2025-10-29T00:31:38.477000Z</updated><author><name>kporter</name><uri>https://forge.codesys.com/u/kporter/</uri></author><id>https://forge.codesys.com90058d5351c105e6661161826979d619e50e11e7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Now that SP21 is out, what's the answer? I want to get a pointer to the TxPDO and RxPDO structs. I can generate a STRUCT declaration from the ESI file with a bit of Python. I just need to get the pointer from the ETC_Slave.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion, accessing PDO input data via object ref/pointer</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2f638824b0/?limit=25#7167" rel="alternate"/><published>2020-02-27T13:48:07.126000Z</published><updated>2020-02-27T13:48:07.126000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.com50f1c1f9659e1bd0fbb5eae5393c60285fa4b7ab</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;singleton hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
you can access through IoConfig_Globals:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;IoConfig_Globals&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;YourDriveName&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Paramter&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Thanks for the reply, but that doesn't work because the ETCSlave object (which the drive uses) does not contain properties for the information I want to access.&lt;/p&gt;
&lt;p&gt;Edit:&lt;br/&gt;
I have now received answer from Codesys Support that this will be doable in v3.5 SP7, will have to use I/O-mapping until then.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion, accessing PDO input data via object ref/pointer</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2f638824b0/?limit=25#a842" rel="alternate"/><published>2020-02-27T13:48:07.048000Z</published><updated>2020-02-27T13:48:07.048000Z</updated><author><name>singleton</name><uri>https://forge.codesys.com/u/singleton/</uri></author><id>https://forge.codesys.comaa918c8b148a41b490bbefe6c59719f3d99bc9cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
you can access through IoConfig_Globals:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;IoConfig_Globals&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;YourDriveName&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;Paramter&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>SoftMotion, accessing PDO input data via object ref/pointer</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2f638824b0/?limit=25#ac41" rel="alternate"/><published>2020-02-27T13:48:06.976000Z</published><updated>2020-02-27T13:48:06.976000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.comc8488e41d8e5de2f07103153f107d21d37e31b43</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sent this to the the support email but I thought I was going to give the community a shot at it as well and maybe speed up the process.&lt;/p&gt;
&lt;p&gt;I want to know how I can access specific PDO data by code WITHOUT the need of mapping a variable to the EtherCAT I/O mapping. The reason for this is that since our users will be copy/pasting the objects when they multiply axes, I want to keep the required adjustments to a minimum.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Let's say we have this slave drive and motor object.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The slave drive has this PDO defined. In my case I'm interested in the Digital Inputs value read from16#60FD.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Now, I know that normally you would simply use the EtherCAT I/O Mapping tab and map a variable to the Digital Inputs, but this is exactly what I'm trying to avoid.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If I monitor Servo1, I can see that the data I want is actually available in Servo1.in.dwDigitalInputs which seems to update correctly. However, this structure is a local variable and can't be accessed from code, only from within the watch window.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;How can I access the data I need using either the motor object or its parent slave object (the L7NH drive)?&lt;br/&gt;
Please note that reading the data with extra SDO:s isn't an option. It's already transfered by the cyclic PDO and &lt;em&gt;should&lt;/em&gt; be available somehow &lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Any help appreciated, I'm really stuck on this one...&lt;/p&gt;
&lt;p&gt;Kim Hansen&lt;br/&gt;
Beijer Electronics Automation AB&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="http://i.imgur.com/Gzulrp0.png?1"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="http://i.imgur.com/D5EjoeD.png?1"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="http://i.imgur.com/pGe6omk.png?1"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>