<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/</id><updated>2020-02-27T15:28:06.469000Z</updated><subtitle>Recent posts to Change from the PLC code the Text property of a rectangle...</subtitle><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#8610" rel="alternate"/><published>2020-02-27T15:28:06.469000Z</published><updated>2020-02-27T15:28:06.469000Z</updated><author><name>elsabz</name><uri>https://forge.codesys.com/u/elsabz/</uri></author><id>https://forge.codesys.comfd808c5f912a379cd9fc19520465e2bf36f91693</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Si  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#121d" rel="alternate"/><published>2020-02-27T15:28:04.526000Z</published><updated>2020-02-27T15:28:04.526000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com77195f648a3e1ca5042f1f681916d65adb1f8610</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Massimo.Milluzzo&lt;/p&gt;
&lt;p&gt;Ok, nice solution.&lt;/p&gt;
&lt;p&gt;(Ma sei italiano?)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#82ce" rel="alternate"/><published>2020-02-27T15:28:03.785000Z</published><updated>2020-02-27T15:28:03.785000Z</updated><author><name>elsabz</name><uri>https://forge.codesys.com/u/elsabz/</uri></author><id>https://forge.codesys.com8c267f1284504cc646860cca9a686392d982cb30</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I found the solution to the problem, with the method of the strings %s&lt;br/&gt;
I also managed to improve because I have also introduced the minutes   &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="nv"&gt;Global&lt;/span&gt; &lt;span class="nv"&gt;Variable&lt;/span&gt;
   &lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;Tempo_A&lt;/span&gt;: &lt;span class="nv"&gt;DWORD&lt;/span&gt;&lt;span class="c1"&gt;; //  TIME();&lt;/span&gt;
   &lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;testStringa&lt;/span&gt; : &lt;span class="nv"&gt;STRING&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;testBoleana&lt;/span&gt; : &lt;span class="nv"&gt;BOOL&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="nv"&gt;Function&lt;/span&gt; &lt;span class="nv"&gt;Block&lt;/span&gt;
&lt;span class="nv"&gt;VAR&lt;/span&gt;
   &lt;span class="nv"&gt;min&lt;/span&gt;: &lt;span class="nv"&gt;STRING&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;sec&lt;/span&gt;: &lt;span class="nv"&gt;STRING&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;cent&lt;/span&gt;: &lt;span class="nv"&gt;STRING&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;mill&lt;/span&gt;: &lt;span class="nv"&gt;STRING&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;x&lt;/span&gt;: &lt;span class="nv"&gt;DWORD&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;a&lt;/span&gt;: &lt;span class="nv"&gt;DWORD&lt;/span&gt;&lt;span class="c1"&gt;;   &lt;/span&gt;
   &lt;span class="nv"&gt;b&lt;/span&gt;: &lt;span class="nv"&gt;DWORD&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;c&lt;/span&gt;: &lt;span class="nv"&gt;DWORD&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_VAR&lt;/span&gt;
