<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to MC_HOME returns error</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/a25f4b0941/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/a25f4b0941/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/a25f4b0941/</id><updated>2020-02-27T18:41:01.998000Z</updated><subtitle>Recent posts to MC_HOME returns error</subtitle><entry><title>MC_HOME returns error</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/a25f4b0941/?limit=25#cb16" rel="alternate"/><published>2020-02-27T18:41:01.998000Z</published><updated>2020-02-27T18:41:01.998000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.comce881e0a556f639cd2fdb5dc35c5d7bdb5a9e25f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, you should make use of the function block SMC3_ETC_WriteParameter_CoE if you want to write directly to 0x6098.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MC_HOME returns error</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/a25f4b0941/?limit=25#9cc1" rel="alternate"/><published>2020-02-27T18:40:58.774000Z</published><updated>2020-02-27T18:40:58.774000Z</updated><author><name>hantin89</name><uri>https://forge.codesys.com/u/hantin89/</uri></author><id>https://forge.codesys.com7a63a388edee8ae8f4cd13a1c42d2e4e0f0efcd6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;how to set home method (0x6098) for CiA402 softmotion axis ? &lt;br/&gt;
because MC_HOME don't have option to set homing method and pdo mapping is available.&lt;br/&gt;
possible to sdo write?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MC_HOME returns error</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/a25f4b0941/?limit=25#d457" rel="alternate"/><published>2020-02-27T18:40:57.632000Z</published><updated>2020-02-27T18:40:57.632000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.comb3769e50422a2d9983c7a1870279887644e5a942</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In case anyone comes here in search for an answer, here is the excellent reply that I received from Codesys.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
For modulo axes, MC_Home will not set the home offset (0x607C) to absolute zero but to the beginning of the current modulo period. This is a value close to the actual position (between actual position and actual position minus the modulo period in increments).&lt;br/&gt;
So, if the drive does not accept high values in 0x607C for some reason, it can be expected that this error ('Drive doesn't accept value') may occur also when calling MC_Home with Position=0.&lt;br/&gt;
One line of inquiry would be why the drive does not accept high values for 0x607C. Maybe it is possible to configure the drive in a different way? Maybe there is a firmware update to fix this limitation?&lt;br/&gt;
Another possible workaround would be to not use MC_Home but MC_SetPosition. It depends on the application whether this is feasible.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In our case it was the drive that didn't accept high values in 0x607C and we have forwarded the issue to the supplier.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MC_HOME returns error</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/a25f4b0941/?limit=25#56ca" rel="alternate"/><published>2020-02-27T18:40:56.491000Z</published><updated>2020-02-27T18:40:56.491000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.com32a4b526f9df08236f9cddc928ca7d4bb66451db</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In a bit of a hurry since our customer is about to ship the machine to the end customer.&lt;/p&gt;
&lt;p&gt;Codesys Runtime v3.5.7.10, EtherCAT Master (SoftMotion) v3.5.7.30, Generic CiA driver axis v3.5.7.0&lt;/p&gt;
&lt;p&gt;The axis is configured as a modulo with rollover 360.0, it uses the following scaling:&lt;br/&gt;
524288 increments = 1 motor turn.&lt;br/&gt;
30 motor turns = 1 gear output turn.&lt;br/&gt;
1 gear output turn = 90 units in application (degrees)&lt;br/&gt;
Hence, 1 motor turn = 3 degrees.&lt;/p&gt;
&lt;p&gt;Homing seems to work well most of the times BUT I have issues when reaching higher position values from the encoder.&lt;/p&gt;
&lt;p&gt;We run continously in the same direction for quite a while, stop, then try to execute MC_Home with Home Position 0 (homing in the drive is set to method 35 = Sets the current position as the origin).&lt;br/&gt;
Latest error occured is 'Drive doesn't accept value'.&lt;br/&gt;
The MC_HOME block itself returns SMC_H_AXIS_DIDNT_START_HOMING.&lt;br/&gt;
I've encountered the same error before, but those times it was due to providing MC_HOME with a too large value in the Home Position causing 0x607C Home Offset to become out of range. The value 0 should not be a problem so it must be something else.&lt;/p&gt;
&lt;p&gt;Some information:&lt;br/&gt;
0x2067 Single turn data = 290563&lt;br/&gt;
0x206A Multi turn data = 27659&lt;/p&gt;
&lt;p&gt;0x6064 Actual position = 1616380472&lt;br/&gt;
0x607C Home Offset = 0&lt;/p&gt;
&lt;p&gt;I tested the same thing in Codesys runtime v3.5.3.30, it returned the same error.&lt;/p&gt;
&lt;p&gt;Since the code for MC_HOME is within the compiled library SM3_Basic, I can't troubleshoot it further.&lt;br/&gt;
Any ideas or suggestions on how to fix/workaround this, it would be very much appreciated!&lt;/p&gt;
&lt;p&gt;Kim Hansen&lt;br/&gt;
Beijer Electronics Automation AB&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>