<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Displaying Timer values as a fraction</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/48af38a280/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/48af38a280/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/48af38a280/</id><updated>2020-02-27T19:50:52.370000Z</updated><subtitle>Recent posts to Displaying Timer values as a fraction</subtitle><entry><title>Displaying Timer values as a fraction</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/48af38a280/?limit=25#ed16" rel="alternate"/><published>2020-02-27T19:50:52.370000Z</published><updated>2020-02-27T19:50:52.370000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comd382037801d8af1e422ed80b2280056d088ebc0e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The IFM PDM uses the CoDeSys visualization so Rolf has presented the correct response. To elaborate.&lt;/p&gt;
&lt;p&gt;(Assume a text box)&lt;/p&gt;
&lt;p&gt;In a visualization text box you need to add a format similar to this in the text content area "Time = %f3.2 this means 3 digits with 2 places after the decimal point. So 1.00 or 2.34. This formats the display of the variable of type real.&lt;/p&gt;
&lt;p&gt;In the text box-variables-text display add the variable to monitor say PLC_PRG.MyTime.&lt;/p&gt;
&lt;p&gt;Note PLC_PRG.MyTime must be defined as type real. If it is say defined as an int or dword or anything else %f formatting doesn't apply and will not display decimal places.&lt;/p&gt;
&lt;p&gt;Let me know if this doesn't work for you I can send an example.&lt;/p&gt;
&lt;p&gt;I believe CoDeSys has made some changes to the visual objects in Version 2.3.9.11. In prior versions I feel this is a downfall because in order to display in the visual elements values with decimal points you have to configure values as type real. This is not the most efficient use of speed and memory when using non 32 bit platforms.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Displaying Timer values as a fraction</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/48af38a280/?limit=25#144e" rel="alternate"/><published>2020-02-27T19:50:51.072000Z</published><updated>2020-02-27T19:50:51.072000Z</updated><author><name>bryan helbig</name><uri>https://forge.codesys.com/u/bryan-helbig/</uri></author><id>https://forge.codesys.comdf6c39c10971241bce5b74367cc8886bd2ede2b5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I passing these value to an IFM PDM360 and trying to get them to show up on the Display.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Displaying Timer values as a fraction</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/48af38a280/?limit=25#40b3" rel="alternate"/><published>2020-02-27T19:50:46.902000Z</published><updated>2020-02-27T19:50:46.902000Z</updated><author><name>Rolf-Geisler</name><uri>https://forge.codesys.com/u/rolf-geisler/</uri></author><id>https://forge.codesys.com6872eeefc280c2183a76c2dfb6601cfc93f1a660</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Where do you want to display? In CoDeSys visualization you can use a formatting such as %f2.3 (2 figures before, 3 figures after decimal dot). On line help - at least German version - gives details on page Visualization - Variables.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Displaying Timer values as a fraction</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/48af38a280/?limit=25#ea6d" rel="alternate"/><published>2020-02-27T19:50:45.625000Z</published><updated>2020-02-27T19:50:45.625000Z</updated><author><name>bryan helbig</name><uri>https://forge.codesys.com/u/bryan-helbig/</uri></author><id>https://forge.codesys.com09a8ef3e71674dd814ae43bd298d8f801135dd35</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to figure out how to get the Timer values to display as a fractional value. I have tried taking the values from Time to Real but if the value goes below 1.00 it still shows up with the engineering notation. Example: .998 seconds shows up as 9.98e-1.&lt;/p&gt;
&lt;p&gt;Any suggestions???&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>