<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to AXIS Rollover</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/c513b58988/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/c513b58988/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/c513b58988/</id><updated>2025-03-12T18:06:05.244000Z</updated><subtitle>Recent posts to AXIS Rollover</subtitle><entry><title>AXIS Rollover</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/c513b58988/?limit=25#70cc" rel="alternate"/><published>2025-03-12T18:06:05.244000Z</published><updated>2025-03-12T18:06:05.244000Z</updated><author><name>trusty-squire</name><uri>https://forge.codesys.com/u/trusty-squire/</uri></author><id>https://forge.codesys.com0e027a5d6ed30d0e4d22927edb6e1f0c84a61ac2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In that case, the best thing to do might be to track the offset in a separate variable of your logic, then when you provide target positions, make your target position use the tracked offset as below:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nv"&gt;ActualTargetPosition&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;TargetPosition&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;MyOffset&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;MOD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;360&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>AXIS Rollover</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/c513b58988/?limit=25#56de" rel="alternate"/><published>2025-03-12T07:19:02.487000Z</published><updated>2025-03-12T07:19:02.487000Z</updated><author><name>konstantinoskr</name><uri>https://forge.codesys.com/u/konstantinoskr/</uri></author><id>https://forge.codesys.comd799365f43059c678a7048f196fdb9feffeddc12</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The MC_Home or MC_SetPosition requires a programm cycle to be completed. In my application the speed is approximately 120m/min and the programm cycle is 2ms. That means that i will have a 4mm loss on each Trigger of either MC_Home or MC_SetPosition. &lt;/p&gt;
&lt;p&gt;The best option is to change the value defined in the axis configuration. I tried the SMC_SetMovementType but it only works with the axis standstill or powered off. I need to be able to change it while the axis is moving.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>AXIS Rollover</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/c513b58988/?limit=25#8594" rel="alternate"/><published>2025-03-11T21:53:03.274000Z</published><updated>2025-03-11T21:53:03.274000Z</updated><author><name>trusty-squire</name><uri>https://forge.codesys.com/u/trusty-squire/</uri></author><id>https://forge.codesys.com2e3f94d1a1dd9911e03d0204ecaa93aa07400411</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If you mean you want to shift the Origin or Zero position of your axis, you can try MC_SetPosition and set the position to 0. This means the servo drive keeps it's current origin position, and Codesys applies an offset to the servo drive position in the logic.&lt;/p&gt;
&lt;p&gt;You can also use the homing function of your servo drive using MC_Home and have your drive configured to set the current position as origin when it receives a homing command. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>AXIS Rollover</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/c513b58988/?limit=25#c529" rel="alternate"/><published>2025-03-11T19:13:58.031000Z</published><updated>2025-03-11T19:13:58.031000Z</updated><author><name>konstantinoskr</name><uri>https://forge.codesys.com/u/konstantinoskr/</uri></author><id>https://forge.codesys.come33be5fbf7a76a87e007c7570e5def252513f224</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have an application with 2 axis. The master axis will be configured as Modulo. During motion i want to be able to change the rollover position if required. How is it possible to do this?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>