<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/</id><updated>2021-11-02T07:29:00.026000Z</updated><subtitle>Recent posts to Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</subtitle><entry><title>Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/?limit=25#b555/6d24/4b43/9aa2" rel="alternate"/><published>2021-11-02T07:29:00.026000Z</published><updated>2021-11-02T07:29:00.026000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com25271f4655be7d528911fc0a8ae4d341f72db0b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Seems to be that this issue was fixed with Visu 4.1.0.0.&lt;/p&gt;
&lt;p&gt;Could you maybe update your CODESYS to use visu 4.1.0.0 and check if you can still reproduce the issue?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/?limit=25#258e/a80d" rel="alternate"/><published>2021-11-02T06:55:37.013000Z</published><updated>2021-11-02T06:55:37.013000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com67c5a41c8ec7bab5287650570c96cc84e2da5a57</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This was a bug in the visu 4.0.0.0 and was fixed with 4.1.0.0.&lt;br/&gt;
No dialog closed will be called in this case any more.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/?limit=25#258e" rel="alternate"/><published>2021-10-29T14:14:19.930000Z</published><updated>2021-10-29T14:14:19.930000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.comfbcfc0f60448fb3f167c9c2be6e6d0254a9e308f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;IIRC I read in this forum that the open ComboBox is implemented as a dialog and raises OnDialogClosed, and OnDialogClosed is raised for every dialog that is closed in the current visualization. But I cannot find the post...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/?limit=25#b555/6d24/4b43" rel="alternate"/><published>2021-10-28T06:13:09.153000Z</published><updated>2021-10-28T06:13:09.153000Z</updated><author><name>lefish</name><uri>https://forge.codesys.com/u/lefish/</uri></author><id>https://forge.codesys.comc901ce093ca175c76e1e704194775e670dc53e13</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A quick fix of course would be to change to&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;IF temp_time_s &amp;lt;&amp;gt; 0 THEN&lt;/span&gt;
&lt;span class="err"&gt;    THIS^.settime := UDINT_TO_TIME(THIS^.temp_time_s * 1000);&lt;/span&gt;
&lt;span class="err"&gt;END_IF&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;to the OnDialogClosed executed ST code.&lt;/p&gt;
&lt;p&gt;Backdraw: 0 s as input is not possible anymore.&lt;/p&gt;
&lt;p&gt;Then one could change the UDINT type to DINT and set temp_time_s to -1 per default.&lt;/p&gt;
&lt;p&gt;Backdraw: Very high TIME values cannot be set anymore.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/?limit=25#b555/6d24" rel="alternate"/><published>2021-10-28T06:00:18.741000Z</published><updated>2021-10-28T06:00:18.741000Z</updated><author><name>lefish</name><uri>https://forge.codesys.com/u/lefish/</uri></author><id>https://forge.codesys.combee289f64dd3e63f763c9e9b4e19d7ebab14d2da</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I made up a short example. It just shows the basic functionality to reproduce the error.&lt;/p&gt;
&lt;p&gt;How to work with the example:&lt;/p&gt;
&lt;p&gt;Testcase1:&lt;br/&gt;
&lt;em&gt; Leave App as is.&lt;br/&gt;
&lt;/em&gt; Click on the Combobox and select an item &amp;lt;&amp;gt; Testitem1&lt;br/&gt;
&lt;em&gt; testvar1 and testvar2 will change to 0&lt;br/&gt;
&lt;/em&gt; Click on "Show testvar3"&lt;br/&gt;
* testvar3 is unchanged&lt;/p&gt;
&lt;p&gt;Testcase2:&lt;br/&gt;
&lt;em&gt; Reset cold&lt;br/&gt;
&lt;/em&gt; Add Testframe2 into the empty frame.&lt;br/&gt;
&lt;em&gt; Click on the Combobox and select an item &amp;lt;&amp;gt; Testitem1&lt;br/&gt;
&lt;/em&gt; All testvars are changed to 0&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/?limit=25#b555" rel="alternate"/><published>2021-10-28T05:10:53.989000Z</published><updated>2021-10-28T05:10:53.989000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comc26beca960ddd59a455dea6142c9f758031bc2af</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;could you provide a small example application?&lt;br/&gt;
I am not that good in guessing.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/?limit=25#5fcc" rel="alternate"/><published>2021-10-27T18:11:59.797000Z</published><updated>2021-10-27T18:11:59.797000Z</updated><author><name>lefish</name><uri>https://forge.codesys.com/u/lefish/</uri></author><id>https://forge.codesys.com6f7a54899af5661d2286ad20928dab4eff01a6bb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, these are actually makro frames which handle the conversion of input in hours -&amp;gt; TIME.&lt;br/&gt;
Therefore I do the conversion "OnDialogClosed".&lt;/p&gt;
&lt;p&gt;Is your thought, the these fields catch the "DialogClosed" when an item of the combobox is chosen? Of course the input of the time fields' dialogs is 0 right in this moment, so that would make sense...&lt;/p&gt;
&lt;p&gt;In that case: Any idea how I limit the "OnDialogClosed" catch to the frame it is specified in?&lt;br/&gt;
As the input field is within a different object there might be a chance to separate by i.e. a 'local' OnDialogClosed catch...&lt;/p&gt;
&lt;p&gt;If you need this specific time makro frame please let me know, I can send it to you tomorrow.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/?limit=25#a51b" rel="alternate"/><published>2021-10-27T12:34:29.388000Z</published><updated>2021-10-27T12:34:29.388000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.comdc4dfcb64221e4cd7f5104c687bd2b63edd1f445</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Do you have something attached to OnDialogClosed for the time fields?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug found? Weird behaviour of Combobox (Array and Integer) in CodeSys 3.5SP16 Patch 2 (64bit) Visu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/9b09db5b9a/?limit=25#95df" rel="alternate"/><published>2021-10-27T11:57:24.018000Z</published><updated>2021-10-27T11:57:24.018000Z</updated><author><name>lefish</name><uri>https://forge.codesys.com/u/lefish/</uri></author><id>https://forge.codesys.com813d9e75545b2c551147e6698fa993385d8540b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I reckon I stumbled over a bug. Sorry that I cannot show any code as this is a customers project.&lt;/p&gt;
&lt;p&gt;Following steps to reproduce:&lt;/p&gt;
&lt;p&gt;I have a Combobox (array) on a dialog. I connected the variables accordingly&lt;br/&gt;
&lt;em&gt; "Variable" to a UINT variable called 'ui_idx'&lt;br/&gt;
&lt;/em&gt; "Data array" to a 0-indexed array &lt;span&gt;[0..4]&lt;/span&gt; of STRING(50) &lt;/p&gt;
&lt;p&gt;I also have a few input fields on the same dialog, which are connected to i.e. TIME variables. Let's call them 't_var1', 't_var2', 't_var3'&lt;/p&gt;
&lt;p&gt;If I change the value of 'ui_idx' through the combobox, all the TIME variables 't_var1..3' are set to 0, although they have another initial value.&lt;br/&gt;
If I change the value of 'ui_idx' through an online-write command to the same value nothing else happens, the TIME variables are left alone.&lt;/p&gt;
&lt;p&gt;I then moved 't_var2' to another dialog. With the effect, that 't_var1' and 't_var3' are changed to 0 while 't_var2' is left alone.&lt;/p&gt;
&lt;p&gt;Would you please confirm on this behaviour?&lt;/p&gt;
&lt;p&gt;I use CodeSys 3.5SP16 Patch 2 (64bit) and Codesyscontrol for RPi version 4.0.1.0&lt;/p&gt;
&lt;p&gt;Is there any chance that this bug gets fixed with a patch?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Best regards&lt;br/&gt;
LeFish&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>