<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Using CmpIecTask library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b7e9b2b353/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b7e9b2b353/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/b7e9b2b353/</id><updated>2021-10-19T07:45:12.865000Z</updated><subtitle>Recent posts to Using CmpIecTask library</subtitle><entry><title>Using CmpIecTask library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b7e9b2b353/?limit=25#ada7" rel="alternate"/><published>2021-10-19T07:45:12.865000Z</published><updated>2021-10-19T07:45:12.865000Z</updated><author><name>jauer</name><uri>https://forge.codesys.com/u/jauer/</uri></author><id>https://forge.codesys.com6f0039920035b9581587cf7130ed5a32999aa191</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks. With this program I was able to implement my desired program.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using CmpIecTask library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b7e9b2b353/?limit=25#4aae" rel="alternate"/><published>2021-10-19T06:37:52.892000Z</published><updated>2021-10-19T06:37:52.892000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com4de019b15df5e5497fcb6e394a53b227d8d3d5de</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;See something similar here:&lt;br/&gt;
&lt;a href="https://faq.codesys.com/display/CDSFAQ/Task+Configuration%3A+Reading+the+Cycle+Time+and+Other+Information" rel="nofollow"&gt;https://faq.codesys.com/display/CDSFAQ/Task+Configuration%3A+Reading+the+Cycle+Time+and+Other+Information&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using CmpIecTask library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b7e9b2b353/?limit=25#bae3" rel="alternate"/><published>2021-10-19T06:28:04.243000Z</published><updated>2021-10-19T06:28:04.243000Z</updated><author><name>jauer</name><uri>https://forge.codesys.com/u/jauer/</uri></author><id>https://forge.codesys.comd1bc1acd0fbb854313df1663bc909b60b1ebf535</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your answer &lt;a class="user-mention" href="/u/timvh/"&gt;@timvh&lt;/a&gt;.&lt;br/&gt;
I tried it but it seems like it doesn´t work. Every variable has the default 0 value and does not change but I don´t know why :(&lt;br/&gt;
Does anyone have suggestions for improvement of the program?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using CmpIecTask library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b7e9b2b353/?limit=25#ea44" rel="alternate"/><published>2021-10-19T06:28:00.698000Z</published><updated>2021-10-19T06:28:00.698000Z</updated><author><name>jauer</name><uri>https://forge.codesys.com/u/jauer/</uri></author><id>https://forge.codesys.com584e07a2a6564369854f922e1171c51689c40257</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your answer &lt;a class="user-mention" href="/u/timvh/"&gt;@timvh&lt;/a&gt;.&lt;br/&gt;
I tried it but it seems like it doesn´t work. Every variable has the default 0 value and does not change but I don´t know why :(&lt;br/&gt;
Does anyone have suggestions for improvement of the program?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using CmpIecTask library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b7e9b2b353/?limit=25#b381" rel="alternate"/><published>2021-10-18T13:43:04.856000Z</published><updated>2021-10-18T13:43:04.856000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com608d6ab81d68ae5762c8989df5ab569b196848f9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Maybe something like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt;    Result: CmpIecTask.RTS_IEC_RESULT;&lt;/span&gt;
&lt;span class="err"&gt;    hTask : CmpIecTask.RTS_IEC_HANDLE;&lt;/span&gt;
&lt;span class="err"&gt;    pCurrentTaskInfo: POINTER TO Task_Info2;&lt;/span&gt;
&lt;span class="err"&gt;    CurrentTaskInfo: Task_Info2;&lt;/span&gt;
&lt;span class="err"&gt;    xReset: BOOL;&lt;/span&gt;
&lt;span class="err"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;hTask&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;IecTaskGetCurrent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;Result&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="n"&gt;pCurrentTaskInfo&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;IecTaskGetInfo3&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hIecTask&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hTask&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pResult&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;Result&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="n"&gt;CurrentTaskInfo&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pCurrentTaskInfo&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;xReset&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
    &lt;span class="n"&gt;xReset&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;FALSE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;hTask&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
        &lt;span class="k"&gt;Result&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;IecTaskResetStatistics&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hIecTask&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;hTask&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="n"&gt;END_IF&lt;/span&gt;
&lt;span class="n"&gt;END_IF&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Using CmpIecTask library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b7e9b2b353/?limit=25#f8a4" rel="alternate"/><published>2021-10-18T12:44:20.464000Z</published><updated>2021-10-18T12:44:20.464000Z</updated><author><name>jauer</name><uri>https://forge.codesys.com/u/jauer/</uri></author><id>https://forge.codesys.com36b4259f780bde97f6b13c9388964ce8bf5d269d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello to the experts,&lt;/p&gt;
&lt;p&gt;I want to use the CmpIecTask library to get the current Jitter value of my program in a variable. Can anyone explain or give an example how I use this library, especially the IecTaskGetInfo3 function (How do I declare the Inputs and how do I use the output?).&lt;/p&gt;
&lt;p&gt;Thank you for your answers :)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>