<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Write variable of type TIME</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d04e7eb972/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d04e7eb972/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/d04e7eb972/</id><updated>2020-02-27T18:19:15.138000Z</updated><subtitle>Recent posts to Write variable of type TIME</subtitle><entry><title>Write variable of type TIME</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d04e7eb972/?limit=25#a508" rel="alternate"/><published>2020-02-27T18:19:15.138000Z</published><updated>2020-02-27T18:19:15.138000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comc2ba122d5fc854e940b64c113254b51334f9d8e7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
attached an example:&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: time_in_visu.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3688"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3689" rel="nofollow"&gt;testinvisu.project &lt;span&gt;&lt;span&gt;[66.23 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Write variable of type TIME</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d04e7eb972/?limit=25#8bd0" rel="alternate"/><published>2020-02-27T18:19:14.044000Z</published><updated>2020-02-27T18:19:14.044000Z</updated><author><name>MaraP</name><uri>https://forge.codesys.com/u/marap/</uri></author><id>https://forge.codesys.com94f84a2a6b37a2b421d33326d7449827e8382329</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;yannickasselin1 hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Is this possible or not?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Very old post&lt;/strong&gt; but yes, it's possible. I personnally use REAL type variables to set time values. For example, enter your time value in seconds in real type (%.1f) on HMI. Lets say 1.5s.  Then on the program side you have to make conversion to type TIME: &lt;/p&gt;
&lt;p&gt;tTime := REAL_TO_TIME ( fTime * 1000). Code turns given time value (1.5s) in real type to time format t#1500ms...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Write variable of type TIME</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d04e7eb972/?limit=25#9030" rel="alternate"/><published>2020-02-27T18:19:10.929000Z</published><updated>2020-02-27T18:19:10.929000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com092a970ed9c808ba08832417bd74bd2be521e50b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;I believe you have to enter T#2000ms or T#2s. Just like you have it in the code. I always just convert a number to time in the code.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Write variable of type TIME</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d04e7eb972/?limit=25#9d2b" rel="alternate"/><published>2020-02-27T18:19:09.835000Z</published><updated>2020-02-27T18:19:09.835000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.com103649e0de841dce4a82b2c59ca6b1051b0b28f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is this possible or not?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Write variable of type TIME</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/d04e7eb972/?limit=25#13b7" rel="alternate"/><published>2020-02-27T18:19:06.702000Z</published><updated>2020-02-27T18:19:06.702000Z</updated><author><name>yannickasselin1</name><uri>https://forge.codesys.com/u/yannickasselin1/</uri></author><id>https://forge.codesys.combd4f2bb0f8cbe84d690c1934b834e8e8260df720</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it possible to write to a variable of type TIME without converting.&lt;br/&gt;
If I use a rectangle with %d, it will display 1000 (meaning T#1S).&lt;br/&gt;
But if I try to write to it, it does not work.&lt;br/&gt;
I would like to be able to write 2000 and then my variable would be set to T#2S.&lt;br/&gt;
I know I can do it by converting in the program but I was thinking that if it can read correctly it would be possible to write also.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>