<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problem in getting visu buttons toggle variables</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a1fdb694b9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a1fdb694b9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a1fdb694b9/</id><updated>2022-03-24T09:46:47.752000Z</updated><subtitle>Recent posts to Problem in getting visu buttons toggle variables</subtitle><entry><title>Problem in getting visu buttons toggle variables</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a1fdb694b9/?limit=25#a30d" rel="alternate"/><published>2022-03-24T09:46:47.752000Z</published><updated>2022-03-24T09:46:47.752000Z</updated><author><name>jurr</name><uri>https://forge.codesys.com/u/jurr/</uri></author><id>https://forge.codesys.com9c0e6a7ce77989b180663ff9b0687364e3483673</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Instead of using global variables, try adding the variables directly into the button by using PLC_PRG.variablename. Maybe this makes a difference.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://imgur.com/EBkUbHG" rel="nofollow"&gt;https://imgur.com/EBkUbHG&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this example I've added the variable BUTTON_PRESS to my PLC_PRG.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem in getting visu buttons toggle variables</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a1fdb694b9/?limit=25#7638" rel="alternate"/><published>2022-01-04T10:12:04.675000Z</published><updated>2022-01-04T10:12:04.675000Z</updated><author><name>tebalto</name><uri>https://forge.codesys.com/u/tebalto/</uri></author><id>https://forge.codesys.com1380d2c3f8f1e02245fbaf0e21b162b9efdc918a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;it seems a very simple problem but I have been searching for long time for a solution.&lt;br/&gt;
I'm using Codesys V2.3 as beeing installed by the ABB Automation Builder. I'm using an ABB PM554ETH PLC.&lt;/p&gt;
&lt;p&gt;I created a very simple PLC_VISU made of a button and a rectangle.&lt;br/&gt;
The button is associated to a global variable (BOOL) that, in a CFC program, goes directly to another global variable (BOOL) associated with a color change of the rectangle.&lt;/p&gt;
&lt;p&gt;The webserver is properly configured. I download everything on the PLC and run. From the simulation tab (in Codesys) everything works as expected: 1 click on the button (that stays pressed) changes the color of the rectangle. Another click returns the button up and the rectangle is restored to its original color.&lt;br/&gt;
If I try to access to the webvisu.htm using Internet Explorer (correct Java version with safety exceptions configured) I can see the correct interface (button + rectangle) and the status of the items is following the situation we have in the simulation environment (for example button pressed and light on).&lt;br/&gt;
If I try to interact from the webpage, after clicking on the button, it immediately returns up and the status of he rectangle is never changed. I tried inserting in the interface also a simple slider and the effect is the same: I can move the cursor by one click only and then it returns in the center, unless I move it from the simulation and the webpage shows its new position.&lt;br/&gt;
If I insert also other objects that must show the value of a variable, they work fine. My problem is on the INPUT only.&lt;/p&gt;
&lt;p&gt;Am I missing something fundamental to get this working?&lt;br/&gt;
I tried analyzing many videos on the web but I see that in all the cases I found, what can be done in simulation (regarding button press) should be possible also by the webpage.&lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;br/&gt;
Regards,&lt;br/&gt;
Alessandro&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>