<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Cycle Task of a SoftMotion Axis</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d69a7f9447/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/d69a7f9447/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/d69a7f9447/</id><updated>2020-12-14T16:49:21.753000Z</updated><subtitle>Recent posts to Cycle Task of a SoftMotion Axis</subtitle><entry><title>Cycle Task of a SoftMotion Axis</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d69a7f9447/?limit=25#e22b" rel="alternate"/><published>2020-12-14T16:49:21.753000Z</published><updated>2020-12-14T16:49:21.753000Z</updated><author><name>mike-at-gms</name><uri>https://forge.codesys.com/u/mike-at-gms/</uri></author><id>https://forge.codesys.com7d17e55b8db7b17f569f89a30089d8a347956235</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
I have been looking around the forum but I am not finding what I am looking for.&lt;/p&gt;
&lt;p&gt;I have a motion project using virtual axes objects linked to real axis objects. The motion is working fine but I had a problem with objects on different cycles.&lt;/p&gt;
&lt;p&gt;I had my axis object setup to 'Use parent bus cycle' but my EtherCat Master was set to 'MainTask'. This caused my motion FB's to abort. I went through and changed all by axes to use 'MainTask' and this fixed my errors.&lt;/p&gt;
&lt;p&gt;I can look at hTask of my axes with them set to 'Use parent...' (through the debug window) and I can see it is different than the result of IecTaskGetCurrent() for MainTask.&lt;/p&gt;
&lt;p&gt;How can I read the task of an axis through the program (since hTask is private) so I can determine if my axes are on the same task cycle (incase I forget to change the setting)?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>