<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to EtherCAT - Force Control Word</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/1a10dc3ee4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/1a10dc3ee4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/1a10dc3ee4/</id><updated>2023-08-31T14:03:32.113000Z</updated><subtitle>Recent posts to EtherCAT - Force Control Word</subtitle><entry><title>EtherCAT - Force Control Word</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/1a10dc3ee4/?limit=25#e0b4" rel="alternate"/><published>2023-08-31T14:03:32.113000Z</published><updated>2023-08-31T14:03:32.113000Z</updated><author><name>fgarcia</name><uri>https://forge.codesys.com/u/felipemsgarcia/</uri></author><id>https://forge.codesys.com08eec08c5450389833af45b3be1f2ecc1e2dc83b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What worked for me:&lt;/p&gt;
&lt;p&gt;Use SMC_SetControllerMode and set the nControllerMode to SMC_nocontrol.&lt;/p&gt;
&lt;p&gt;With that, you can control the drive via Modes of Operation(16#6060) and Controlword(16#6040) directly.&lt;/p&gt;
&lt;p&gt;Hope that helps,&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>EtherCAT - Force Control Word</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/1a10dc3ee4/?limit=25#f120" rel="alternate"/><published>2023-08-03T00:39:55.243000Z</published><updated>2023-08-03T00:39:55.243000Z</updated><author><name>jmarshall9120</name><uri>https://forge.codesys.com/u/jmarshall9120/</uri></author><id>https://forge.codesys.com27a28206c0a8b84e72cc81cadf742aa4b9298faf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to force the &lt;code&gt;ControlWord&lt;/code&gt; for an EtherCAT drive as part of a troubleshooting strategy.  However, I can't get control of the &lt;code&gt;ControlWord&lt;/code&gt;.  The value I set is overridden.  I'm trying to place the value in several ways, however the values remain "0" in all these instances, and no change is detected in the status word:&lt;/p&gt;
&lt;p&gt;For this first one.  I've already forced the number "6".  I retyped 6 into "prepared" for the sake of the photo.  As you can see even though "6" has been forced it reads "0".  Also the StatusWord reads 624 but should read "0" for shutdown, if a "6" really ever leaves the drive.&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/SetDriveDevice.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;For this second one, I thought the SoftMotion axis might be overriding the device so I tried setting it there, but with the same result:&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/SetAxis.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;On a wild hair, I tried using an ST file, to access the setter for control word on the Axis.  There's some junk in the SS you can igonore because it took me a minute to figure it out.  Even though it says the &lt;code&gt;ControlWord&lt;/code&gt; is set to "6", you can see the &lt;code&gt;StatusWord&lt;/code&gt; is still "624" (not "0").  Checking back at interface for the Drive Device from the first picture also shows the setting is still a "0".  &lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/SetST.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;For my last trick I tried forcing in all three places at the same time, but to no avail.&lt;/p&gt;
&lt;p&gt;I should also mention, the only program I have running is the ST program shown above. &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>