<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to record timestamp in a variable?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/98888289cd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/98888289cd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/98888289cd/</id><updated>2023-02-20T08:22:24.332000Z</updated><subtitle>Recent posts to How to record timestamp in a variable?</subtitle><entry><title>How to record timestamp in a variable?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/98888289cd/?limit=25#9793" rel="alternate"/><published>2023-02-20T08:22:24.332000Z</published><updated>2023-02-20T08:22:24.332000Z</updated><author><name>open</name><uri>https://forge.codesys.com/u/open/</uri></author><id>https://forge.codesys.comdc4dcad08d622805b0d41559c6413a8415ad6e98</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Francesco,&lt;/p&gt;
&lt;p&gt;Thank you for your reply,&lt;/p&gt;
&lt;p&gt;I used SysTimeRTC library to get the PLC time.&lt;br/&gt;
I wrote a if function a boolean variable true then freeze the start time in a date_time variable.&lt;/p&gt;
&lt;p&gt;Warmest regards,&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to record timestamp in a variable?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/98888289cd/?limit=25#bd49" rel="alternate"/><published>2023-02-14T10:08:32.281000Z</published><updated>2023-02-14T10:08:32.281000Z</updated><author><name>fraccaroli</name><uri>https://forge.codesys.com/u/fraccaroli/</uri></author><id>https://forge.codesys.com059474f0661e762affccf242e49c032456e0654f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
what device are you using? There could be manufacturer's libs that do it.&lt;/p&gt;
&lt;p&gt;As general advice I will use the classical way of embedded system: create a variable and count cycles (assuming that your process is in ciclic task).&lt;/p&gt;
&lt;p&gt;Another way could be to use the Task configuration &amp;gt; Monitor tab.&lt;/p&gt;
&lt;p&gt;Hi,&lt;br/&gt;
Francesco&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to record timestamp in a variable?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/98888289cd/?limit=25#15ad" rel="alternate"/><published>2023-02-14T03:43:46.817000Z</published><updated>2023-02-14T03:43:46.817000Z</updated><author><name>open</name><uri>https://forge.codesys.com/u/open/</uri></author><id>https://forge.codesys.com1183087f64129a6d3dc59b0cc52946ee3175c7e5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am new to codesys programming,&lt;br/&gt;
How to record timestamp and saved the value in a variable?&lt;br/&gt;
I need to record start time and end time of a process. &lt;/p&gt;
&lt;p&gt;Warmest regards.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>