<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/</id><updated>2023-03-27T04:31:46.507000Z</updated><subtitle>Recent posts to SoftMotion and Raspberry pi</subtitle><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#1688" rel="alternate"/><published>2023-03-27T04:31:46.507000Z</published><updated>2023-03-27T04:31:46.507000Z</updated><author><name>sukrit</name><uri>https://forge.codesys.com/u/sukrit/</uri></author><id>https://forge.codesys.comebe9776e3d9695e2851310bbf32633a958c1e550</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;We want to use code of &lt;strong&gt;MC_MoveAbsolute_SML&lt;/strong&gt; (from lib "&lt;strong&gt;SML_Basic, 4.11.0.0(3S- Smart Software Solutions GmbH&lt;/strong&gt;)") in our embedded Application.&lt;br/&gt;
Can anyone send me the &lt;strong&gt;code&lt;/strong&gt; and &lt;strong&gt;example&lt;/strong&gt; of this &lt;strong&gt;SML_Basic, 4.11.0.0(3S- Smart Software Solutions GmbH&lt;/strong&gt;.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#4dc4" rel="alternate"/><published>2023-02-08T09:04:50.267000Z</published><updated>2023-02-08T09:04:50.267000Z</updated><author><name>gseidel</name><uri>https://forge.codesys.com/u/gseidel/</uri></author><id>https://forge.codesys.com1c3c94848425ebeb7831aa3fe245262847fcf16c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;I would recommend to check the PLC log and amybe the drive itself what kind of error has occurred.&lt;/p&gt;
&lt;p&gt;You could also execute MC_ReadAxisError to read the drive specific error object. (You probably need the drive documentation to interpret the value.)&lt;/p&gt;
&lt;p&gt;And then you could use PLC controlled homing (SMC_Homing) instead of drive controlled homing (MC_Home) as a workaround.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#297d" rel="alternate"/><published>2023-02-07T14:30:34.182000Z</published><updated>2023-02-07T14:30:34.182000Z</updated><author><name>Peter.skokanek</name><uri>https://forge.codesys.com/u/peter-skokanek/</uri></author><id>https://forge.codesys.com8cebdb04b913966e492dccdf1d3722791999c979</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Georg,&lt;br/&gt;
I have been following your advice to use FB MC_Home. First I set all required objects ( homing method, speeds...). I is done in Startup parameters table. After initial phase is drive in pos mode 8. When I execute MC_Home, it immediately finished with Axis_IN_ERRORSTOP. Can you please give me tips what to check?&lt;br/&gt;
Peter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#3184" rel="alternate"/><published>2023-02-03T10:51:20.392000Z</published><updated>2023-02-03T10:51:20.392000Z</updated><author><name>gseidel</name><uri>https://forge.codesys.com/u/gseidel/</uri></author><id>https://forge.codesys.com0e8254c735dd504c6005a3d5e2466fb2ef307a83</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Peter,&lt;br/&gt;
glad it works now!&lt;br/&gt;
Regarding homing, I cannot help you with homing using a different EtherCAT stack. Just a general remark: it is important to set the "homing method" (object 0x6098) before homing.&lt;/p&gt;
&lt;p&gt;Regarding homing using SoftMotion: the function block MC_Home performs the homing procedure, including setting the mode of operation to 6.&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#9b8a" rel="alternate"/><published>2023-02-03T08:19:21.258000Z</published><updated>2023-02-03T08:19:21.258000Z</updated><author><name>Peter.skokanek</name><uri>https://forge.codesys.com/u/peter-skokanek/</uri></author><id>https://forge.codesys.come420da1f2fb285a0e07ffa665aafa8dd9776cec0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Georg,&lt;br/&gt;
I am back after longer time, thank for previous advice. Basicaly, everything work ok. It was necessery to disable drive first and then to change OP mode. &lt;br/&gt;
        My customer ask me to help him with homing. He is using his own ethercat master. He has written all required values by SDO to drive (homing method, speeds...) and write value 6 (homing OP mode) to 6060. After setting control word to start homing, it works correctly, after releasing home switch it changes direction, but not changes speed. I am sure it must be somethig drive specific, but I am not able to simulate it in codesys. smc_setcontrollermode doesn't support operational mode homing. If I am trying to change OP mode directly, by writing new value to object 6060, it still remains on default value 8. It is rewrited by codesys on background. My question is: Is there any way to control my drive directly by writing required values to 6060 ( switch off that rewriting on background)?&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#5ac1" rel="alternate"/><published>2023-02-03T08:19:20.349000Z</published><updated>2023-02-03T08:19:20.349000Z</updated><author><name>Peter.skokanek</name><uri>https://forge.codesys.com/u/peter-skokanek/</uri></author><id>https://forge.codesys.com8308de74b6aa25fa6b271132b5c7c21ff0e8c948</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Georg,&lt;br/&gt;
I am back after longer time, thank for previous advice. Basicaly, everything work ok. It was necessery to disable drive first and then to change OP mode. &lt;br/&gt;
        My customer ask me to help him with homing. He is using his own ethercat master. He has written all required values by SDO to drive (homing method, speeds...) and write value 6 (homing OP mode) to 6060. After setting control word to start homing, it works correctly, after releasing home switch it changes direction, but not changes speed. I am sure it must be somethig drive specific, but I am not able to simulate it in codesys. smc_setcontrollermode doesn't support operational mode homing. If I am trying to change OP mode directly, by writing new value to object 6060, it still remains on default value 8. It is rewrited by codesys on background. My question is: Is there any way to control my drive directly by writing required values to 6060 ( switch off that rewriting on background)?&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#147e" rel="alternate"/><published>2023-02-03T08:19:16.333000Z</published><updated>2023-02-03T08:19:16.333000Z</updated><author><name>Peter.skokanek</name><uri>https://forge.codesys.com/u/peter-skokanek/</uri></author><id>https://forge.codesys.com30a3f52ba6eafe2f24d36d8cc72a91c6bd4115d0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Georg,&lt;br/&gt;
I am back after longer time, thank for previous advice. Basicaly, everything work ok. It was necessery to disable drive first and then to change OP mode. &lt;br/&gt;
        My customer ask me to help him with homing. He is using his own ethercat master. He has written all required values by SDO to drive (homing method, speeds...) and write value 6 (homing OP mode) to 6060. After setting control word to start homing, it works correctly, after releasing home switch it changes direction, but not changes speed. I am sure it must be somethig drive specific, but I am not able to simulate it in codesys. smc_setcontrollermode doesn't support operational mode homing. If I am trying to change OP mode directly, by writing new value to object 6060, it still remains on default value 8. It is rewrited by codesys on background. My question is: Is there any way to control my drive directly by writing required values to 6060 ( switch off that rewriting on background)?&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#d7c6" rel="alternate"/><published>2023-02-03T08:19:14.455000Z</published><updated>2023-02-03T08:19:14.455000Z</updated><author><name>Peter.skokanek</name><uri>https://forge.codesys.com/u/peter-skokanek/</uri></author><id>https://forge.codesys.comc73a20bb77527ea4fa841fd874054688a725e9b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Georg,&lt;br/&gt;
I am back after longer time, thank for previous advice. Basicaly, everything work ok. It was necessery to disable drive first and then to change OP mode. &lt;br/&gt;
        My customer ask me to help him with homing. He is using his own ethercat master. He has written all required values by SDO to drive (homing method, speeds...) and write value 6 (homing OP mode) to 6060. After setting control word to start homing, it works correctly, after releasing home switch it changes direction, but not changes speed. I am sure it must be somethig drive specific, but I am not able to simulate it in codesys. smc_setcontrollermode doesn't support operational mode homing. If I am trying to change OP mode directly, by writing new value to object 6060, it still remains on default value 8. It is rewrited by codesys on background. My question is: Is there any way to control my drive directly by writing required values to 6060 ( switch off that rewriting on background)?&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#4f0d" rel="alternate"/><published>2023-01-10T13:56:32.127000Z</published><updated>2023-01-10T13:56:32.127000Z</updated><author><name>gseidel</name><uri>https://forge.codesys.com/u/gseidel/</uri></author><id>https://forge.codesys.com0327497c3bf4a0dd013ddd4c0db441663152b401</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;so the drive somehow will not switch from mode of operation 10 (cyclic sync torque mode) to 8 (cyclic sync position mode).&lt;/p&gt;
&lt;p&gt;Maybe there is a limitation in the drive? E.g. some servo drives can switch the mode of operation only if they are not enabled ...&lt;/p&gt;
&lt;p&gt;Another thing to try is to &lt;em&gt;not&lt;/em&gt; map 6060 and 6061 by PDO. SMC_SetControllerMode will then write them by SDO. This should not make a big difference, but maybe the drive reacts differently.&lt;/p&gt;
&lt;p&gt;Georg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SoftMotion and Raspberry pi</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/02fbfd3cfb/?limit=25#a2fa" rel="alternate"/><published>2023-01-10T13:38:16.923000Z</published><updated>2023-01-10T13:38:16.923000Z</updated><author><name>Peter.skokanek</name><uri>https://forge.codesys.com/u/peter-skokanek/</uri></author><id>https://forge.codesys.comc04517bd5a3a444c71e5c980847ab357526d3e61</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please, see attached files. You can see, that after writing required possition mode to smc_setcontrollermode, vallue 0x6060 is 8, but 0x6060 is remaining at 10 and. bDone of smc_setcontrollermode is false, bError is true. No other Error in PLC is not reported.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>