<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/57cb1764a4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/57cb1764a4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/57cb1764a4/</id><updated>2020-02-27T19:11:07.925000Z</updated><subtitle>Recent posts to A question about buttons...</subtitle><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#8e1c" rel="alternate"/><published>2020-02-27T19:11:07.925000Z</published><updated>2020-02-27T19:11:07.925000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.come70357221ba543d014f5ed7f4bf5279d7c3eb1ef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;send the .pro file to me and i will have a look.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#b5ca" rel="alternate"/><published>2020-02-27T19:11:06.694000Z</published><updated>2020-02-27T19:11:06.694000Z</updated><author><name>Elric</name><uri>https://forge.codesys.com/u/elric/</uri></author><id>https://forge.codesys.com8c9b0d57f1b9afe9d12823cc38c1e0a48e708441</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yeah I tried the web visualisation.  Still the same outcome. &lt;/p&gt;
&lt;p&gt;Thanks for the advice.  I'll look into placeholders (never used them before) and hopefully that'll help with things.&lt;/p&gt;
&lt;p&gt;Elric&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#381d" rel="alternate"/><published>2020-02-27T19:11:03.320000Z</published><updated>2020-02-27T19:11:03.320000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com3df5375c1d3130d19b25ab1dd7e1a452f413bd6a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;64 buttons should not be a big problem.&lt;br/&gt;
did you switch on webvisualisation?&lt;/p&gt;
&lt;p&gt;In simulation it will be slow, however in the wago loaded it should be working good.&lt;/p&gt;
&lt;p&gt;Please use the placeholder&lt;br/&gt;
make a vis for one button as a separate vis.&lt;br/&gt;
then on a workscreen, use a visualisation, next to it use same vis again,&lt;br/&gt;
now you can use these placeholders with $ signs.&lt;br/&gt;
then set up a array with items you like to change like button.color or button.tap etc.&lt;br/&gt;
in button 1 you say $button$ is button1 for 2 you say button2 etc.&lt;br/&gt;
if you have 8 machines with 8 buttons  do $machine1$ $button1$ etc.&lt;br/&gt;
each button must have its own name and yes after loading it takes time before the screen is built.&lt;br/&gt;
If not clear send me a design and a program for it, and i will make a start for you.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#bc53" rel="alternate"/><published>2020-02-27T19:11:02.113000Z</published><updated>2020-02-27T19:11:02.113000Z</updated><author><name>Elric</name><uri>https://forge.codesys.com/u/elric/</uri></author><id>https://forge.codesys.com6b8a27ef94a016f823d2da0b92ad9d9570f63e20</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ok, one more thing:  is there some kind of limit regarding the number of controls one can have on a visualisation?&lt;/p&gt;
&lt;p&gt;And more to the point, is there a limit on the number of VisualObjectType variables you can have in your program?&lt;/p&gt;
&lt;p&gt;Reason why I'm asking is because I need quite a few(one for each button, and there are 64 buttons), but when I to assign each button its own VisualObjectType and then try to run the code after compiling, the visualisation does not display like it should (lack of memory?).&lt;/p&gt;
&lt;p&gt;But when I only set up 1 button with an VOT it works fine... :S&lt;/p&gt;
&lt;p&gt;Oh, and I'm using a Wago 750 881, if that matters at all.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Elric&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#91ff" rel="alternate"/><published>2020-02-27T19:10:58.733000Z</published><updated>2020-02-27T19:10:58.733000Z</updated><author><name>Elric</name><uri>https://forge.codesys.com/u/elric/</uri></author><id>https://forge.codesys.com7eefe80b26da43b0203462155220f5c85604af03</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ah right.  Thanks for all of your help.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#4b73" rel="alternate"/><published>2020-02-27T19:10:57.530000Z</published><updated>2020-02-27T19:10:57.530000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com5bd84be69e45ff40723d0b3c941935e6cb0a9d2b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes its the only way, &lt;br/&gt;
Only by having an active display (SCADA program) you can have a workaround.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#12dc" rel="alternate"/><published>2020-02-27T19:10:56.341000Z</published><updated>2020-02-27T19:10:56.341000Z</updated><author><name>Elric</name><uri>https://forge.codesys.com/u/elric/</uri></author><id>https://forge.codesys.comb151cd2491b66d74957ab81d1da381046939fca4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for getting back to me on this.&lt;/p&gt;
&lt;p&gt;The whole value.0 thing was EXACTLY what I had in mind when I asked this question, so I'm glad it worked when I tried it yesterday.    &lt;/p&gt;
&lt;p&gt;Regarding the "determining-which-button-had-been-pressed" query, what I meant was, when the user clicks on a button, how does codesys know what button you've pressed, and is there a way for the programmer to access that information?  &lt;/p&gt;
&lt;p&gt;I know about the programmability and the toggle/tap options, but I don't much like the idea of declaring and polling a bunch of variables just to see which button was pressed....&lt;/p&gt;
&lt;p&gt;Or is that the only way TO do it....?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#0372" rel="alternate"/><published>2020-02-27T19:10:52.960000Z</published><updated>2020-02-27T19:10:52.960000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comfb1493dcce8a2f6ca722d37c40dc8d0d5ee4251f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;1: yes you can in several ways&lt;br/&gt;
you can use toggle and tap for simple inputs&lt;br/&gt;
or if you use the vis.lib then you can even see if the mouse is hovering above a button (to give it a color or even switch to another vis)&lt;br/&gt;
2: yes it must be a boolean, however you can use this boolean in a SEL to change from real value.&lt;br/&gt;
In the util.lib is a function to put a lot boolean into one word.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#9fe4" rel="alternate"/><published>2020-02-27T19:10:51.761000Z</published><updated>2020-02-27T19:10:51.761000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.com6d02d1ca10cafd27c9e01fd7cae6da231045c0fd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;1) is there a way of determining which button on a visualisation has been clicked by the user (kinda like the 'this' reference in C/C#?)&lt;br/&gt;
I think that the answer is no, but I do not pretend to know everything !      &lt;/p&gt;
&lt;p&gt;2) when assigning a variable to the input-&amp;gt;toggle variable field, does it HAVE to be a boolean? Or can it be any variable that uses true/false values? The bits in a dword, for instance?&lt;/p&gt;
&lt;p&gt;The variable must be a boolean, but you ca use a bit from a word, dword, int, ...&lt;br/&gt;
For exemple, if you declare :&lt;br/&gt;
Value1:INT;&lt;/p&gt;
&lt;p&gt;You can use Value1.0 witch is the first bit of this variable (You can use from Value1.0 to Value1.15)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A question about buttons...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/57cb1764a4/?limit=25#a230" rel="alternate"/><published>2020-02-27T19:10:48.384000Z</published><updated>2020-02-27T19:10:48.384000Z</updated><author><name>Elric</name><uri>https://forge.codesys.com/u/elric/</uri></author><id>https://forge.codesys.come78ca9b8da4422dde33c02e9acae51ed5f1d6d4e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;1) is there a way of determining which button on a visualisation has been clicked by the user (kinda like the 'this' reference in C/C#?)&lt;/p&gt;
&lt;p&gt;2) when assigning a variable to the input-&amp;gt;toggle variable field, does it HAVE to be a boolean?  Or can it be any variable that uses true/false values?  The bits in a dword, for instance?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Elric&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>