&lt;span class="nv"&gt;min&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;DWORD_TO_STRING&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;Tempo_A&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;60000&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;x&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;Tempo_A&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="nv"&gt;MOD&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;b&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;x&lt;/span&gt; &lt;span class="nv"&gt;MOD&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;a&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;x&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nv"&gt;b&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;sec&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;DWORD_TO_STRING&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;a&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="nv"&gt;DWORD_TO_STRING&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;b&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;x&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;Tempo_A&lt;/span&gt; &lt;span class="nv"&gt;MOD&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;b&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;Tempo_A&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="nv"&gt;MOD&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;a&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;x&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nv"&gt;b&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="c1"&gt;; &lt;/span&gt;
&lt;span class="nv"&gt;cent&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;DWORD_TO_STRING&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;a&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;,&lt;span class="nv"&gt;DWORD_TO_STRING&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;b&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;x&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;Tempo_A&lt;/span&gt; &lt;span class="nv"&gt;MOD&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;c&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;x&lt;/span&gt; &lt;span class="nv"&gt;MOD&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;b&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;Tempo_A&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="nv"&gt;MOD&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;a&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;x&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nv"&gt;b&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="c1"&gt;; &lt;/span&gt;
&lt;span class="nv"&gt;mill&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;DWORD_TO_STRING&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;a&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;DWORD_TO_STRING&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;b&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="nv"&gt;DWORD_TO_STRING&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;c&lt;/span&gt;&lt;span class="ss"&gt;)))&lt;/span&gt;&lt;span class="c1"&gt;; &lt;/span&gt;
&lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;testBoleana&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
&lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;testStringa&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;min&lt;/span&gt;, &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;:&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;,&lt;span class="nv"&gt;sec&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;.&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="nv"&gt;mill&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ELSE&lt;/span&gt;
&lt;span class="nv"&gt;gvl&lt;/span&gt;.&lt;span class="nv"&gt;testStringa&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;Concat&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;min&lt;/span&gt;, &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;:&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;,&lt;span class="nv"&gt;sec&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;.&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;, &lt;span class="nv"&gt;cent&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_IF&lt;/span&gt;   
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I think this is the only solution if there is another way someone enlighten me   &lt;/p&gt;
&lt;p&gt;Thanks ... and good job  &lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Test.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2466"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#d298" rel="alternate"/><published>2020-02-27T15:28:03.093000Z</published><updated>2020-02-27T15:28:03.093000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comf070b7ed97408ad67331bfb87e473ffee227b311</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Massimo.Milluzzo&lt;/p&gt;
&lt;p&gt;You can set the text as %.2f&lt;br/&gt;
The problem is, as far as I know, you cannot modify the number of decimal at runtime&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#19c8" rel="alternate"/><published>2020-02-27T15:28:01.162000Z</published><updated>2020-02-27T15:28:01.162000Z</updated><author><name>elsabz</name><uri>https://forge.codesys.com/u/elsabz/</uri></author><id>https://forge.codesys.comf99d2e3eceddf03c271fd3c1eb2c5cf5d12cf4d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
Ah ok, like in WinCC Flexible.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Yes or Movicon   &lt;/p&gt;
&lt;p&gt;ok with expression is cool   ... but if you set the text to %f in run i see 6 decimal point  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#4f97" rel="alternate"/><published>2020-02-27T15:28:00.470000Z</published><updated>2020-02-27T15:28:00.470000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc2671c606f23a5682361af2a613997d8ef446cea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Massimo.Milluzzo&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;elsabz hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
is a programming technique to use integers for display the decimal as is necessary for the application, the use of a float commits more resources, but this would be less important than the ability to change the format of the code and for the user is not understandable.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Ah ok, like in WinCC Flexible.&lt;br/&gt;
A workaround could be to set the 'Text variable' as expression. See the attachment &lt;/p&gt;
&lt;p&gt;is the integer variable to display,  is the scale factor. In your situation should be 10,100,1000 etc.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Cattura.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2465"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#402c" rel="alternate"/><published>2020-02-27T15:27:58.548000Z</published><updated>2020-02-27T15:27:58.548000Z</updated><author><name>elsabz</name><uri>https://forge.codesys.com/u/elsabz/</uri></author><id>https://forge.codesys.com530dbc364c7faa5634f1ff55ab060668067e6f54</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;thanks for the reply &lt;br/&gt;
Too bad you can not do &lt;br/&gt;
Perhaps the best way is to use the string? &lt;br/&gt;
By formatting the string in the code and then displays it in a rectangle?   &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
Anyway, why do you want to show an integer as #.00 if it cannot uses decimal values? This could confuse the user&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;is a programming technique to use integers for display the decimal as is necessary for the application, the use of a float commits more resources, but this would be less important than the ability to change the format of the code and for the user is not understandable.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#03f1" rel="alternate"/><published>2020-02-27T15:27:57.836000Z</published><updated>2020-02-27T15:27:57.836000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comcb98987f085c9ce7e8194ce51d66f71d09701991</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Massimo.Milluzzo&lt;/p&gt;
&lt;p&gt;I think it is not possible to change %.2f into %.3f because this is a design time parameter.&lt;/p&gt;
&lt;p&gt;Integer variables don't have a decimal portion, the '.#' string is ignored. If you want you can create a floating point variable to show. In your routine convert the integer into a float. &lt;br/&gt;
Anyway, why do you want to show an integer as #.00 if it cannot uses decimal values? This could confuse the user&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#57e8" rel="alternate"/><published>2020-02-27T15:27:57.170000Z</published><updated>2020-02-27T15:27:57.170000Z</updated><author><name>elsabz</name><uri>https://forge.codesys.com/u/elsabz/</uri></author><id>https://forge.codesys.com3597ba364227b3e45b25545a983dba43e6fee5af</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;perhaps I expressed myself badly, I try to explain it again:&lt;/p&gt;
&lt;p&gt;In one visualization screen i have one rectangle for display one variable value.&lt;br/&gt;
wehn i develop, if i put the text name %.2f , in run mode i see the value with two decimal point.&lt;br/&gt;
The question is: i want switch from code %.2f or %.3f ... is possible? if yes how?&lt;br/&gt;
Second question, this format is possible only for floating point variable or is possible also for integer variable (eg. %.2d)?&lt;/p&gt;
&lt;p&gt;Thanks in advance &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Change from the PLC code the Text property of a rectangle...</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/085a6ce7fd/?limit=25#707e" rel="alternate"/><published>2020-02-27T15:27:55.259000Z</published><updated>2020-02-27T15:27:55.259000Z</updated><author><name>elsabz</name><uri>https://forge.codesys.com/u/elsabz/</uri></author><id>https://forge.codesys.comcdacbcffa9ecf0c8a2b0f50dd88bf39e53233714</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone, I need to change from the PLC code the Text property of a rectangle.&lt;br/&gt;
To display two decimal i use the following string "% .2f", but I predict that it will also change to three decimal "% .3f".&lt;br/&gt;
Please someone can post a code sample that uses the Visu library?&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>