<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Table "Variable for selected row" becoming negative</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c7c9bf8ab/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c7c9bf8ab/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/5c7c9bf8ab/</id><updated>2022-10-10T10:21:56.958000Z</updated><subtitle>Recent posts to Table "Variable for selected row" becoming negative</subtitle><entry><title>Table "Variable for selected row" becoming negative</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c7c9bf8ab/?limit=25#6815" rel="alternate"/><published>2022-10-10T10:21:56.958000Z</published><updated>2022-10-10T10:21:56.958000Z</updated><author><name>pbogaerts</name><uri>https://forge.codesys.com/u/pbogaerts/</uri></author><id>https://forge.codesys.comb8d224d822ea8212ea52be8fe51e39b64b06929d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Seems to have found the reason of this issue:&lt;br/&gt;
When deactivating the multitouch function in TwinCAT, the scrollbar appeared correctly on the target visu.&lt;br/&gt;
Also the problem with the variable for the selected row was solved by doing so.&lt;/p&gt;
&lt;p&gt;Seems that this kind of target visu does not support multitouch functionality...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Table "Variable for selected row" becoming negative</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c7c9bf8ab/?limit=25#5dbb" rel="alternate"/><published>2022-10-07T19:17:53.158000Z</published><updated>2022-10-07T19:17:53.158000Z</updated><author><name>pbogaerts</name><uri>https://forge.codesys.com/u/pbogaerts/</uri></author><id>https://forge.codesys.comda017d9c9b3b29c09465012004cdc9bd4a27df7f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I am using a Beckhoff CX5140 PLC on TwinCat 3 and am facing some very strange behaviour regarding the visualisation of a table.&lt;/p&gt;
&lt;p&gt;The input data of this table is an array of 200 structs. I also receive the "Variable for selected row" in avariable, which I use in the PLC program to work with.&lt;br/&gt;
When login in onto the PLC, everything looks fine and works fine when I look at the visualisation.&lt;/p&gt;
&lt;p&gt;But 2 problems arise when I use my HMI (TargetVisu):&lt;br/&gt;
Firstly, the scroll bar itself is not being shown on the HMI?&lt;br/&gt;
Secondly, when I press where the scroll bar is supposed to be, the "Variable for selected row" variable becomes -32768 (looks to an integer overflow to me?!). This is causing an out of boundaries exception, leading to a fatal error of the PLC.&lt;br/&gt;
When scrolling on the Visu in TwinCAT, this problem is not there...&lt;/p&gt;
&lt;p&gt;Does someone can help me solving both problems?&lt;br/&gt;
I do not understand why the visualisation on my TargetVisu is looking different than on my PC-Visu? Also, why does the "Variable for selected row" behaves differently on my HMI in comparison with the visu in TwinCAT. And why does this variable changes when using my TargetVisu when I only scroll down the list?&lt;/p&gt;
&lt;p&gt;All help is very welcome.&lt;br/&gt;
Thanks a lot!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>