<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to MC_Phasing accelerates forever in one direction</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/778652c55f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/778652c55f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/778652c55f/</id><updated>2023-07-21T20:15:20.952000Z</updated><subtitle>Recent posts to MC_Phasing accelerates forever in one direction</subtitle><entry><title>MC_Phasing accelerates forever in one direction</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/778652c55f/?limit=25#5fbb" rel="alternate"/><published>2023-07-21T20:15:20.952000Z</published><updated>2023-07-21T20:15:20.952000Z</updated><author><name>jmarshall9120</name><uri>https://forge.codesys.com/u/jmarshall9120/</uri></author><id>https://forge.codesys.com20d4caebab44a76fecf0a3acda97726ecb3ffd72</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;@gseidl  I tested the theory that &lt;code&gt;MC_Phasing&lt;/code&gt; creates a 1:1 gearing and sure enough that's what it does.  With that my understanding corrected on this, I was able to get phasing working.  Thanks. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MC_Phasing accelerates forever in one direction</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/778652c55f/?limit=25#7795" rel="alternate"/><published>2023-07-21T18:21:15.512000Z</published><updated>2023-07-21T18:21:15.512000Z</updated><author><name>jmarshall9120</name><uri>https://forge.codesys.com/u/jmarshall9120/</uri></author><id>https://forge.codesys.comcb8f1af70e9aedb21b5b007b8df72d359d09e9d2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi @gseidl,&lt;/p&gt;
&lt;p&gt;Thank you for the reply.  I have a few follow up questions&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;"Your idea with the virtual axis is good, however, as mentioned here &lt;span&gt;[0]&lt;/span&gt;, please use the virtual axis as the slave of MC_Phasing and the master of MC_GearIn."  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Is this not how I have it configured above?  I want to double check because as far as I'm seeing the picture above is doing this.  Am I missing something? &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;How is it that the Virtual Axis follows the Master if not GearedIn.  Is &lt;code&gt;MC_Phasing&lt;/code&gt; by itself supposed to create a 1:1 positional "GearIn" between master and slave? &lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</summary></entry><entry><title>MC_Phasing accelerates forever in one direction</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/778652c55f/?limit=25#96a0" rel="alternate"/><published>2023-07-21T12:46:14.042000Z</published><updated>2023-07-21T12:46:14.042000Z</updated><author><name>gseidel</name><uri>https://forge.codesys.com/u/gseidel/</uri></author><id>https://forge.codesys.com16c589cb79f5289095b1e22fd12860058eaaace5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi jmarshal9120,&lt;/p&gt;
&lt;p&gt;MC_Phasing cannot be used on the same master and slave as MC_GearIn.&lt;br/&gt;
Your idea with the virtual axis is good, however, as mentioned here &lt;span&gt;[0]&lt;/span&gt;, please use the virtual axis as the slave of MC_Phasing and the master of MC_GearIn.&lt;/p&gt;
&lt;p&gt;Two other points: you should only use one instance of MC_GearIn, and you need MC_Power for the virtual axis.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[0]&lt;/span&gt; &lt;a href="https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Movement/MasterSlave/MC_Phasing.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Movement/MasterSlave/MC_Phasing.html&lt;/a&gt;&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>MC_Phasing accelerates forever in one direction</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/778652c55f/?limit=25#5588" rel="alternate"/><published>2023-07-20T03:39:03.551000Z</published><updated>2023-07-20T03:39:03.551000Z</updated><author><name>jmarshall9120</name><uri>https://forge.codesys.com/u/jmarshall9120/</uri></author><id>https://forge.codesys.com86515ece3b68f8cb1d96e07e5789425c5cadda2a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a project set up as below.  I'm controlling it with visualizations.  The odd thing is that when I try to phase it starts accelerating and seems to continue to accelerate until I'm forced to halt the motor. &lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/PhasingDemoProgram.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;I've experimented with parameters such as:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;PhaseShift&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;21.00000&lt;/span&gt;
&lt;span class="n"&gt;Velocity&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;30.00000&lt;/span&gt;
&lt;span class="n"&gt;Acceleration&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;10.00000&lt;/span&gt;
&lt;span class="n"&gt;Deceleration&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;10.00000&lt;/span&gt;
&lt;span class="n"&gt;Jerk&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;100.00000&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;PhaseShift&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.00005&lt;/span&gt;
&lt;span class="n"&gt;Velocity&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.00005&lt;/span&gt;
&lt;span class="n"&gt;Acceleration&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;10.00000&lt;/span&gt;
&lt;span class="n"&gt;Deceleration&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;10.00000&lt;/span&gt;
&lt;span class="n"&gt;Jerk&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;100.00000&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;These parameters all give the same result.  The servo seems to accelerate at &lt;code&gt;10.0000&lt;/code&gt;, but accelerates until its wrecking effects and I have to halt it.   My GearIn is at a 1:48, if that matters. Note, I've also tried to put in negative shift, and it still accelerates int he positive direction.&lt;/p&gt;
&lt;p&gt;If I set up the phasing with a virtual axis in the middle (as is in the codesys docs) I get no phasing:&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/PhasingDemoProgram_VirtualAxis.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;I tried the same parameters here and got no phasing on the axis.&lt;/p&gt;
&lt;p&gt;Any idea what I might be doing wrong here?  Or does this seem like a bug? &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>